Comparing version 0.0.21 to 0.0.22
@@ -5,3 +5,3 @@ { | ||
"description": "Core JavaScript library for browser runtime", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "fish" |
@@ -85,2 +85,6 @@ /** | ||
function _isObject(v){ | ||
return v && typeof v === 'object' && !(v instanceof Date); | ||
} | ||
var maxDepth = 8; | ||
@@ -103,3 +107,3 @@ function deepMerge(dest, src, directs, depth) { | ||
if(value === undefined) continue; | ||
if (destValue && typeof (destValue) === 'object' && typeof (value) === 'object') { | ||
if (_isObject(destValue) && _isObject(value)){ | ||
if (!isNeedClone(value) || (directs && i in directs)) { | ||
@@ -114,7 +118,6 @@ result[i] = value; | ||
} | ||
result[i] = deepMerge(destValue, value, directs, depth); | ||
continue; | ||
} | ||
if (typeof (value) === 'object' && isNeedClone(value)) value = deepClone(value); | ||
if (_isObject(value) && isNeedClone(value)) value = deepClone(value); | ||
result[i] = value; | ||
@@ -121,0 +124,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
766
0
23750
8