Socket
Socket
Sign inDemoInstall

traverse

Package Overview
Dependencies
0
Maintainers
0
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.3.8 to 0.3.9

test/stop.js

8

index.js

@@ -191,2 +191,3 @@ module.exports = Traverse;

var parents = [];
var alive = true;

@@ -226,5 +227,8 @@ return (function walker (node_) {

pre : function (f) { modifiers.pre = f },
post : function (f) { modifiers.post = f }
post : function (f) { modifiers.post = f },
stop : function () { alive = false }
};
if (!alive) return state;
if (typeof node === 'object' && node !== null) {

@@ -311,3 +315,3 @@ state.isLeaf = Object.keys(node).length == 0;

else {
dst = Object.create(src.__proto__);
dst = Object.create(Object.getPrototypeOf(src));
}

@@ -314,0 +318,0 @@

{
"name" : "traverse",
"version" : "0.3.8",
"version" : "0.3.9",
"description" : "Traverse and transform objects by visiting every node on a recursive walk",

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

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