@babel/traverse
Advanced tools
Comparing version 7.0.0-beta.35 to 7.0.0-beta.36
@@ -112,6 +112,2 @@ "use strict"; | ||
if (path.parentPath.isExportDeclaration()) { | ||
path = path.parentPath; | ||
} | ||
return path; | ||
@@ -118,0 +114,0 @@ }; |
@@ -32,3 +32,3 @@ "use strict"; | ||
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement()) { | ||
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportDeclaration()) { | ||
return this.parentPath.insertBefore(nodes); | ||
@@ -110,3 +110,3 @@ } else if (this.isNodeType("Expression") && this.listKey !== "params" && this.listKey !== "arguments" || this.parentPath.isForStatement() && this.key === "init") { | ||
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement()) { | ||
if (this.parentPath.isExpressionStatement() || this.parentPath.isLabeledStatement() || this.parentPath.isExportDeclaration()) { | ||
return this.parentPath.insertAfter(nodes); | ||
@@ -113,0 +113,0 @@ } else if (this.isNodeType("Expression") || this.parentPath.isForStatement() && this.key === "init") { |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.0.0-beta.35", | ||
"version": "7.0.0-beta.36", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -11,8 +11,8 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"dependencies": { | ||
"@babel/code-frame": "7.0.0-beta.35", | ||
"@babel/helper-function-name": "7.0.0-beta.35", | ||
"@babel/types": "7.0.0-beta.35", | ||
"babylon": "7.0.0-beta.35", | ||
"@babel/code-frame": "7.0.0-beta.36", | ||
"@babel/helper-function-name": "7.0.0-beta.36", | ||
"@babel/types": "7.0.0-beta.36", | ||
"babylon": "7.0.0-beta.36", | ||
"debug": "^3.0.1", | ||
"globals": "^10.0.0", | ||
"globals": "^11.1.0", | ||
"invariant": "^2.2.0", | ||
@@ -22,5 +22,5 @@ "lodash": "^4.2.0" | ||
"devDependencies": { | ||
"@babel/generator": "7.0.0-beta.35", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.35" | ||
"@babel/generator": "7.0.0-beta.36", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.36" | ||
} | ||
} |
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
155137
4346
+ Added@babel/code-frame@7.0.0-beta.36(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.36(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.36(transitive)
+ Added@babel/template@7.0.0-beta.36(transitive)
+ Added@babel/types@7.0.0-beta.36(transitive)
+ Addedbabylon@7.0.0-beta.36(transitive)
+ Addedglobals@11.12.0(transitive)
- Removed@babel/code-frame@7.0.0-beta.35(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.35(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.35(transitive)
- Removed@babel/template@7.0.0-beta.35(transitive)
- Removed@babel/types@7.0.0-beta.35(transitive)
- Removedbabylon@7.0.0-beta.35(transitive)
- Removedglobals@10.4.0(transitive)
Updated@babel/types@7.0.0-beta.36
Updatedbabylon@7.0.0-beta.36
Updatedglobals@^11.1.0