Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-decorators

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 7.0.0-beta.46 to 7.0.0-beta.47

13

lib/index.js

@@ -9,3 +9,3 @@ "use strict";

function _helperPluginUtils() {
var data = require("@babel/helper-plugin-utils");
const data = require("@babel/helper-plugin-utils");

@@ -19,6 +19,6 @@ _helperPluginUtils = function _helperPluginUtils() {

var _default = (0, _helperPluginUtils().declare)(function (api, options) {
var _default = (0, _helperPluginUtils().declare)((api, options) => {
api.assertVersion(7);
var _options$legacy = options.legacy,
legacy = _options$legacy === void 0 ? false : _options$legacy;
const _options$legacy = options.legacy,
legacy = _options$legacy === void 0 ? false : _options$legacy;

@@ -30,5 +30,6 @@ if (typeof legacy !== "boolean") {

return {
manipulateOptions: function manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push(legacy ? "decorators" : "decorators2");
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push(legacy ? "decorators-legacy" : "decorators");
}
};

@@ -35,0 +36,0 @@ });

{
"name": "@babel/plugin-syntax-decorators",
"version": "7.0.0-beta.46",
"version": "7.0.0-beta.47",
"description": "Allow parsing of decorators",

@@ -12,10 +12,10 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-decorators",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.46"
"@babel/helper-plugin-utils": "7.0.0-beta.47"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.46"
"@babel/core": "7.0.0-beta.47"
}
}
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