@babel/helper-create-class-features-plugin
Advanced tools
Comparing version 7.16.10 to 7.17.0
@@ -72,3 +72,3 @@ "use strict"; | ||
}).replace(); | ||
const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); | ||
const properties = [prop("kind", _core.types.stringLiteral(_core.types.isClassMethod(node) ? node.kind : "field")), prop("decorators", takeDecorators(node)), prop("static", !_core.types.isStaticBlock(node) && node.static && _core.types.booleanLiteral(true)), prop("key", getKey(node))].filter(Boolean); | ||
@@ -75,0 +75,0 @@ if (_core.types.isClassMethod(node)) { |
@@ -759,3 +759,3 @@ "use strict"; | ||
state.needsClassRef = true; | ||
return isStaticBlock || path.node.static ? ref : _core.types.memberExpression(ref, _core.types.identifier("prototype")); | ||
return _core.types.isStaticBlock(path.node) || path.node.static ? ref : _core.types.memberExpression(ref, _core.types.identifier("prototype")); | ||
} | ||
@@ -792,3 +792,3 @@ | ||
prop.isClassProperty() && ts.assertFieldTransformed(prop); | ||
const isStatic = prop.node.static; | ||
const isStatic = !_core.types.isStaticBlock(prop.node) && prop.node.static; | ||
const isInstance = !isStatic; | ||
@@ -795,0 +795,0 @@ const isPrivate = prop.isPrivate(); |
@@ -42,3 +42,3 @@ "use strict"; | ||
const version = "7.16.10".split(".").reduce((v, x) => v * 1e5 + +x, 0); | ||
const version = "7.17.0".split(".").reduce((v, x) => v * 1e5 + +x, 0); | ||
const versionKey = "@babel/plugin-class-features/version"; | ||
@@ -53,3 +53,4 @@ | ||
assumption: () => void 0 | ||
} | ||
}, | ||
inherits | ||
}) { | ||
@@ -80,2 +81,3 @@ const setPublicClassFields = api.assumption("setPublicClassFields"); | ||
manipulateOptions, | ||
inherits, | ||
@@ -193,3 +195,3 @@ pre() { | ||
for (const prop of props) { | ||
if (prop.node.static) continue; | ||
if (_core.types.isStaticBlock(prop.node) || prop.node.static) continue; | ||
prop.traverse(referenceVisitor, state); | ||
@@ -196,0 +198,0 @@ } |
{ | ||
"name": "@babel/helper-create-class-features-plugin", | ||
"version": "7.16.10", | ||
"version": "7.17.0", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
@@ -33,6 +33,6 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.16.10", | ||
"@babel/core": "^7.17.0", | ||
"@babel/helper-plugin-test-runner": "^7.16.7", | ||
"@babel/plugin-syntax-class-static-block": "^7.14.5", | ||
"@babel/preset-env": "^7.16.10" | ||
"@babel/preset-env": "^7.16.11" | ||
}, | ||
@@ -39,0 +39,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
52925
1322