@babel/helper-create-class-features-plugin
Advanced tools
Comparing version 7.17.1 to 7.17.6
@@ -806,5 +806,14 @@ "use strict"; | ||
case isStaticBlock: | ||
staticNodes.push(_core.template.statement.ast`(() => ${_core.types.blockStatement(prop.node.body)})()`); | ||
break; | ||
{ | ||
const blockBody = prop.node.body; | ||
if (blockBody.length === 1 && _core.types.isExpressionStatement(blockBody[0])) { | ||
staticNodes.push(blockBody[0]); | ||
} else { | ||
staticNodes.push(_core.template.statement.ast`(() => { ${blockBody} })()`); | ||
} | ||
break; | ||
} | ||
case isStatic && isPrivate && isField && privateFieldsAsProperties: | ||
@@ -811,0 +820,0 @@ needsClassRef = true; |
@@ -42,3 +42,3 @@ "use strict"; | ||
const version = "7.17.1".split(".").reduce((v, x) => v * 1e5 + +x, 0); | ||
const version = "7.17.6".split(".").reduce((v, x) => v * 1e5 + +x, 0); | ||
const versionKey = "@babel/plugin-class-features/version"; | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "@babel/helper-create-class-features-plugin", | ||
"version": "7.17.1", | ||
"version": "7.17.6", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
@@ -33,3 +33,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@babel/core": "^7.17.0", | ||
"@babel/core": "^7.17.5", | ||
"@babel/helper-plugin-test-runner": "^7.16.7", | ||
@@ -36,0 +36,0 @@ "@babel/plugin-syntax-class-static-block": "^7.14.5", |
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
53286
1329