acorn-globals
Advanced tools
Comparing version 4.1.0 to 4.2.0
10
index.js
@@ -56,3 +56,3 @@ 'use strict'; | ||
} | ||
} | ||
}; | ||
var declarePattern = function (node, parent) { | ||
@@ -83,7 +83,7 @@ switch (node.type) { | ||
} | ||
} | ||
}; | ||
var declareModuleSpecifier = function (node, parents) { | ||
ast.locals = ast.locals || {}; | ||
ast.locals[node.local.name] = true; | ||
} | ||
}; | ||
walk.ancestor(ast, { | ||
@@ -144,3 +144,3 @@ 'VariableDeclaration': function (node, parents) { | ||
} | ||
node.parents = parents; | ||
node.parents = parents.slice(); | ||
globals.push(node); | ||
@@ -157,3 +157,3 @@ } | ||
} | ||
node.parents = parents; | ||
node.parents = parents.slice(); | ||
globals.push(node); | ||
@@ -160,0 +160,0 @@ } |
{ | ||
"name": "acorn-globals", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Detect global variables in JavaScript using acorn", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
8282