acorn-globals
Advanced tools
Comparing version 7.0.0 to 7.0.1-canary-4
@@ -10,3 +10,4 @@ 'use strict'; | ||
function isBlockScope(node) { | ||
return node.type === 'BlockStatement' || isScope(node); | ||
// The body of switch statement is a block. | ||
return node.type === 'BlockStatement' || node.type === 'SwitchStatement' || isScope(node); | ||
} | ||
@@ -13,0 +14,0 @@ |
{ | ||
"name": "acorn-globals", | ||
"version": "7.0.0", | ||
"version": "7.0.1-canary-4", | ||
"description": "Detect global variables in JavaScript using acorn", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9454
174
1