Skip to content

Commit c94919d

Browse files
committedJul 12, 2022
1 parent ad72611 commit c94919d

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed
 

‎node_modules/just-diff/index.mjs

+6-2
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,13 @@ function diff(obj1, obj2, pathConverter) {
124124
}
125125
}
126126

127-
return diffs.remove.reverse().concat(diffs.replace).concat(diffs.add);
127+
return diffs;
128128
}
129-
return getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
129+
const finalDiffs = getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
130+
return finalDiffs.remove
131+
.reverse()
132+
.concat(finalDiffs.replace)
133+
.concat(finalDiffs.add);
130134
}
131135

132136
function pushReplace(path, basePath, key, diffs, pathConverter, obj2) {

‎node_modules/just-diff/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "just-diff",
3-
"version": "5.0.2",
3+
"version": "5.0.3",
44
"description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol",
55
"main": "index.js",
66
"module": "index.mjs",

‎package-lock.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -4390,9 +4390,9 @@
43904390
}
43914391
},
43924392
"node_modules/just-diff": {
4393-
"version": "5.0.2",
4394-
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.2.tgz",
4395-
"integrity": "sha512-uGd6F+eIZ4T95EinP8ubINGkbEy3jrgBym+6LjW+ja1UG1WQIcEcQ6FLeyXtVJZglk+bj7fvEn+Cu2LBxkgiYQ==",
4393+
"version": "5.0.3",
4394+
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.3.tgz",
4395+
"integrity": "sha512-a8p80xcpJ6sdurk5PxDKb4mav9MeKjA3zFKZpCWBIfvg8mznfnmb13MKZvlrwJ+Lhis0wM3uGAzE0ArhFHvIcg==",
43964396
"inBundle": true
43974397
},
43984398
"node_modules/just-diff-apply": {

0 commit comments

Comments
 (0)
Please sign in to comment.