@babel/traverse
Advanced tools
Comparing version 7.23.7 to 7.23.9
@@ -17,3 +17,3 @@ "use strict"; | ||
{ | ||
if (isFlowType(types[0])) { | ||
if (types.every(v => isFlowType(v))) { | ||
if (createFlowUnionType) { | ||
@@ -23,3 +23,3 @@ return createFlowUnionType(types); | ||
return createUnionTypeAnnotation(types); | ||
} else { | ||
} else if (types.every(v => isTSType(v))) { | ||
if (createTSUnionType) { | ||
@@ -26,0 +26,0 @@ return createTSUnionType(types); |
{ | ||
"name": "@babel/traverse", | ||
"version": "7.23.7", | ||
"version": "7.23.9", | ||
"description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", | ||
@@ -25,4 +25,4 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"@babel/helper-split-export-declaration": "^7.22.6", | ||
"@babel/parser": "^7.23.6", | ||
"@babel/types": "^7.23.6", | ||
"@babel/parser": "^7.23.9", | ||
"@babel/types": "^7.23.9", | ||
"debug": "^4.3.1", | ||
@@ -32,3 +32,3 @@ "globals": "^11.1.0" | ||
"devDependencies": { | ||
"@babel/core": "^7.23.7", | ||
"@babel/core": "^7.23.9", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
@@ -35,0 +35,0 @@ }, |
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
610748
Updated@babel/parser@^7.23.9
Updated@babel/types@^7.23.9