@babel/traverse
Advanced tools
Comparing version 7.1.5 to 7.1.6
@@ -107,3 +107,5 @@ "use strict"; | ||
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { | ||
return parentPath.insertAfter(nodes); | ||
return parentPath.insertAfter(nodes.map(node => { | ||
return t().isExpression(node) ? t().expressionStatement(node) : node; | ||
})); | ||
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") { | ||
@@ -110,0 +112,0 @@ if (this.node) { |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.1.5", | ||
"version": "7.1.6", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -15,8 +15,8 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
"@babel/code-frame": "^7.0.0", | ||
"@babel/generator": "^7.1.5", | ||
"@babel/generator": "^7.1.6", | ||
"@babel/helper-function-name": "^7.1.0", | ||
"@babel/helper-split-export-declaration": "^7.0.0", | ||
"@babel/parser": "^7.1.5", | ||
"@babel/types": "^7.1.5", | ||
"debug": "^3.1.0", | ||
"@babel/parser": "^7.1.6", | ||
"@babel/types": "^7.1.6", | ||
"debug": "^4.1.0", | ||
"globals": "^11.1.0", | ||
@@ -23,0 +23,0 @@ "lodash": "^4.17.10" |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
144261
4280
1
+ Addeddebug@4.3.5(transitive)
+ Addedms@2.1.2(transitive)
- Removeddebug@3.2.7(transitive)
- Removedms@2.1.3(transitive)
Updated@babel/generator@^7.1.6
Updated@babel/parser@^7.1.6
Updated@babel/types@^7.1.6
Updateddebug@^4.1.0