@contrail/util
Advanced tools
Comparing version 1.0.45 to 1.0.46
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
else if (Array.isArray(beforeVal)) { | ||
else if (Array.isArray(beforeVal) && Array.isArray(afterVal)) { | ||
const beforeArray = [...beforeVal].sort(sortFunc); | ||
@@ -48,2 +48,5 @@ const afterArray = [...afterVal].sort(sortFunc); | ||
} | ||
else if (Array.isArray(beforeVal) && !Array.isArray(afterVal)) { | ||
diffs.push(getObjectDiff(beforeVal, afterVal, prefix + commonProperty)); | ||
} | ||
else { | ||
@@ -50,0 +53,0 @@ const nestedObjectDiffs = getObjectDiffs(beforeVal, afterVal, prefix + commonProperty + '.'); |
{ | ||
"name": "@contrail/util", | ||
"version": "1.0.45", | ||
"version": "1.0.46", | ||
"description": "General javascript utilities", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32666
730