@babel/plugin-syntax-pipeline-operator
Advanced tools
Comparing version 7.18.6 to 7.21.4
@@ -7,9 +7,6 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
const PIPELINE_PROPOSALS = ["minimal", "fsharp", "hack", "smart"]; | ||
const TOPIC_TOKENS = ["^^", "@@", "^", "%", "#"]; | ||
const documentationURL = "https://babeljs.io/docs/en/babel-plugin-proposal-pipeline-operator"; | ||
var _default = (0, _helperPluginUtils.declare)((api, { | ||
@@ -20,3 +17,2 @@ proposal, | ||
api.assertVersion(7); | ||
if (typeof proposal !== "string" || !PIPELINE_PROPOSALS.includes(proposal)) { | ||
@@ -26,3 +22,2 @@ const proposalList = PIPELINE_PROPOSALS.map(p => `"${p}"`).join(", "); | ||
} | ||
if (proposal === "hack" && !TOPIC_TOKENS.includes(topicToken)) { | ||
@@ -32,6 +27,4 @@ const topicTokenList = TOPIC_TOKENS.map(t => `"${t}"`).join(", "); | ||
} | ||
return { | ||
name: "syntax-pipeline-operator", | ||
manipulateOptions(opts, parserOpts) { | ||
@@ -44,6 +37,6 @@ parserOpts.plugins.push(["pipelineOperator", { | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-syntax-pipeline-operator", | ||
"version": "7.18.6", | ||
"version": "7.21.4", | ||
"description": "Allow parsing of the pipeline operator", | ||
@@ -20,3 +20,3 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.20.2" | ||
}, | ||
@@ -27,3 +27,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6" | ||
"@babel/core": "^7.21.4" | ||
}, | ||
@@ -30,0 +30,0 @@ "engines": { |
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
6861
5
35