@babel/preset-flow
Advanced tools
Comparing version 7.21.4-esm.2 to 7.21.4-esm.3
@@ -1,5 +0,11 @@ | ||
import { declarePreset } from "@babel/helper-plugin-utils"; | ||
import transformFlowStripTypes from "@babel/plugin-transform-flow-strip-types"; | ||
import normalizeOptions from "./normalize-options.js"; | ||
export default declarePreset((api, opts) => { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _pluginTransformFlowStripTypes = require("@babel/plugin-transform-flow-strip-types"); | ||
var _normalizeOptions = require("./normalize-options"); | ||
var _default = (0, _helperPluginUtils.declarePreset)((api, opts) => { | ||
api.assertVersion(7); | ||
@@ -10,4 +16,4 @@ const { | ||
ignoreExtensions = false | ||
} = normalizeOptions(opts); | ||
const flowPlugin = [transformFlowStripTypes, { | ||
} = (0, _normalizeOptions.default)(opts); | ||
const flowPlugin = [_pluginTransformFlowStripTypes.default, { | ||
all, | ||
@@ -23,3 +29,4 @@ allowDeclareFields | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -1,4 +0,10 @@ | ||
import { OptionValidator } from "@babel/helper-validator-option"; | ||
const v = new OptionValidator("@babel/preset-flow"); | ||
export default function normalizeOptions(options = {}) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.default = normalizeOptions; | ||
var _helperValidatorOption = require("@babel/helper-validator-option"); | ||
const v = new _helperValidatorOption.OptionValidator("@babel/preset-flow"); | ||
function normalizeOptions(options = {}) { | ||
let { | ||
@@ -5,0 +11,0 @@ all, |
{ | ||
"name": "@babel/preset-flow", | ||
"version": "7.21.4-esm.2", | ||
"version": "7.21.4-esm.3", | ||
"description": "Babel preset for all Flow plugins.", | ||
@@ -23,5 +23,5 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "7.21.4-esm.2", | ||
"@babel/helper-validator-option": "7.21.4-esm.2", | ||
"@babel/plugin-transform-flow-strip-types": "7.21.4-esm.2" | ||
"@babel/helper-plugin-utils": "7.21.4-esm.3", | ||
"@babel/helper-validator-option": "7.21.4-esm.3", | ||
"@babel/plugin-transform-flow-strip-types": "7.21.4-esm.3" | ||
}, | ||
@@ -32,4 +32,4 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.2", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.2" | ||
"@babel/core": "7.21.4-esm.3", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.3" | ||
}, | ||
@@ -36,0 +36,0 @@ "homepage": "https://babel.dev/docs/en/next/babel-preset-flow", |
Sorry, the diff of this file is not supported yet
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
7381
52
+ Added@babel/helper-plugin-utils@7.21.4-esm.3(transitive)
+ Added@babel/helper-validator-option@7.21.4-esm.3(transitive)
+ Added@babel/plugin-syntax-flow@7.21.4-esm.3(transitive)
+ Added@babel/plugin-transform-flow-strip-types@7.21.4-esm.3(transitive)
- Removed@babel/helper-plugin-utils@7.21.4-esm.2(transitive)
- Removed@babel/helper-validator-option@7.21.4-esm.2(transitive)
- Removed@babel/plugin-syntax-flow@7.21.4-esm.2(transitive)
- Removed@babel/plugin-transform-flow-strip-types@7.21.4-esm.2(transitive)
Updated@babel/plugin-transform-flow-strip-types@7.21.4-esm.3