just-safe-set
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -37,4 +37,6 @@ module.exports = set; | ||
} | ||
prototypeCheck(lastProp); | ||
var thisProp; | ||
while ((thisProp = props.shift())) { | ||
prototypeCheck(thisProp); | ||
if (typeof obj[thisProp] == 'undefined') { | ||
@@ -51,1 +53,7 @@ obj[thisProp] = {}; | ||
} | ||
function prototypeCheck(prop) { | ||
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') { | ||
throw new Error('setting of prototype values not supported'); | ||
} | ||
} |
{ | ||
"name": "just-safe-set", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "set value at property, create intermediate properties if necessary", | ||
@@ -5,0 +5,0 @@ "main": "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
4457
84