Socket
Socket
Sign inDemoInstall

@babel/generator

Package Overview
Dependencies
Maintainers
5
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.0.0-beta.37 to 7.0.0-beta.38

9

lib/generators/flow.js

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

exports.TypeCastExpression = TypeCastExpression;
exports.Variance = Variance;
exports.VoidTypeAnnotation = VoidTypeAnnotation;

@@ -549,4 +550,12 @@ exports.StringLiteralTypeAnnotation = exports.NumberLiteralTypeAnnotation = void 0;

function Variance(node) {
if (node.kind === "plus") {
this.token("+");
} else {
this.token("-");
}
}
function VoidTypeAnnotation() {
this.word("void");
}

4

lib/generators/types.js

@@ -130,3 +130,3 @@ "use strict";

function StringLiteral(node, parent) {
function StringLiteral(node) {
var raw = this.getPossibleRaw(node);

@@ -140,3 +140,3 @@

var opts = {
quotes: t.isJSX(parent) ? "double" : this.format.quotes,
quotes: "double",
wrap: true

@@ -143,0 +143,0 @@ };

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

concise: opts.concise,
quotes: "double",
jsonCompatibleStrings: opts.jsonCompatibleStrings,

@@ -56,0 +55,0 @@ indent: {

{
"name": "@babel/generator",
"version": "7.0.0-beta.37",
"version": "7.0.0-beta.38",
"description": "Turns an AST into code.",

@@ -14,3 +14,3 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"@babel/types": "7.0.0-beta.37",
"@babel/types": "7.0.0-beta.38",
"jsesc": "^2.5.1",

@@ -22,5 +22,5 @@ "lodash": "^4.2.0",

"devDependencies": {
"@babel/helper-fixtures": "7.0.0-beta.37",
"babylon": "7.0.0-beta.37"
"@babel/helper-fixtures": "7.0.0-beta.38",
"babylon": "7.0.0-beta.38"
}
}
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