Socket
Socket
Sign inDemoInstall

@babel/preset-flow

Package Overview
Dependencies
Maintainers
4
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/preset-flow - npm Package Compare versions

Comparing version 7.21.4-esm.2 to 7.21.4-esm.3

19

lib/index.js

@@ -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

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