Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGar <gar+gh@danger.computer>2022-05-11 17:24:11 +0300
committerGar <wraithgar@github.com>2022-05-11 18:38:33 +0300
commit57788204646a6aa5a384630a5640bf00efa25ce0 (patch)
treecd2c29efc2df7bd1e13f631f9327e842d2710716 /node_modules
parent0432c7d8a22ddbfdf238c2b22dd3c7bd263e2d6c (diff)
deps: just-diff@5.0.2
Diffstat (limited to 'node_modules')
-rw-r--r--node_modules/just-diff/index.js11
-rw-r--r--node_modules/just-diff/package.json2
2 files changed, 7 insertions, 6 deletions
diff --git a/node_modules/just-diff/index.js b/node_modules/just-diff/index.js
index b49bed146..11ad3710b 100644
--- a/node_modules/just-diff/index.js
+++ b/node_modules/just-diff/index.js
@@ -129,12 +129,13 @@ function diff(obj1, obj2, pathConverter) {
}
}
- return diffs.remove
- .reverse()
- .concat(diffs.replace)
- .concat(diffs.add);
+ return diffs;
}
- return getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
+ const finalDiffs = getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
+ return finalDiffs.remove
+ .reverse()
+ .concat(finalDiffs.replace)
+ .concat(finalDiffs.add);
}
function pushReplace(path, basePath, key, diffs, pathConverter, obj2) {
diff --git a/node_modules/just-diff/package.json b/node_modules/just-diff/package.json
index bab8a29ae..5a4bb5f12 100644
--- a/node_modules/just-diff/package.json
+++ b/node_modules/just-diff/package.json
@@ -1,6 +1,6 @@
{
"name": "just-diff",
- "version": "5.0.1",
+ "version": "5.0.2",
"description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol",
"main": "index.js",
"module": "index.mjs",