Comparing version 2.8.13 to 2.8.14
@@ -102,3 +102,5 @@ const _ = require('isa.js') | ||
let ref = this.options.forceful ? source[key] : object[key] | ||
if (_.isPlainObject( ref ) && this.options.recursive && (!this.options.primitives || this.options.primitives.indexOf(key) === -1) ) { | ||
if ( this.options.primitives && this.options.primitives.indexOf(key) !== -1 ) | ||
object[key] = this.cloneObject( source[key] ) | ||
else if (_.isPlainObject( ref ) && this.options.recursive ) { | ||
if (this.options.forceful && !object[key]) object[key] = {} | ||
@@ -105,0 +107,0 @@ this.copyObject( source[key], object[key] ) |
{ | ||
"name": "assign.js", | ||
"version": "2.8.13", | ||
"version": "2.8.14", | ||
"description": "Tiny libary to assign objects", | ||
@@ -24,7 +24,8 @@ "keywords": [ | ||
"main": "./lib/assign.js", | ||
"types": "./index.d.ts", | ||
"dependencies": { | ||
"isa.js": "^2.2.15" | ||
"isa.js": "^2.2.17" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0" | ||
"chai": "^4.3.6" | ||
}, | ||
@@ -31,0 +32,0 @@ "browser": { |
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
17842
9
469
Updatedisa.js@^2.2.17