You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign 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.27.7
to
7.28.0
+3
-2
lib/scope/index.js

@@ -10,6 +10,7 @@ "use strict";

var _binding = require("./binding.js");
var _globals = require("globals");
var _t = require("@babel/types");
var t = _t;
var _cache = require("../cache.js");
const globalsBuiltinLower = require("@babel/helper-globals/data/builtin-lower.json"),
globalsBuiltinUpper = require("@babel/helper-globals/data/builtin-upper.json");
const {

@@ -959,3 +960,3 @@ assignmentExpression,

exports.default = Scope;
Scope.globals = Object.keys(_globals.builtin);
Scope.globals = [...globalsBuiltinLower, ...globalsBuiltinUpper];
Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];

@@ -962,0 +963,0 @@ {

+1
-1

@@ -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.27.7"}`);
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.0"}`);
}

@@ -110,0 +110,0 @@ const visitors = visitor[nodeType];

{
"name": "@babel/traverse",
"version": "7.27.7",
"version": "7.28.0",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

@@ -20,11 +20,11 @@ "author": "The Babel Team (https://babel.dev/team)",

"@babel/code-frame": "^7.27.1",
"@babel/generator": "^7.27.5",
"@babel/parser": "^7.27.7",
"@babel/generator": "^7.28.0",
"@babel/helper-globals": "^7.28.0",
"@babel/parser": "^7.28.0",
"@babel/template": "^7.27.2",
"@babel/types": "^7.27.7",
"debug": "^4.3.1",
"globals": "^11.1.0"
"@babel/types": "^7.28.0",
"debug": "^4.3.1"
},
"devDependencies": {
"@babel/core": "^7.27.7",
"@babel/core": "^7.28.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 too big to display