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.18.13 to 7.19.0

lib/cache.js.map

4

lib/cache.js

@@ -26,2 +26,4 @@ "use strict";

exports.scope = scope = new WeakMap();
}
}
//# sourceMappingURL=cache.js.map

@@ -139,2 +139,4 @@ "use strict";

exports.default = TraversalContext;
exports.default = TraversalContext;
//# sourceMappingURL=context.js.map

@@ -23,2 +23,4 @@ "use strict";

exports.default = Hub;
exports.default = Hub;
//# sourceMappingURL=hub.js.map

@@ -111,2 +111,4 @@ "use strict";

traverse.cache = cache;
traverse.cache = cache;
//# sourceMappingURL=index.js.map

@@ -19,4 +19,2 @@ "use strict";

var _index = require("./index");
const {

@@ -181,2 +179,4 @@ VISITOR_KEYS

return false;
}
}
//# sourceMappingURL=ancestry.js.map

@@ -42,2 +42,4 @@ "use strict";

_addComments(this.node, type, comments);
}
}
//# sourceMappingURL=comments.js.map

@@ -270,2 +270,4 @@ "use strict";

return contexts;
}
}
//# sourceMappingURL=context.js.map

@@ -539,2 +539,4 @@ "use strict";

};
}
}
//# sourceMappingURL=conversion.js.map

@@ -222,6 +222,6 @@ "use strict";

const keyPath = prop.get("key");
let key = keyPath;
let key;
if (prop.node.computed) {
key = key.evaluate();
key = keyPath.evaluate();

@@ -233,6 +233,6 @@ if (!key.confident) {

key = key.value;
} else if (key.isIdentifier()) {
key = key.node.name;
} else if (keyPath.isIdentifier()) {
key = keyPath.node.name;
} else {
key = key.node.value;
key = keyPath.node.value;
}

@@ -416,2 +416,4 @@

};
}
}
//# sourceMappingURL=evaluation.js.map

@@ -407,2 +407,4 @@ "use strict";

return this.getBindingIdentifierPaths(duplicates, true);
}
}
//# sourceMappingURL=family.js.map

@@ -1,5 +0,3 @@

"use strict";
var t = require("@babel/types");
var _index = require("../index");
//# sourceMappingURL=asserts.js.map

@@ -259,2 +259,4 @@ "use strict";

var _default = NodePath;
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map

@@ -180,2 +180,4 @@ "use strict";

});
}
}
//# sourceMappingURL=index.js.map

@@ -182,2 +182,4 @@ "use strict";

return getConditionalAnnotation(binding, ifStatement, name);
}
}
//# sourceMappingURL=inferer-reference.js.map

@@ -248,2 +248,4 @@ "use strict";

}
}
}
//# sourceMappingURL=inferers.js.map

@@ -32,2 +32,4 @@ "use strict";

}
}
}
//# sourceMappingURL=util.js.map

@@ -466,2 +466,4 @@ "use strict";

return !!strictParent;
}
}
//# sourceMappingURL=introspection.js.map

@@ -206,2 +206,4 @@ "use strict";

exports.default = PathHoister;
exports.default = PathHoister;
//# sourceMappingURL=hoister.js.map

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

exports.hooks = void 0;
var _ = require("..");
const hooks = [function (self, parent) {

@@ -42,2 +39,4 @@ const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();

}];
exports.hooks = hooks;
exports.hooks = hooks;
//# sourceMappingURL=removal-hooks.js.map

@@ -183,2 +183,4 @@ "use strict";

throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.");
}
}
//# sourceMappingURL=virtual-types-validator.js.map

@@ -42,2 +42,4 @@ "use strict";

const ForAwaitStatement = ["ForOfStatement"];
exports.ForAwaitStatement = ForAwaitStatement;
exports.ForAwaitStatement = ForAwaitStatement;
//# sourceMappingURL=virtual-types.js.map

@@ -269,2 +269,4 @@ "use strict";

return hoister.run();
}
}
//# sourceMappingURL=modification.js.map

@@ -73,2 +73,4 @@ "use strict";

}
}
}
//# sourceMappingURL=removal.js.map

@@ -259,2 +259,4 @@ "use strict";

}
}
}
//# sourceMappingURL=replacement.js.map

@@ -75,2 +75,4 @@ "use strict";

exports.default = Binding;
exports.default = Binding;
//# sourceMappingURL=binding.js.map

@@ -1067,2 +1067,4 @@ "use strict";

Scope.globals = Object.keys(_globals.builtin);
Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"];
//# sourceMappingURL=index.js.map

@@ -8,4 +8,2 @@ "use strict";

var _binding = require("../binding");
var _helperSplitExportDeclaration = require("@babel/helper-split-export-declaration");

@@ -130,2 +128,4 @@

exports.default = Renamer;
exports.default = Renamer;
//# sourceMappingURL=renamer.js.map

@@ -30,2 +30,4 @@ "use strict";

return false;
}
}
//# sourceMappingURL=traverse-node.js.map

@@ -1,3 +0,3 @@

"use strict";
var _index = require("./index");
//# sourceMappingURL=types.js.map

@@ -246,2 +246,4 @@ "use strict";

}
}
}
//# sourceMappingURL=visitors.js.map
{
"name": "@babel/traverse",
"version": "7.18.13",
"version": "7.19.0",
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes",

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

"@babel/code-frame": "^7.18.6",
"@babel/generator": "^7.18.13",
"@babel/generator": "^7.19.0",
"@babel/helper-environment-visitor": "^7.18.9",
"@babel/helper-function-name": "^7.18.9",
"@babel/helper-function-name": "^7.19.0",
"@babel/helper-hoist-variables": "^7.18.6",
"@babel/helper-split-export-declaration": "^7.18.6",
"@babel/parser": "^7.18.13",
"@babel/types": "^7.18.13",
"@babel/parser": "^7.19.0",
"@babel/types": "^7.19.0",
"debug": "^4.1.0",

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

@@ -8,4 +8,4 @@ import * as t from "@babel/types";

*/
import * as t from "@babel/types";
import NodePath from "../index";
import type * as t from "@babel/types";
import type NodePath from "../index";

@@ -12,0 +12,0 @@

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