Socket
Socket
Sign inDemoInstall

@babel/plugin-syntax-flow

Package Overview
Dependencies
81
Maintainers
5
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

20

lib/index.js

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

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -19,7 +19,21 @@ };

var _default = (0, _helperPluginUtils().declare)(api => {
var _default = (0, _helperPluginUtils().declare)((api, options) => {
api.assertVersion(7);
const {
all
} = options;
if (typeof all !== "boolean" && typeof all !== "undefined") {
throw new Error(".all must be a boolean, or undefined");
}
return {
manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push("flow");
if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
return;
}
parserOpts.plugins.push(["flow", {
all
}]);
}

@@ -26,0 +40,0 @@

8

package.json
{
"name": "@babel/plugin-syntax-flow",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Allow parsing of the flow syntax",

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

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.47"
"@babel/helper-plugin-utils": "7.0.0-beta.48"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc