Socket
Socket
Sign inDemoInstall

undefsafe

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

5

lib/undefsafe.js

@@ -21,3 +21,6 @@ 'use strict';

}
res.push(key);
if (key) { // the first value could be a string
res.push(key);
}
key = '';

@@ -24,0 +27,0 @@ continue;

2

package.json

@@ -31,3 +31,3 @@ {

},
"version": "1.3.0"
"version": "1.3.1"
}

@@ -69,2 +69,9 @@ 'use strict';

value = {
'one.two': true
};
r = undefsafe(value, `['one.two']`);
t.equal(r, true, 'root: ' + r);
t.end();

@@ -71,0 +78,0 @@ });

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc