@babel/helper-skip-transparent-expression-wrappers
Advanced tools
Comparing version 7.20.0 to 7.21.4-esm
@@ -9,5 +9,3 @@ "use strict"; | ||
exports.skipTransparentExprWrappers = skipTransparentExprWrappers; | ||
var _t = require("@babel/types"); | ||
const { | ||
@@ -21,7 +19,5 @@ isParenthesizedExpression, | ||
} = _t; | ||
function isTransparentExprWrapper(node) { | ||
return isTSAsExpression(node) || isTSSatisfiesExpression(node) || isTSTypeAssertion(node) || isTSNonNullExpression(node) || isTypeCastExpression(node) || isParenthesizedExpression(node); | ||
} | ||
function skipTransparentExprWrappers(path) { | ||
@@ -31,6 +27,4 @@ while (isTransparentExprWrapper(path.node)) { | ||
} | ||
return path; | ||
} | ||
function skipTransparentExprWrapperNodes(node) { | ||
@@ -40,3 +34,2 @@ while (isTransparentExprWrapper(node)) { | ||
} | ||
return node; | ||
@@ -43,0 +36,0 @@ } |
{ | ||
"name": "@babel/helper-skip-transparent-expression-wrappers", | ||
"version": "7.20.0", | ||
"version": "7.21.4-esm", | ||
"description": "Helper which skips types and parentheses", | ||
@@ -20,6 +20,6 @@ "repository": { | ||
"dependencies": { | ||
"@babel/types": "^7.20.0" | ||
"@babel/types": "^7.21.4-esm" | ||
}, | ||
"devDependencies": { | ||
"@babel/traverse": "^7.20.0" | ||
"@babel/traverse": "^7.21.4-esm" | ||
}, | ||
@@ -26,0 +26,0 @@ "engines": { |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
5987
6
2
Updated@babel/types@^7.21.4-esm