@babel/generator
Advanced tools
Comparing version 7.0.0-beta.34 to 7.0.0-beta.35
@@ -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" | ||
} | ||
} |
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
105610
3320
+ Added@babel/types@7.0.0-beta.35(transitive)
- Removed@babel/types@7.0.0-beta.34(transitive)
Updated@babel/types@7.0.0-beta.35