Socket
Socket
Sign inDemoInstall

@babel/traverse

Package Overview
Dependencies
Maintainers
4
Versions
180
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.25.1 to 7.25.2

1

lib/index.js

@@ -25,2 +25,3 @@ "use strict";

exports.visitors = exports.default = void 0;
require("./path/context.js");
var visitors = require("./visitors.js");

@@ -27,0 +28,0 @@ exports.visitors = visitors;

2

lib/scope/index.js

@@ -348,3 +348,3 @@ "use strict";

generateUid(name = "temp") {
name = toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, "");
name = toIdentifier(name).replace(/^_+/, "").replace(/\d+$/g, "");
let uid;

@@ -351,0 +351,0 @@ let i = 1;

@@ -10,2 +10,3 @@ "use strict";

var _visitors = require("../../visitors.js");
var _context = require("../../path/context.js");
const renameVisitor = {

@@ -23,3 +24,7 @@ ReferencedIdentifier({

if (path.isMethod()) {
path.requeueComputedKeyAndDecorators();
if (!path.requeueComputedKeyAndDecorators) {
_context.requeueComputedKeyAndDecorators.call(path);
} else {
path.requeueComputedKeyAndDecorators();
}
}

@@ -26,0 +31,0 @@ }

@@ -14,2 +14,3 @@ "use strict";

var _t = require("@babel/types");
var _context = require("./path/context.js");
const {

@@ -227,3 +228,7 @@ DEPRECATED_KEYS,

if (path.isMethod()) {
path.requeueComputedKeyAndDecorators();
if (!path.requeueComputedKeyAndDecorators) {
_context.requeueComputedKeyAndDecorators.call(path);
} else {
path.requeueComputedKeyAndDecorators();
}
}

@@ -234,3 +239,7 @@ },

path.skip();
path.requeueComputedKeyAndDecorators();
if (!path.requeueComputedKeyAndDecorators) {
_context.requeueComputedKeyAndDecorators.call(path);
} else {
path.requeueComputedKeyAndDecorators();
}
}

@@ -237,0 +246,0 @@ };

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

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

"@babel/template": "^7.25.0",
"@babel/types": "^7.25.0",
"@babel/types": "^7.25.2",
"debug": "^4.3.1",

@@ -29,3 +29,3 @@ "globals": "^11.1.0"

"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/core": "^7.25.2",
"@babel/helper-plugin-test-runner": "^7.24.7"

@@ -32,0 +32,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc