Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/helper-environment-visitor

Package Overview
Dependencies
Maintainers
4
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/helper-environment-visitor - npm Package Compare versions

Comparing version 7.18.9 to 7.21.4-esm

lib/index.js.map

14

lib/index.js

@@ -9,6 +9,4 @@ "use strict";

exports.skipAllButComputedKey = skipAllButComputedKey;
function skipAllButComputedKey(path) {
path.skip();
if (path.node.computed) {

@@ -18,3 +16,2 @@ path.context.maybeQueue(path.get("key"));

}
function requeueComputedKeyAndDecorators(path) {

@@ -25,7 +22,5 @@ const {

} = path;
if (node.computed) {
context.maybeQueue(path.get("key"));
}
if (node.decorators) {

@@ -37,3 +32,2 @@ for (const decorator of path.get("decorators")) {

}
const visitor = {

@@ -45,3 +39,2 @@ FunctionParent(path) {

path.skip();
if (path.isMethod()) {

@@ -52,3 +45,2 @@ requeueComputedKeyAndDecorators(path);

},
Property(path) {

@@ -58,9 +50,9 @@ if (path.isObjectProperty()) {

}
path.skip();
requeueComputedKeyAndDecorators(path);
}
};
var _default = visitor;
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=index.js.map
{
"name": "@babel/helper-environment-visitor",
"version": "7.18.9",
"version": "7.21.4-esm",
"description": "Helper visitor to only visit nodes in the current 'this' context",

@@ -21,4 +21,4 @@ "repository": {

"devDependencies": {
"@babel/traverse": "^7.18.9",
"@babel/types": "^7.18.9"
"@babel/traverse": "^7.21.4-esm",
"@babel/types": "^7.21.4-esm"
},

@@ -25,0 +25,0 @@ "engines": {

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