From c94919dd4874196d3a84eff4fab450a17dcd4867 Mon Sep 17 00:00:00 2001 From: Gar Date: Tue, 12 Jul 2022 08:13:03 -0700 Subject: [PATCH] deps: just-diff@5.0.3 --- node_modules/just-diff/index.mjs | 8 ++++++-- node_modules/just-diff/package.json | 2 +- package-lock.json | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/node_modules/just-diff/index.mjs b/node_modules/just-diff/index.mjs index 8da5b5cea8dab..a0c5834475fea 100644 --- a/node_modules/just-diff/index.mjs +++ b/node_modules/just-diff/index.mjs @@ -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) { diff --git a/node_modules/just-diff/package.json b/node_modules/just-diff/package.json index 5a4bb5f129c83..9c6a8bbe2f94b 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.2", + "version": "5.0.3", "description": "Return an object representing the diffs between two objects. Supports jsonPatch protocol", "main": "index.js", "module": "index.mjs", diff --git a/package-lock.json b/package-lock.json index b63ab00276837..b19e310408bb3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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": {