@babel/traverse 7.0.0-rc.4 → 7.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @babel/traverse might be problematic. Click here for more details.
- package/LICENSE +1 -1
- package/lib/path/modification.js +1 -1
- package/package.json +11 -8
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
|
-
Copyright (c) 2014-2018 Sebastian McKenzie
|
3
|
+
Copyright (c) 2014-2018 Sebastian McKenzie and other contributors
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
6
6
|
a copy of this software and associated documentation files (the
|
package/lib/path/modification.js
CHANGED
@@ -105,7 +105,7 @@ function insertAfter(nodes) {
|
|
105
105
|
|
106
106
|
if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) {
|
107
107
|
return parentPath.insertAfter(nodes);
|
108
|
-
} else if (this.isNodeType("Expression") || parentPath.isForStatement() && this.key === "init") {
|
108
|
+
} else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
109
109
|
if (this.node) {
|
110
110
|
let {
|
111
111
|
scope
|
package/package.json
CHANGED
@@ -1,24 +1,27 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babel/traverse",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.1.4",
|
4
4
|
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
|
5
5
|
"author": "Sebastian McKenzie <sebmck@gmail.com>",
|
6
6
|
"homepage": "https://babeljs.io/",
|
7
7
|
"license": "MIT",
|
8
|
+
"publishConfig": {
|
9
|
+
"access": "public"
|
10
|
+
},
|
8
11
|
"repository": "https://github.com/babel/babel/tree/master/packages/babel-traverse",
|
9
12
|
"main": "lib/index.js",
|
10
13
|
"dependencies": {
|
11
|
-
"@babel/code-frame": "^7.0.0
|
12
|
-
"@babel/generator": "^7.
|
13
|
-
"@babel/helper-function-name": "^7.
|
14
|
-
"@babel/helper-split-export-declaration": "^7.0.0
|
15
|
-
"@babel/parser": "^7.
|
16
|
-
"@babel/types": "^7.
|
14
|
+
"@babel/code-frame": "^7.0.0",
|
15
|
+
"@babel/generator": "^7.1.3",
|
16
|
+
"@babel/helper-function-name": "^7.1.0",
|
17
|
+
"@babel/helper-split-export-declaration": "^7.0.0",
|
18
|
+
"@babel/parser": "^7.1.3",
|
19
|
+
"@babel/types": "^7.1.3",
|
17
20
|
"debug": "^3.1.0",
|
18
21
|
"globals": "^11.1.0",
|
19
22
|
"lodash": "^4.17.10"
|
20
23
|
},
|
21
24
|
"devDependencies": {
|
22
|
-
"@babel/helper-plugin-test-runner": "^7.0.0
|
25
|
+
"@babel/helper-plugin-test-runner": "^7.0.0"
|
23
26
|
}
|
24
27
|
}
|