@babel/generator
Advanced tools
Comparing version 7.23.4 to 7.23.5
@@ -426,2 +426,6 @@ "use strict"; | ||
if (opts.statement) { | ||
var _node$trailingComment; | ||
if (!((_node$trailingComment = node.trailingComments) != null && _node$trailingComment.length)) { | ||
this._lastCommentLine = 0; | ||
} | ||
if (i + 1 === len) { | ||
@@ -551,2 +555,9 @@ this.newline(1); | ||
if (isBlockComment) { | ||
const { | ||
_parenPushNewlineState | ||
} = this; | ||
if ((_parenPushNewlineState == null ? void 0 : _parenPushNewlineState.printed) === false && HAS_NEWLINE.test(comment.value)) { | ||
this.tokenChar(40); | ||
_parenPushNewlineState.printed = true; | ||
} | ||
val = `/*${comment.value}*/`; | ||
@@ -553,0 +564,0 @@ if (this.format.indent.adjustMultilineComment) { |
{ | ||
"name": "@babel/generator", | ||
"version": "7.23.4", | ||
"version": "7.23.5", | ||
"description": "Turns an AST into code.", | ||
@@ -22,3 +22,3 @@ "author": "The Babel Team (https://babel.dev/team)", | ||
"dependencies": { | ||
"@babel/types": "^7.23.4", | ||
"@babel/types": "^7.23.5", | ||
"@jridgewell/gen-mapping": "^0.3.2", | ||
@@ -30,3 +30,3 @@ "@jridgewell/trace-mapping": "^0.3.17", | ||
"@babel/helper-fixtures": "^7.23.4", | ||
"@babel/parser": "^7.23.4", | ||
"@babel/parser": "^7.23.5", | ||
"@jridgewell/sourcemap-codec": "^1.4.15", | ||
@@ -33,0 +33,0 @@ "@types/jsesc": "^2.5.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
493028
4765
Updated@babel/types@^7.23.5