Comparing version 7.1.0 to 7.1.1
@@ -222,8 +222,6 @@ const isObject = value => { | ||
if (!isObject(object[key])) { | ||
object[key] = typeof pathArray[index + 1] === 'number' ? [] : {}; | ||
} | ||
if (index === pathArray.length - 1) { | ||
object[key] = value; | ||
} else if (!isObject(object[key])) { | ||
object[key] = typeof pathArray[index + 1] === 'number' ? [] : {}; | ||
} | ||
@@ -230,0 +228,0 @@ |
{ | ||
"name": "dot-prop", | ||
"version": "7.1.0", | ||
"version": "7.1.1", | ||
"description": "Get, set, or delete a property from a nested object using a dot path", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
14619
325