Skip to content

Commit 5778820

Browse files
committed
deps: just-diff@5.0.2
1 parent 0432c7d commit 5778820

3 files changed

Lines changed: 14 additions & 10 deletions

File tree

node_modules/just-diff/index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,12 +129,13 @@ function diff(obj1, obj2, pathConverter) {
129129
}
130130
}
131131

132-
return diffs.remove
133-
.reverse()
134-
.concat(diffs.replace)
135-
.concat(diffs.add);
132+
return diffs;
136133
}
137-
return getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
134+
const finalDiffs = getDiff(obj1, obj2, [], {remove: [], replace: [], add: []});
135+
return finalDiffs.remove
136+
.reverse()
137+
.concat(finalDiffs.replace)
138+
.concat(finalDiffs.add);
138139
}
139140

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

node_modules/just-diff/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "just-diff",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4384,9 +4384,10 @@
43844384
}
43854385
},
43864386
"node_modules/just-diff": {
4387-
"version": "5.0.1",
4388-
"inBundle": true,
4389-
"license": "MIT"
4387+
"version": "5.0.2",
4388+
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.2.tgz",
4389+
"integrity": "sha512-uGd6F+eIZ4T95EinP8ubINGkbEy3jrgBym+6LjW+ja1UG1WQIcEcQ6FLeyXtVJZglk+bj7fvEn+Cu2LBxkgiYQ==",
4390+
"inBundle": true
43904391
},
43914392
"node_modules/just-diff-apply": {
43924393
"version": "5.2.0",
@@ -12990,7 +12991,9 @@
1299012991
}
1299112992
},
1299212993
"just-diff": {
12993-
"version": "5.0.1"
12994+
"version": "5.0.2",
12995+
"resolved": "https://registry.npmjs.org/just-diff/-/just-diff-5.0.2.tgz",
12996+
"integrity": "sha512-uGd6F+eIZ4T95EinP8ubINGkbEy3jrgBym+6LjW+ja1UG1WQIcEcQ6FLeyXtVJZglk+bj7fvEn+Cu2LBxkgiYQ=="
1299412997
},
1299512998
"just-diff-apply": {
1299612999
"version": "5.2.0"

0 commit comments

Comments
 (0)