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

@babel/plugin-syntax-flow

Package Overview
Dependencies
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 8.0.0-alpha.12 to 8.0.0-alpha.13

3

lib/index.d.ts

@@ -5,6 +5,5 @@ import * as _babel_core from '@babel/core';

all?: boolean;
enums?: boolean;
}
declare const _default: (api: _babel_core.PluginAPI, options: Options, dirname: string) => _babel_core.PluginObject<object & _babel_core.PluginPass>;
declare const _default: (api: _babel_core.PluginAPI, options: Options, dirname: string) => _babel_core.PluginObject<object & _babel_core.PluginPass<object>>;
export { type Options, _default as default };
import { declare } from '@babel/helper-plugin-utils';
var index = declare((api, options) => {
api.assertVersion("8.0.0-alpha.12");
api.assertVersion("8.0.0-alpha.13");
const {

@@ -9,7 +9,9 @@ all,

} = options;
if (typeof all !== "boolean" && typeof all !== "undefined") {
if (typeof all !== "boolean" && all !== undefined) {
throw new Error(".all must be a boolean, or undefined");
}
if (typeof enums !== "boolean" && typeof enums !== "undefined") {
throw new Error(".enums must be a boolean, or undefined");
{
if (enums !== undefined) {
throw new Error("The .enums option has been removed and it's now always enabled. Please remove it from your config.");
}
}

@@ -19,6 +21,7 @@ return {

manipulateOptions(opts, parserOpts) {
parserOpts.plugins.push(["flow", {
all,
enums
}]);
{
parserOpts.plugins.push(["flow", {
all
}]);
}
}

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

{
"name": "@babel/plugin-syntax-flow",
"version": "8.0.0-alpha.12",
"version": "8.0.0-alpha.13",
"description": "Allow parsing of the flow syntax",

@@ -20,12 +20,12 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^8.0.0-alpha.12"
"@babel/helper-plugin-utils": "^8.0.0-alpha.13"
},
"peerDependencies": {
"@babel/core": "^8.0.0-alpha.12"
"@babel/core": "^8.0.0-alpha.13"
},
"devDependencies": {
"@babel/core": "^8.0.0-alpha.12"
"@babel/core": "^8.0.0-alpha.13"
},
"engines": {
"node": "^18.20.0 || ^20.10.0 || >=21.0.0"
"node": "^18.20.0 || ^20.17.0 || >=22.8.0"
},

@@ -32,0 +32,0 @@ "author": "The Babel Team (https://babel.dev/team)",

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