@babel/helper-create-class-features-plugin
Advanced tools
Comparing version 7.10.5 to 7.12.0
@@ -121,2 +121,14 @@ "use strict"; | ||
if (!isDecorated) isDecorated = (0, _decorators.hasOwnDecorators)(path.node); | ||
if (path.isStaticBlock == null ? void 0 : path.isStaticBlock()) { | ||
throw path.buildCodeFrameError(`Incorrect plugin order, \`@babel/plugin-proposal-class-static-block\` should be placed before class features plugins | ||
{ | ||
"plugins": [ | ||
"@babel/plugin-proposal-class-static-block", | ||
"@babel/plugin-proposal-private-property-in-object", | ||
"@babel/plugin-proposal-private-methods", | ||
"@babel/plugin-proposal-class-properties", | ||
] | ||
}`); | ||
} | ||
} | ||
@@ -171,3 +183,8 @@ | ||
PrivateName(path) { | ||
if (this.file.get(versionKey) !== version) return; | ||
if (this.file.get(versionKey) !== version || path.parentPath.isPrivate({ | ||
key: path.node | ||
})) { | ||
return; | ||
} | ||
throw path.buildCodeFrameError(`Unknown PrivateName "${path}"`); | ||
@@ -174,0 +191,0 @@ }, |
{ | ||
"name": "@babel/helper-create-class-features-plugin", | ||
"version": "7.10.5", | ||
"version": "7.12.0", | ||
"author": "The Babel Team (https://babeljs.io/team)", | ||
@@ -22,6 +22,6 @@ "license": "MIT", | ||
"@babel/helper-function-name": "^7.10.4", | ||
"@babel/helper-member-expression-to-functions": "^7.10.5", | ||
"@babel/helper-member-expression-to-functions": "^7.12.0", | ||
"@babel/helper-optimise-call-expression": "^7.10.4", | ||
"@babel/helper-plugin-utils": "^7.10.4", | ||
"@babel/helper-replace-supers": "^7.10.4", | ||
"@babel/helper-replace-supers": "^7.12.0", | ||
"@babel/helper-split-export-declaration": "^7.10.4" | ||
@@ -33,6 +33,5 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.10.5", | ||
"@babel/core": "^7.12.0", | ||
"@babel/helper-plugin-test-runner": "^7.10.4" | ||
}, | ||
"gitHead": "f7964a9ac51356f7df6404a25b27ba1cffba1ba7" | ||
} | ||
} | ||
} |
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
45892
1151