@babel/traverse
Advanced tools
Comparing version 7.26.5 to 7.26.7
@@ -203,3 +203,11 @@ "use strict"; | ||
}, | ||
TSImportEqualsDeclaration(path) { | ||
const parent = path.scope.getBlockParent(); | ||
parent.registerDeclaration(path); | ||
}, | ||
ReferencedIdentifier(path, state) { | ||
if (t.isTSQualifiedName(path.parent) && path.parent.right === path.node) { | ||
return; | ||
} | ||
if (path.parentPath.isTSImportEqualsDeclaration()) return; | ||
state.references.push(path); | ||
@@ -206,0 +214,0 @@ }, |
@@ -107,3 +107,3 @@ "use strict"; | ||
if (!TYPES.includes(nodeType)) { | ||
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"7.26.5"}`); | ||
throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"7.26.7"}`); | ||
} | ||
@@ -110,0 +110,0 @@ const visitors = visitor[nodeType]; |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.26.5", | ||
"version": "7.26.7", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -21,5 +21,5 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/generator": "^7.26.5", | ||
"@babel/parser": "^7.26.5", | ||
"@babel/parser": "^7.26.7", | ||
"@babel/template": "^7.25.9", | ||
"@babel/types": "^7.26.5", | ||
"@babel/types": "^7.26.7", | ||
"debug": "^4.3.1", | ||
@@ -29,3 +29,3 @@ "globals": "^11.1.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.26.0", | ||
"@babel/core": "^7.26.7", | ||
"@babel/helper-plugin-test-runner": "^7.25.9" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
673781
5630
Updated@babel/parser@^7.26.7
Updated@babel/types@^7.26.7