Skip to content

Commit

Permalink
deps: just-diff@5.0.2
Browse files Browse the repository at this point in the history
wraithgar committed May 11, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 0432c7d commit 5778820
Showing 3 changed files with 14 additions and 10 deletions.
11 changes: 6 additions & 5 deletions node_modules/just-diff/index.js
Original file line number Diff line number Diff line change
@@ -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) {
2 changes: 1 addition & 1 deletion node_modules/just-diff/package.json
Original file line number Diff line number Diff line change
@@ -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",
11 changes: 7 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
@@ -4384,9 +4384,10 @@
}
},
"node_modules/just-diff": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT"
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.2.tgz",
"integrity": "sha512-uGd6F+eIZ4T95EinP8ubINGkbEy3jrgBym+6LjW+ja1UG1WQIcEcQ6FLeyXtVJZglk+bj7fvEn+Cu2LBxkgiYQ==",
"inBundle": true
},
"node_modules/just-diff-apply": {
"version": "5.2.0",
@@ -12990,7 +12991,9 @@
}
},
"just-diff": {
"version": "5.0.1"
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.2.tgz",
"integrity": "sha512-uGd6F+eIZ4T95EinP8ubINGkbEy3jrgBym+6LjW+ja1UG1WQIcEcQ6FLeyXtVJZglk+bj7fvEn+Cu2LBxkgiYQ=="
},
"just-diff-apply": {
"version": "5.2.0"

0 comments on commit 5778820

Please sign in to comment.