Skip to content

Commit

Permalink
deps: just-diff@5.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Jul 12, 2022
1 parent ad72611 commit c94919d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 6 additions & 2 deletions node_modules/just-diff/index.mjs
Expand Up @@ -124,9 +124,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) {
Expand Down
2 changes: 1 addition & 1 deletion node_modules/just-diff/package.json
@@ -1,6 +1,6 @@
{
"name": "just-diff",
"version": "5.0.2",
"version": "5.0.3",
"description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol",
"main": "index.js",
"module": "index.mjs",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json
Expand Up @@ -4390,9 +4390,9 @@
}
},
"node_modules/just-diff": {
"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==",
"version": "5.0.3",
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.3.tgz",
"integrity": "sha512-a8p80xcpJ6sdurk5PxDKb4mav9MeKjA3zFKZpCWBIfvg8mznfnmb13MKZvlrwJ+Lhis0wM3uGAzE0ArhFHvIcg==",
"inBundle": true
},
"node_modules/just-diff-apply": {
Expand Down

0 comments on commit c94919d

Please sign in to comment.