@babel/generator
Advanced tools
Comparing version 7.0.0-beta.37 to 7.0.0-beta.38
@@ -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"); | ||
} |
@@ -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" | ||
} | ||
} |
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
105815
3333
+ Added@babel/types@7.0.0-beta.38(transitive)
- Removed@babel/types@7.0.0-beta.37(transitive)
Updated@babel/types@7.0.0-beta.38