babel-traverse
Advanced tools
Comparing version 7.0.0-beta.0 to 7.0.0-beta.1
@@ -129,3 +129,3 @@ "use strict"; | ||
traverse.hasType = function (tree, scope, type, blacklistTypes) { | ||
traverse.hasType = function (tree, type, blacklistTypes) { | ||
if ((0, _includes2.default)(blacklistTypes, tree.type)) return false; | ||
@@ -138,5 +138,6 @@ if (tree.type === type) return true; | ||
traverse(tree, { | ||
noScope: true, | ||
blacklist: blacklistTypes, | ||
enter: hasBlacklistedType | ||
}, scope, state); | ||
}, null, state); | ||
return state.has; | ||
@@ -143,0 +144,0 @@ }; |
{ | ||
"name": "babel-traverse", | ||
"version": "7.0.0-beta.0", | ||
"version": "7.0.0-beta.1", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -11,6 +11,6 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"babel-code-frame": "7.0.0-beta.0", | ||
"babel-helper-function-name": "7.0.0-beta.0", | ||
"babel-messages": "7.0.0-beta.0", | ||
"babel-types": "7.0.0-beta.0", | ||
"babel-code-frame": "7.0.0-beta.1", | ||
"babel-helper-function-name": "7.0.0-beta.1", | ||
"babel-messages": "7.0.0-beta.1", | ||
"babel-types": "7.0.0-beta.1", | ||
"babylon": "7.0.0-beta.22", | ||
@@ -23,5 +23,5 @@ "debug": "^3.0.1", | ||
"devDependencies": { | ||
"babel-generator": "7.0.0-beta.0", | ||
"babel-helper-plugin-test-runner": "7.0.0-beta.0" | ||
"babel-generator": "7.0.0-beta.1", | ||
"babel-helper-plugin-test-runner": "7.0.0-beta.1" | ||
} | ||
} |
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
4329
153083
27
+ Addedbabel-code-frame@7.0.0-beta.1(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.1(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.1(transitive)
+ Addedbabel-messages@7.0.0-beta.1(transitive)
+ Addedbabel-template@7.0.0-beta.1(transitive)
+ Addedbabel-types@7.0.0-beta.1(transitive)
- Removedbabel-code-frame@7.0.0-beta.0(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.0(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.0(transitive)
- Removedbabel-messages@7.0.0-beta.0(transitive)
- Removedbabel-template@7.0.0-beta.0(transitive)
- Removedbabel-types@7.0.0-beta.0(transitive)
Updatedbabel-messages@7.0.0-beta.1
Updatedbabel-types@7.0.0-beta.1