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

@babel/plugin-syntax-decorators

Package Overview
Dependencies
Maintainers
5
Versions
82
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.44 to 7.0.0-beta.45

11

lib/index.js

@@ -18,7 +18,14 @@ "use strict";

var _default = (0, _helperPluginUtils().declare)(function (api) {
var _default = (0, _helperPluginUtils().declare)(function (api, options) {
api.assertVersion(7);
var _options$legacy = options.legacy,
legacy = _options$legacy === void 0 ? false : _options$legacy;
if (typeof legacy !== "boolean") {
throw new Error("'legacy' must be a boolean.");
}
return {
manipulateOptions: function manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("decorators");
parserOpts.plugins.push(legacy ? "decorators" : "decorators2");
}

@@ -25,0 +32,0 @@ };

8

package.json
{
"name": "@babel/plugin-syntax-decorators",
"version": "7.0.0-beta.44",
"version": "7.0.0-beta.45",
"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.44"
"@babel/helper-plugin-utils": "7.0.0-beta.45"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.44"
"@babel/core": "7.0.0-beta.45"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.44"
"@babel/core": "7.0.0-beta.45"
}
}

@@ -36,1 +36,9 @@ # @babel/plugin-syntax-decorators

```
## Options
### `legacy`
`boolean`, defaults to `false`.
Use the legacy (stage 1) decorators syntax.
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