dotsunited-merge-json
Advanced tools
Comparing version 2.0.0 to 3.0.0
var mergeWith = require('lodash.mergewith'); | ||
var isArray = require('lodash.isarray'); | ||
var uniqWith = require('lodash.uniqwith'); | ||
var isEqual = require('lodash.isequal'); | ||
@@ -7,5 +9,8 @@ module.exports = function(object, fragment) { | ||
if (isArray(a)) { | ||
return a.concat(b); | ||
return uniqWith( | ||
a.concat(b), | ||
isEqual | ||
); | ||
} | ||
}) | ||
}; |
@@ -9,3 +9,3 @@ { | ||
}, | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"repository": { | ||
@@ -21,4 +21,6 @@ "type": "git", | ||
"lodash.isarray": "^4.0.0", | ||
"lodash.mergewith": "^4.0.0" | ||
"lodash.isequal": "^4.0.0", | ||
"lodash.mergewith": "^4.0.0", | ||
"lodash.uniqwith": "^4.0.0" | ||
} | ||
} |
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
3356
39
4
+ Addedlodash.isequal@^4.0.0
+ Addedlodash.uniqwith@^4.0.0
+ Addedlodash.isequal@4.5.0(transitive)
+ Addedlodash.uniqwith@4.5.0(transitive)