@babel/plugin-proposal-decorators
Advanced tools
Comparing version 7.23.6 to 7.23.7
@@ -11,3 +11,2 @@ "use strict"; | ||
var _transformerLegacy = require("./transformer-legacy.js"); | ||
var _transformer = require("./transformer-2023-05.js"); | ||
var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => { | ||
@@ -29,5 +28,3 @@ api.assertVersion(7); | ||
}; | ||
} else if (version === "2021-12" || version === "2022-03" || version === "2023-01" || version === "2023-05") { | ||
return (0, _transformer.default)(api, options, version); | ||
} else { | ||
} else if (!version || version === "2018-09" || version === "2021-12" || version === "2022-03" || version === "2023-01" || version === "2023-05") { | ||
api.assertVersion("^7.0.2"); | ||
@@ -38,4 +35,7 @@ return (0, _helperCreateClassFeaturesPlugin.createClassFeaturePlugin)({ | ||
feature: _helperCreateClassFeaturesPlugin.FEATURES.decorators, | ||
inherits: _pluginSyntaxDecorators.default | ||
inherits: _pluginSyntaxDecorators.default, | ||
decoratorVersion: version | ||
}); | ||
} else { | ||
throw new Error("The '.version' option must be one of 'legacy', '2023-05', '2023-01', '2022-03', or '2021-12'."); | ||
} | ||
@@ -42,0 +42,0 @@ }); |
{ | ||
"name": "@babel/plugin-proposal-decorators", | ||
"version": "7.23.6", | ||
"version": "7.23.7", | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
@@ -23,7 +23,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@babel/helper-create-class-features-plugin": "^7.23.6", | ||
"@babel/helper-create-class-features-plugin": "^7.23.7", | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-replace-supers": "^7.22.20", | ||
"@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", | ||
"@babel/helper-split-export-declaration": "^7.22.6", | ||
"@babel/plugin-syntax-decorators": "^7.23.3" | ||
@@ -35,9 +32,7 @@ }, | ||
"devDependencies": { | ||
"@babel/core": "^7.23.6", | ||
"@babel/core": "^7.23.7", | ||
"@babel/helper-plugin-test-runner": "^7.22.5", | ||
"@babel/traverse": "^7.23.6", | ||
"@types/charcodes": "^0.2.0", | ||
"@babel/traverse": "^7.23.7", | ||
"array.prototype.concat": "^1.0.2", | ||
"babel-plugin-polyfill-es-shims": "^0.10.0", | ||
"charcodes": "^0.2.0", | ||
"babel-plugin-polyfill-es-shims": "^0.10.1", | ||
"object.getownpropertydescriptors": "^2.1.1" | ||
@@ -44,0 +39,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
4
6
40003
7
207
1