Comparing version 3.0.14 to 3.0.15
@@ -90,3 +90,7 @@ "use strict"; | ||
this.push(keyword); | ||
if (node.delegate) this.push("*"); | ||
if (node.delegate || node.all) { | ||
this.push("*"); | ||
} | ||
if (node.argument) { | ||
@@ -93,0 +97,0 @@ this.space(); |
@@ -12,2 +12,8 @@ "use strict"; | ||
node.type = "YieldExpression"; | ||
if (node.all) { | ||
// await* foo; -> yield Promise.all(foo); | ||
node.all = false; | ||
node.argument = t.callExpression(t.memberExpression(t.identifier("Promise"), t.identifier("all")), [node.argument]); | ||
} | ||
} | ||
@@ -14,0 +20,0 @@ } |
@@ -8,3 +8,3 @@ "use strict"; | ||
var traverse = require("./traverse"); | ||
var debug = require("debug"); | ||
var debug = require("debug/node"); | ||
var acorn = require("acorn-6to5"); | ||
@@ -11,0 +11,0 @@ var path = require("path"); |
{ | ||
"name": "6to5", | ||
"description": "Turn ES6 code into readable vanilla ES5 with source maps", | ||
"version": "3.0.14", | ||
"version": "3.0.15", | ||
"author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
@@ -6,0 +6,0 @@ "homepage": "https://6to5.org/", |
Sorry, the diff of this file is too big to display
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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances 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
1368797
11459
41
9