Socket
Socket
Sign inDemoInstall

@babel/generator

Package Overview
Dependencies
Maintainers
4
Versions
178
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.22.15 to 7.23.0

20

lib/generators/modules.js

@@ -15,2 +15,3 @@ "use strict";

exports.ImportDefaultSpecifier = ImportDefaultSpecifier;
exports.ImportExpression = ImportExpression;
exports.ImportNamespaceSpecifier = ImportNamespaceSpecifier;

@@ -202,2 +203,6 @@ exports.ImportSpecifier = ImportSpecifier;

this.space();
} else if (node.phase) {
this.noIndentInnerCommentsHere();
this.word(node.phase);
this.space();
}

@@ -255,3 +260,18 @@ const specifiers = node.specifiers.slice(0);

}
function ImportExpression(node) {
this.word("import");
if (node.phase) {
this.tokenChar(46);
this.word(node.phase);
}
this.tokenChar(40);
this.print(node.source, node);
if (node.options != null) {
this.tokenChar(44);
this.space();
this.print(node.options, node);
}
this.tokenChar(41);
}
//# sourceMappingURL=modules.js.map

8

package.json
{
"name": "@babel/generator",
"version": "7.22.15",
"version": "7.23.0",
"description": "Turns an AST into code.",

@@ -22,3 +22,3 @@ "author": "The Babel Team (https://babel.dev/team)",

"dependencies": {
"@babel/types": "^7.22.15",
"@babel/types": "^7.23.0",
"@jridgewell/gen-mapping": "^0.3.2",

@@ -29,4 +29,4 @@ "@jridgewell/trace-mapping": "^0.3.17",

"devDependencies": {
"@babel/helper-fixtures": "^7.22.13",
"@babel/parser": "^7.22.15",
"@babel/helper-fixtures": "^7.22.19",
"@babel/parser": "^7.23.0",
"@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

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