@babel/traverse 7.12.1 → 7.12.5

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/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  > The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes
4
4
 
5
- See our website [@babel/traverse](https://babeljs.io/docs/en/next/babel-traverse.html) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package.
5
+ See our website [@babel/traverse](https://babeljs.io/docs/en/babel-traverse) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package.
6
6
 
7
7
  ## Install
8
8
 
package/lib/context.js CHANGED
@@ -19,10 +19,6 @@ const testing = process.env.NODE_ENV === "test";
19
19
 
20
20
  class TraversalContext {
21
21
  constructor(scope, opts, state, parentPath) {
22
- this.parentPath = void 0;
23
- this.scope = void 0;
24
- this.state = void 0;
25
- this.opts = void 0;
26
22
  this.queue = null;
27
23
  this.parentPath = parentPath;
28
24
  this.scope = scope;
package/lib/path/index.js CHANGED
@@ -57,41 +57,22 @@ exports.SHOULD_SKIP = SHOULD_SKIP;
57
57
 
58
58
  class NodePath {
59
59
  constructor(hub, parent) {
60
- this.parent = void 0;
61
- this.hub = void 0;
62
- this.contexts = void 0;
63
- this.data = void 0;
64
- this.shouldSkip = void 0;
65
- this.shouldStop = void 0;
66
- this.removed = void 0;
67
- this.state = void 0;
68
- this.opts = void 0;
69
- this._traverseFlags = void 0;
70
- this.skipKeys = void 0;
71
- this.parentPath = void 0;
72
- this.context = void 0;
73
- this.container = void 0;
74
- this.listKey = void 0;
75
- this.key = void 0;
76
- this.node = void 0;
77
- this.scope = void 0;
78
- this.type = void 0;
79
- this.parent = parent;
80
- this.hub = hub;
81
60
  this.contexts = [];
82
- this.data = null;
83
- this._traverseFlags = 0;
84
61
  this.state = null;
85
62
  this.opts = null;
63
+ this._traverseFlags = 0;
86
64
  this.skipKeys = null;
87
65
  this.parentPath = null;
88
- this.context = null;
89
66
  this.container = null;
90
67
  this.listKey = null;
91
68
  this.key = null;
92
69
  this.node = null;
93
- this.scope = null;
94
70
  this.type = null;
71
+ this.parent = parent;
72
+ this.hub = hub;
73
+ this.data = null;
74
+ this.context = null;
75
+ this.scope = null;
95
76
  }
96
77
 
97
78
  static get({
@@ -12,23 +12,15 @@ class Binding {
12
12
  path,
13
13
  kind
14
14
  }) {
15
- this.constantViolations = void 0;
16
- this.constant = void 0;
17
- this.referencePaths = void 0;
18
- this.referenced = void 0;
19
- this.references = void 0;
20
- this.hasDeoptedValue = void 0;
21
- this.hasValue = void 0;
22
- this.value = void 0;
23
- this.identifier = identifier;
24
- this.scope = scope;
25
- this.path = path;
26
- this.kind = kind;
27
15
  this.constantViolations = [];
28
16
  this.constant = true;
29
17
  this.referencePaths = [];
30
18
  this.referenced = false;
31
19
  this.references = 0;
20
+ this.identifier = identifier;
21
+ this.scope = scope;
22
+ this.path = path;
23
+ this.kind = kind;
32
24
  this.clearValue();
33
25
  }
34
26
 
@@ -45,9 +45,6 @@ const renameVisitor = {
45
45
 
46
46
  class Renamer {
47
47
  constructor(binding, oldName, newName) {
48
- this.oldName = void 0;
49
- this.newName = void 0;
50
- this.binding = void 0;
51
48
  this.newName = newName;
52
49
  this.oldName = oldName;
53
50
  this.binding = binding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/traverse",
3
- "version": "7.12.1",
3
+ "version": "7.12.5",
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/",
@@ -16,11 +16,11 @@
16
16
  "main": "lib/index.js",
17
17
  "dependencies": {
18
18
  "@babel/code-frame": "^7.10.4",
19
- "@babel/generator": "^7.12.1",
19
+ "@babel/generator": "^7.12.5",
20
20
  "@babel/helper-function-name": "^7.10.4",
21
21
  "@babel/helper-split-export-declaration": "^7.11.0",
22
- "@babel/parser": "^7.12.1",
23
- "@babel/types": "^7.12.1",
22
+ "@babel/parser": "^7.12.5",
23
+ "@babel/types": "^7.12.5",
24
24
  "debug": "^4.1.0",
25
25
  "globals": "^11.1.0",
26
26
  "lodash": "^4.17.19"