Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@babel/traverse

Package Overview
Dependencies
Maintainers
4
Versions
212
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/traverse - npm Package Compare versions

Comparing version
7.28.6
to
7.29.0
+8
-2
lib/context.js

@@ -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 @@ }

+3
-0

@@ -33,2 +33,5 @@ "use strict";

}
if (path.isSwitchStatement()) {
path.context.maybeQueue(path.get("discriminant"));
}
}

@@ -35,0 +38,0 @@ },

@@ -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];

{
"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