just-safe-set
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -61,5 +61,6 @@ module.exports = set; | ||
function prototypeCheck(prop) { | ||
if (prop === '__proto__' || prop === 'constructor' || prop === 'prototype') { | ||
// coercion is intentional to catch prop values like `['__proto__']` | ||
if (prop == '__proto__' || prop == 'constructor' || prop == 'prototype') { | ||
throw new Error('setting of prototype values not supported'); | ||
} | ||
} |
{ | ||
"name": "just-safe-set", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "set value at property, create intermediate properties if necessary", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
<!-- DO NOT EDIT THIS FILE! THIS FILE WAS AUTOGENERATED BY TEMPLATE-MATE --> | ||
<!-- SEE https://github.com/angus-c/just/blob/master/CONTRIBUTING.md#readme-template --> | ||
## just-safe-set | ||
@@ -2,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
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
6904
155
44