Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

just-safe-set

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-safe-set - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

8

index.js

@@ -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');
}
}

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc