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.0.0-beta.34 to 7.0.0-beta.35

10

lib/generators/flow.js

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

if (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction") {
if (parent.type === "ObjectTypeCallProperty" || parent.type === "DeclareFunction" || parent.type === "ObjectTypeProperty" && parent.method) {
this.token(":");

@@ -506,4 +506,8 @@ } else {

if (node.optional) this.token("?");
this.token(":");
this.space();
if (!node.method) {
this.token(":");
this.space();
}
this.print(node.value, node);

@@ -510,0 +514,0 @@ }

@@ -49,8 +49,2 @@ "use strict";

if (kind === "method" || kind === "init") {
if (node.generator) {
this.token("*");
}
}
if (kind === "get" || kind === "set") {

@@ -66,2 +60,8 @@ this.word(kind);

if (kind === "method" || kind === "init") {
if (node.generator) {
this.token("*");
}
}
if (node.computed) {

@@ -68,0 +68,0 @@ this.token("[");

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

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

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

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

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