@babel/plugin-transform-classes
Advanced tools
Comparing version 7.18.9 to 7.19.0
@@ -10,2 +10,4 @@ "use strict"; | ||
var _helperCompilationTargets = require("@babel/helper-compilation-targets"); | ||
var _helperAnnotateAsPure = require("@babel/helper-annotate-as-pure"); | ||
@@ -38,2 +40,3 @@ | ||
const noClassCalls = (_api$assumption4 = api.assumption("noClassCalls")) != null ? _api$assumption4 : loose; | ||
const supportUnicodeId = !(0, _helperCompilationTargets.isRequired)("transform-unicode-escapes", api.targets()); | ||
const VISITED = new WeakSet(); | ||
@@ -61,3 +64,3 @@ return { | ||
if (VISITED.has(node)) return; | ||
const inferred = (0, _helperFunctionName.default)(path); | ||
const inferred = (0, _helperFunctionName.default)(path, undefined, supportUnicodeId); | ||
@@ -75,3 +78,3 @@ if (inferred && inferred !== node) { | ||
noClassCalls | ||
})); | ||
}, supportUnicodeId)); | ||
@@ -92,2 +95,4 @@ if (replacedPath.isCallExpression()) { | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -72,2 +72,4 @@ "use strict"; | ||
} | ||
`; | ||
`; | ||
//# sourceMappingURL=inline-createSuper-helpers.js.map |
@@ -30,3 +30,3 @@ "use strict"; | ||
function transformClass(path, file, builtinClasses, isLoose, assumptions) { | ||
function transformClass(path, file, builtinClasses, isLoose, assumptions, supportUnicodeId) { | ||
const classState = { | ||
@@ -364,7 +364,9 @@ parent: undefined, | ||
if (node.kind === "method") { | ||
fn = (0, _helperFunctionName.default)({ | ||
var _nameFunction; | ||
fn = (_nameFunction = (0, _helperFunctionName.default)({ | ||
id: key, | ||
node: node, | ||
scope | ||
}); | ||
}, undefined, supportUnicodeId)) != null ? _nameFunction : fn; | ||
} | ||
@@ -420,7 +422,9 @@ } else { | ||
if (_core.types.isStringLiteral(key)) { | ||
func = (0, _helperFunctionName.default)({ | ||
var _nameFunction2; | ||
func = (_nameFunction2 = (0, _helperFunctionName.default)({ | ||
node: func, | ||
id: key, | ||
scope | ||
}); | ||
}, undefined, supportUnicodeId)) != null ? _nameFunction2 : func; | ||
} | ||
@@ -631,2 +635,4 @@ | ||
return classTransformer(path, file, builtinClasses, isLoose); | ||
} | ||
} | ||
//# sourceMappingURL=transformClass.js.map |
{ | ||
"name": "@babel/plugin-transform-classes", | ||
"version": "7.18.9", | ||
"version": "7.19.0", | ||
"description": "Compile ES2015 classes to ES5", | ||
@@ -18,6 +18,7 @@ "repository": { | ||
"@babel/helper-annotate-as-pure": "^7.18.6", | ||
"@babel/helper-compilation-targets": "^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-optimise-call-expression": "^7.18.6", | ||
"@babel/helper-plugin-utils": "^7.18.9", | ||
"@babel/helper-plugin-utils": "^7.19.0", | ||
"@babel/helper-replace-supers": "^7.18.9", | ||
@@ -34,5 +35,5 @@ "@babel/helper-split-export-declaration": "^7.18.6", | ||
"devDependencies": { | ||
"@babel/core": "^7.18.9", | ||
"@babel/core": "^7.19.0", | ||
"@babel/helper-plugin-test-runner": "^7.18.6", | ||
"@babel/traverse": "^7.18.9" | ||
"@babel/traverse": "^7.19.0" | ||
}, | ||
@@ -39,0 +40,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
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
84114
9
640
10