@babel/traverse
Advanced tools
+8
-2
@@ -10,2 +10,3 @@ "use strict"; | ||
| var _context = require("./path/context.js"); | ||
| var _hub = require("./hub.js"); | ||
| const { | ||
@@ -37,8 +38,13 @@ VISITOR_KEYS | ||
| create(node, container, key, listKey) { | ||
| const { | ||
| parentPath | ||
| } = this; | ||
| const hub = parentPath == null ? node.type === "Program" || node.type === "File" ? new _hub.default() : undefined : parentPath.hub; | ||
| return _index.default.get({ | ||
| parentPath: this.parentPath, | ||
| parentPath, | ||
| parent: node, | ||
| container, | ||
| key: key, | ||
| listKey | ||
| listKey, | ||
| hub | ||
| }); | ||
@@ -45,0 +51,0 @@ } |
@@ -33,2 +33,5 @@ "use strict"; | ||
| } | ||
| if (path.isSwitchStatement()) { | ||
| path.context.maybeQueue(path.get("discriminant")); | ||
| } | ||
| } | ||
@@ -35,0 +38,0 @@ }, |
+1
-1
@@ -105,3 +105,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.28.6"}`); | ||
| throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type in @babel/traverse ${"7.29.0"}`); | ||
| } | ||
@@ -108,0 +108,0 @@ const visitors = visitor[nodeType]; |
+6
-6
| { | ||
| "name": "@babel/traverse", | ||
| "version": "7.28.6", | ||
| "version": "7.29.0", | ||
| "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -19,12 +19,12 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
| "dependencies": { | ||
| "@babel/code-frame": "^7.28.6", | ||
| "@babel/generator": "^7.28.6", | ||
| "@babel/code-frame": "^7.29.0", | ||
| "@babel/generator": "^7.29.0", | ||
| "@babel/helper-globals": "^7.28.0", | ||
| "@babel/parser": "^7.28.6", | ||
| "@babel/parser": "^7.29.0", | ||
| "@babel/template": "^7.28.6", | ||
| "@babel/types": "^7.28.6", | ||
| "@babel/types": "^7.29.0", | ||
| "debug": "^4.3.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@babel/core": "^7.28.6", | ||
| "@babel/core": "^7.29.0", | ||
| "@babel/helper-plugin-test-runner": "^7.27.1" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
708125
0.15%5856
0.15%Updated
Updated
Updated
Updated