Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-proposal-decorators

Package Overview
Dependencies
Maintainers
4
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-proposal-decorators - npm Package Compare versions

Comparing version 7.23.6 to 7.23.7

10

lib/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc