@babel/generator
Advanced tools
Comparing version 7.18.13 to 7.19.0
@@ -364,2 +364,4 @@ "use strict"; | ||
exports.default = Buffer; | ||
exports.default = Buffer; | ||
//# sourceMappingURL=buffer.js.map |
@@ -96,2 +96,4 @@ "use strict"; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=base.js.map |
@@ -215,2 +215,4 @@ "use strict"; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=classes.js.map |
@@ -143,6 +143,2 @@ "use strict"; | ||
function shouldParenthesizeDecoratorExpression(node) { | ||
if (node.type === "CallExpression") { | ||
node = node.callee; | ||
} | ||
if (node.type === "ParenthesizedExpression") { | ||
@@ -152,3 +148,3 @@ return false; | ||
return !isDecoratorMemberExpression(node); | ||
return !isDecoratorMemberExpression(node.type === "CallExpression" ? node.callee : node); | ||
} | ||
@@ -354,2 +350,4 @@ | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=expressions.js.map |
@@ -795,2 +795,4 @@ "use strict"; | ||
this.tokenChar(93); | ||
} | ||
} | ||
//# sourceMappingURL=flow.js.map |
@@ -148,2 +148,4 @@ "use strict"; | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=index.js.map |
@@ -145,2 +145,4 @@ "use strict"; | ||
this.tokenChar(62); | ||
} | ||
} | ||
//# sourceMappingURL=jsx.js.map |
@@ -156,2 +156,4 @@ "use strict"; | ||
return !!(node.typeParameters || node.returnType || node.predicate || param.typeAnnotation || param.optional || (_param$leadingComment = param.leadingComments) != null && _param$leadingComment.length || (_param$trailingCommen = param.trailingComments) != null && _param$trailingCommen.length); | ||
} | ||
} | ||
//# sourceMappingURL=methods.js.map |
@@ -245,2 +245,4 @@ "use strict"; | ||
this.print(node.local, node); | ||
} | ||
} | ||
//# sourceMappingURL=modules.js.map |
@@ -340,2 +340,4 @@ "use strict"; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=statements.js.map |
@@ -33,2 +33,4 @@ "use strict"; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=template-literals.js.map |
@@ -131,7 +131,7 @@ "use strict"; | ||
endToken = "|}"; | ||
} else if (this.format.recordAndTupleSyntaxType === "hash") { | ||
} else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) { | ||
throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`); | ||
} else { | ||
startToken = "#{"; | ||
endToken = "}"; | ||
} else { | ||
throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`); | ||
} | ||
@@ -277,2 +277,4 @@ | ||
this.tokenChar(35); | ||
} | ||
} | ||
//# sourceMappingURL=types.js.map |
@@ -833,2 +833,4 @@ "use strict"; | ||
} | ||
} | ||
} | ||
//# sourceMappingURL=typescript.js.map |
@@ -97,2 +97,4 @@ "use strict"; | ||
return gen.generate(); | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -99,2 +99,4 @@ "use strict"; | ||
return find(expandedParens, node, parent, printStack); | ||
} | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -346,2 +346,4 @@ "use strict"; | ||
return false; | ||
} | ||
} | ||
//# sourceMappingURL=parentheses.js.map |
@@ -174,2 +174,4 @@ "use strict"; | ||
}); | ||
}); | ||
}); | ||
//# sourceMappingURL=whitespace.js.map |
@@ -614,2 +614,4 @@ "use strict"; | ||
this.space(); | ||
} | ||
} | ||
//# sourceMappingURL=printer.js.map |
@@ -62,2 +62,4 @@ "use strict"; | ||
exports.default = SourceMap; | ||
exports.default = SourceMap; | ||
//# sourceMappingURL=source-map.js.map |
{ | ||
"name": "@babel/generator", | ||
"version": "7.18.13", | ||
"version": "7.19.0", | ||
"description": "Turns an AST into code.", | ||
@@ -22,3 +22,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/types": "^7.18.13", | ||
"@babel/types": "^7.19.0", | ||
"@jridgewell/gen-mapping": "^0.3.2", | ||
@@ -29,3 +29,3 @@ "jsesc": "^2.5.1" | ||
"@babel/helper-fixtures": "^7.18.6", | ||
"@babel/parser": "^7.18.13", | ||
"@babel/parser": "^7.19.0", | ||
"@jridgewell/trace-mapping": "^0.3.8", | ||
@@ -32,0 +32,0 @@ "@types/jsesc": "^2.5.0", |
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
417041
41
4415
Updated@babel/types@^7.19.0