@babel/plugin-syntax-flow
Advanced tools
Comparing version 8.0.0-alpha.12 to 8.0.0-alpha.13
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5874
6
34