@babel/traverse 7.4.0 → 7.4.3
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/lib/path/index.js +2 -2
- package/package.json +3 -3
package/lib/path/index.js
CHANGED
@@ -76,7 +76,7 @@ class NodePath {
|
|
76
76
|
this.parent = parent;
|
77
77
|
this.hub = hub;
|
78
78
|
this.contexts = [];
|
79
|
-
this.data =
|
79
|
+
this.data = Object.create(null);
|
80
80
|
this.shouldSkip = false;
|
81
81
|
this.shouldStop = false;
|
82
82
|
this.removed = false;
|
@@ -149,7 +149,7 @@ class NodePath {
|
|
149
149
|
|
150
150
|
getData(key, def) {
|
151
151
|
let val = this.data[key];
|
152
|
-
if (
|
152
|
+
if (val === undefined && def !== undefined) val = this.data[key] = def;
|
153
153
|
return val;
|
154
154
|
}
|
155
155
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@babel/traverse",
|
3
|
-
"version": "7.4.
|
3
|
+
"version": "7.4.3",
|
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/",
|
@@ -15,7 +15,7 @@
|
|
15
15
|
"@babel/generator": "^7.4.0",
|
16
16
|
"@babel/helper-function-name": "^7.1.0",
|
17
17
|
"@babel/helper-split-export-declaration": "^7.4.0",
|
18
|
-
"@babel/parser": "^7.4.
|
18
|
+
"@babel/parser": "^7.4.3",
|
19
19
|
"@babel/types": "^7.4.0",
|
20
20
|
"debug": "^4.1.0",
|
21
21
|
"globals": "^11.1.0",
|
@@ -24,5 +24,5 @@
|
|
24
24
|
"devDependencies": {
|
25
25
|
"@babel/helper-plugin-test-runner": "^7.0.0"
|
26
26
|
},
|
27
|
-
"gitHead": "
|
27
|
+
"gitHead": "508fde4009f31883f318b9e6546459ac1b086a91"
|
28
28
|
}
|