Socket
Socket
Sign inDemoInstall

@babel/plugin-proposal-decorators

Package Overview
Dependencies
Maintainers
5
Versions
124
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.2.0 to 7.2.2

40

lib/index.js

@@ -28,4 +28,12 @@ "use strict";

var _transformer = _interopRequireDefault(require("./transformer"));
function _helperCreateClassFeaturesPlugin() {
const data = require("@babel/helper-create-class-features-plugin");
_helperCreateClassFeaturesPlugin = function () {
return data;
};
return data;
}
var _transformerLegacy = _interopRequireDefault(require("./transformer-legacy"));

@@ -63,16 +71,34 @@

return {
if (legacy) {
return {
name: "proposal-decorators",
inherits: _pluginSyntaxDecorators().default,
manipulateOptions({
generatorOpts
}) {
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport;
},
visitor: _transformerLegacy.default
};
}
return (0, _helperCreateClassFeaturesPlugin().createClassFeaturePlugin)({
name: "proposal-decorators",
inherits: _pluginSyntaxDecorators().default,
feature: _helperCreateClassFeaturesPlugin().FEATURES.decorators,
manipulateOptions({
generatorOpts
generatorOpts,
parserOpts
}) {
parserOpts.plugins.push(["decorators", {
decoratorsBeforeExport
}]);
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport;
},
}
visitor: legacy ? _transformerLegacy.default : _transformer.default
};
});
});
exports.default = _default;

7

package.json
{
"name": "@babel/plugin-proposal-decorators",
"version": "7.2.0",
"version": "7.2.2",
"author": "Logan Smyth <loganfsmyth@gmail.com>",

@@ -18,5 +18,4 @@ "license": "MIT",

"dependencies": {
"@babel/helper-create-class-features-plugin": "^7.2.2",
"@babel/helper-plugin-utils": "^7.0.0",
"@babel/helper-replace-supers": "^7.1.0",
"@babel/helper-split-export-declaration": "^7.0.0",
"@babel/plugin-syntax-decorators": "^7.2.0"

@@ -28,5 +27,5 @@ },

"devDependencies": {
"@babel/core": "^7.2.0",
"@babel/core": "^7.2.2",
"@babel/helper-plugin-test-runner": "^7.0.0"
}
}
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