@babel/plugin-transform-classes
Advanced tools
Comparing version 7.17.12 to 7.18.4
@@ -37,3 +37,3 @@ "use strict"; | ||
const noClassCalls = (_api$assumption4 = api.assumption("noClassCalls")) != null ? _api$assumption4 : loose; | ||
const VISITED = Symbol(); | ||
const VISITED = new WeakSet(); | ||
return { | ||
@@ -59,3 +59,3 @@ name: "transform-classes", | ||
} = path; | ||
if (node[VISITED]) return; | ||
if (VISITED.has(node)) return; | ||
const inferred = (0, _helperFunctionName.default)(path); | ||
@@ -68,3 +68,3 @@ | ||
node[VISITED] = true; | ||
VISITED.add(node); | ||
path.replaceWith((0, _transformClass.default)(path, state.file, builtinClasses, loose, { | ||
@@ -71,0 +71,0 @@ setClassMethods, |
{ | ||
"name": "@babel/plugin-transform-classes", | ||
"version": "7.17.12", | ||
"version": "7.18.4", | ||
"description": "Compile ES2015 classes to ES5", | ||
@@ -18,7 +18,7 @@ "repository": { | ||
"@babel/helper-annotate-as-pure": "^7.16.7", | ||
"@babel/helper-environment-visitor": "^7.16.7", | ||
"@babel/helper-environment-visitor": "^7.18.2", | ||
"@babel/helper-function-name": "^7.17.9", | ||
"@babel/helper-optimise-call-expression": "^7.16.7", | ||
"@babel/helper-plugin-utils": "^7.17.12", | ||
"@babel/helper-replace-supers": "^7.16.7", | ||
"@babel/helper-replace-supers": "^7.18.2", | ||
"@babel/helper-split-export-declaration": "^7.16.7", | ||
@@ -34,5 +34,5 @@ "globals": "^11.1.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.17.12", | ||
"@babel/core": "^7.18.2", | ||
"@babel/helper-plugin-test-runner": "^7.16.7", | ||
"@babel/traverse": "^7.17.12" | ||
"@babel/traverse": "^7.18.2" | ||
}, | ||
@@ -39,0 +39,0 @@ "engines": { |
26531
+ Addedcaniuse-lite@1.0.30001616(transitive)
+ Addedelectron-to-chromium@1.4.763(transitive)
+ Addedpicocolors@1.0.0(transitive)
+ Addedupdate-browserslist-db@1.0.15(transitive)
- Removedcaniuse-lite@1.0.30001618(transitive)
- Removedelectron-to-chromium@1.4.768(transitive)
- Removedpicocolors@1.0.1(transitive)
- Removedupdate-browserslist-db@1.0.16(transitive)