@babel/plugin-transform-flow-strip-types
Advanced tools
Comparing version 7.16.7 to 7.17.12
@@ -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 @@ }, |
6990
160