@babel/traverse
Advanced tools
Comparing version 7.23.9 to 7.24.0
@@ -75,3 +75,6 @@ "use strict"; | ||
let stop = false; | ||
for (const path of queue) { | ||
let visitIndex = 0; | ||
for (; visitIndex < queue.length;) { | ||
const path = queue[visitIndex]; | ||
visitIndex++; | ||
path.resync(); | ||
@@ -98,4 +101,4 @@ if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { | ||
} | ||
for (const path of queue) { | ||
path.popContext(); | ||
for (let i = 0; i < visitIndex; i++) { | ||
queue[i].popContext(); | ||
} | ||
@@ -102,0 +105,0 @@ this.queue = null; |
@@ -299,3 +299,3 @@ "use strict"; | ||
const key = property.node.name; | ||
if (Object.hasOwnProperty.call(context, key)) { | ||
if (hasOwnProperty.call(context, key)) { | ||
func = context[key]; | ||
@@ -302,0 +302,0 @@ } |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.23.9", | ||
"version": "7.24.0", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -25,4 +25,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/helper-split-export-declaration": "^7.22.6", | ||
"@babel/parser": "^7.23.9", | ||
"@babel/types": "^7.23.9", | ||
"@babel/parser": "^7.24.0", | ||
"@babel/types": "^7.24.0", | ||
"debug": "^4.3.1", | ||
@@ -32,3 +32,3 @@ "globals": "^11.1.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.23.9", | ||
"@babel/core": "^7.24.0", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
@@ -35,0 +35,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
611044
5184
Updated@babel/parser@^7.24.0
Updated@babel/types@^7.24.0