node-source-walk
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -68,9 +68,9 @@ var babylon = require('babylon'); | ||
Object.keys(node).forEach(function(key) { | ||
for (var key in node) { | ||
// Avoid visited nodes | ||
if (key === 'parent' || !node[key]) { return; } | ||
if (key === 'parent' || !node[key]) { continue; } | ||
node[key].parent = node; | ||
that.traverse(node[key], cb); | ||
}); | ||
this.traverse(node[key], cb); | ||
} | ||
} | ||
@@ -77,0 +77,0 @@ }; |
{ | ||
"name": "node-source-walk", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Execute a callback on every node of a source code's AST and stop walking when you see fit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
5107
4
85