@babel/plugin-syntax-pipeline-operator
Advanced tools
Comparing version 7.0.0-beta.52 to 7.0.0-beta.53
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = void 0; | ||
exports.default = exports.proposals = void 0; | ||
@@ -20,2 +20,3 @@ function _helperPluginUtils() { | ||
const proposals = ["minimal"]; | ||
exports.proposals = proposals; | ||
@@ -28,3 +29,3 @@ var _default = (0, _helperPluginUtils().declare)((api, { | ||
if (typeof proposal !== "string" || !proposals.includes(proposal)) { | ||
throw new Error("'proposal' must be one of: " + proposals.join(", ")); | ||
throw new Error("The pipeline operator plugin requires a 'proposal' option." + "'proposal' must be one of: " + proposals.join(", ") + ". More details: https://babeljs.io/docs/en/next/babel-plugin-proposal-pipeline-operator"); | ||
} | ||
@@ -31,0 +32,0 @@ |
{ | ||
"name": "@babel/plugin-syntax-pipeline-operator", | ||
"version": "7.0.0-beta.52", | ||
"version": "7.0.0-beta.53", | ||
"description": "Allow parsing of the pipeline operator", | ||
@@ -12,3 +12,3 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-syntax-pipeline-operator", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.0.0-beta.52" | ||
"@babel/helper-plugin-utils": "7.0.0-beta.53" | ||
}, | ||
@@ -19,4 +19,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.52" | ||
"@babel/core": "7.0.0-beta.53" | ||
} | ||
} |
import { declare } from "@babel/helper-plugin-utils"; | ||
const proposals = ["minimal"]; | ||
export const proposals = ["minimal"]; | ||
@@ -9,3 +9,8 @@ export default declare((api, { proposal }) => { | ||
if (typeof proposal !== "string" || !proposals.includes(proposal)) { | ||
throw new Error("'proposal' must be one of: " + proposals.join(", ")); | ||
throw new Error( | ||
"The pipeline operator plugin requires a 'proposal' option." + | ||
"'proposal' must be one of: " + | ||
proposals.join(", ") + | ||
". More details: https://babeljs.io/docs/en/next/babel-plugin-proposal-pipeline-operator", | ||
); | ||
} | ||
@@ -12,0 +17,0 @@ |
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
2558
47
+ Added@babel/helper-plugin-utils@7.0.0-beta.53(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.52(transitive)