@babel/generator
Advanced tools
Comparing version 7.26.0 to 7.26.2
@@ -68,3 +68,4 @@ "use strict"; | ||
const parentType = parent.type; | ||
return parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || Boolean(tokenContext & _index.TokenContext.arrowFlowReturnType); | ||
return (parentType === "UnionTypeAnnotation" || parentType === "IntersectionTypeAnnotation" || parentType === "ArrayTypeAnnotation" || Boolean(tokenContext & _index.TokenContext.arrowFlowReturnType) | ||
); | ||
} | ||
@@ -71,0 +72,0 @@ function UpdateExpression(node, parent) { |
@@ -118,3 +118,4 @@ "use strict"; | ||
for (const child of children) { | ||
if (!child) continue; | ||
if (child == null) continue; | ||
if (child.start == null || child.end == null) continue; | ||
const childTok = this._findTokensOfNode(child, low, last); | ||
@@ -121,0 +122,0 @@ const high = childTok.first; |
{ | ||
"name": "@babel/generator", | ||
"version": "7.26.0", | ||
"version": "7.26.2", | ||
"description": "Turns an AST into code.", | ||
@@ -22,3 +22,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/parser": "^7.26.0", | ||
"@babel/parser": "^7.26.2", | ||
"@babel/types": "^7.26.0", | ||
@@ -25,0 +25,0 @@ "@jridgewell/gen-mapping": "^0.3.5", |
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
542741
5222
Updated@babel/parser@^7.26.2