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 1.0.0 to 1.1.0

10

index.js

@@ -19,2 +19,7 @@ module.exports = set;

obj4; // {a: {aa: {bbb: 7}}}
const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
obj5; // {a: {Symbol(): 7}}
*/

@@ -26,2 +31,5 @@

}
if (typeof props == 'symbol') {
props = [props];
}
var lastProp = props.pop();

@@ -32,3 +40,3 @@ if (!lastProp) {

var thisProp;
while (thisProp = props.shift()) {
while ((thisProp = props.shift())) {
if (!obj[thisProp]) {

@@ -35,0 +43,0 @@ obj[thisProp] = {};

13

package.json
{
"name": "just-safe-set",
"version": "1.0.0",
"description": "set value at property, create intermediate properties if necessary",
"version": "1.1.0",
"description":
"set value at property, create intermediate properties if necessary",
"main": "index.js",

@@ -10,9 +11,3 @@ "scripts": {

"repository": "https://github.com/angus-c/just",
"keywords": [
"object",
"safe",
"set",
"no-dependencies",
"just"
],
"keywords": ["object", "safe", "set", "no-dependencies", "just"],
"author": "Angus Croll",

@@ -19,0 +14,0 @@ "license": "MIT",

@@ -26,2 +26,7 @@ ## just-safe-get

obj4; // {a: {aa: {bbb: 7}}}
const obj5 = {a: {}};
const sym = Symbol();
set(obj5.a, sym, 7); // true
obj5; // {a: {Symbol(): 7}}
```
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