Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-flow-strip-types

Package Overview
Dependencies
55
Maintainers
4
Versions
77
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.16.7 to 7.17.12

18

lib/index.js

@@ -122,3 +122,6 @@ "use strict";

if (skipStrip) return;
node.left.optional = false;
if (node.left.optional) {
node.left.optional = false;
}
},

@@ -136,11 +139,16 @@

for (let i = 0; i < node.params.length; i++) {
const param = node.params[i];
param.optional = false;
let param = node.params[i];
if (param.type === "AssignmentPattern") {
param.left.optional = false;
param = param.left;
}
if (param.optional) {
param.optional = false;
}
}
node.predicate = null;
if (!_core.types.isMethod(node)) {
node.predicate = null;
}
},

@@ -147,0 +155,0 @@

{
"name": "@babel/plugin-transform-flow-strip-types",
"version": "7.16.7",
"version": "7.17.12",
"description": "Strip flow type annotations from your output code.",

@@ -20,4 +20,4 @@ "repository": {

"dependencies": {
"@babel/helper-plugin-utils": "^7.16.7",
"@babel/plugin-syntax-flow": "^7.16.7"
"@babel/helper-plugin-utils": "^7.17.12",
"@babel/plugin-syntax-flow": "^7.17.12"
},

@@ -28,3 +28,3 @@ "peerDependencies": {

"devDependencies": {
"@babel/core": "^7.16.7",
"@babel/core": "^7.17.12",
"@babel/helper-plugin-test-runner": "^7.16.7"

@@ -31,0 +31,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc