Socket
Socket
Sign inDemoInstall

traverse

Package Overview
Dependencies
0
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.2 to 0.6.0

test/has.js

12

index.js

@@ -20,2 +20,14 @@ module.exports = Traverse;

Traverse.prototype.has = function (ps) {
var node = this.value;
for (var i = 0; i < ps.length; i ++) {
var key = ps[i];
if (!Object.hasOwnProperty.call(node, key)) {
return false;
}
node = node[key];
}
return true;
};
Traverse.prototype.set = function (ps, value) {

@@ -22,0 +34,0 @@ var node = this.value;

2

package.json
{
"name" : "traverse",
"version" : "0.5.2",
"version" : "0.6.0",
"description" : "Traverse and transform objects by visiting every node on a recursive walk",

@@ -5,0 +5,0 @@ "author" : "James Halliday",

Sorry, the diff of this file is not supported yet

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