@babel/helper-environment-visitor
Advanced tools
Comparing version 7.18.9 to 7.21.4-esm
@@ -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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6415
6
49
1