Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/generator

Package Overview
Dependencies
Maintainers
4
Versions
183
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/generator - npm Package Compare versions

Comparing version 7.23.4 to 7.23.5

11

lib/printer.js

@@ -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) {

6

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc