@babel/traverse 7.14.5 → 7.14.7

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.

Files changed (2) hide show
  1. package/lib/context.js +0 -11
  2. package/package.json +2 -2
package/lib/context.js CHANGED
@@ -9,8 +9,6 @@ var _path = require("./path");
9
9
 
10
10
  var t = require("@babel/types");
11
11
 
12
- const testing = process.env.NODE_ENV === "test";
13
-
14
12
  class TraversalContext {
15
13
  constructor(scope, opts, state, parentPath) {
16
14
  this.queue = null;
@@ -46,10 +44,6 @@ class TraversalContext {
46
44
  }
47
45
 
48
46
  maybeQueue(path, notPriority) {
49
- if (this.trap) {
50
- throw new Error("Infinite cycle detected");
51
- }
52
-
53
47
  if (this.queue) {
54
48
  if (notPriority) {
55
49
  this.queue.push(path);
@@ -96,11 +90,6 @@ class TraversalContext {
96
90
  }
97
91
 
98
92
  if (path.key === null) continue;
99
-
100
- if (testing && queue.length >= 10000) {
101
- this.trap = true;
102
- }
103
-
104
93
  const {
105
94
  node
106
95
  } = path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babel/traverse",
3
- "version": "7.14.5",
3
+ "version": "7.14.7",
4
4
  "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",
5
5
  "author": "The Babel Team (https://babel.dev/team)",
6
6
  "homepage": "https://babel.dev/docs/en/next/babel-traverse",
@@ -21,7 +21,7 @@
21
21
  "@babel/helper-function-name": "^7.14.5",
22
22
  "@babel/helper-hoist-variables": "^7.14.5",
23
23
  "@babel/helper-split-export-declaration": "^7.14.5",
24
- "@babel/parser": "^7.14.5",
24
+ "@babel/parser": "^7.14.7",
25
25
  "@babel/types": "^7.14.5",
26
26
  "debug": "^4.1.0",
27
27
  "globals": "^11.1.0"