babel-helper-remap-async-to-generator
Advanced tools
Comparing version 6.2.4 to 6.3.0
@@ -63,2 +63,8 @@ /* @flow */ | ||
var isDeclaration = path.isFunctionDeclaration(); | ||
if (isDeclaration) { | ||
node.type = "FunctionExpression"; | ||
} | ||
var built = t.callExpression(callId, [node]); | ||
@@ -74,7 +80,4 @@ var container = buildWrapper({ | ||
if (path.isFunctionDeclaration()) { | ||
node.type = "FunctionExpression"; | ||
if (isDeclaration) { | ||
var declar = t.variableDeclaration("let", [t.variableDeclarator(t.identifier(asyncFnId.name), t.callExpression(container, []))]); | ||
declar._blockHoist = true; | ||
@@ -81,0 +84,0 @@ retFunction.id = asyncFnId; |
{ | ||
"name": "babel-helper-remap-async-to-generator", | ||
"version": "6.2.4", | ||
"version": "6.3.0", | ||
"description": "", | ||
@@ -10,7 +10,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-remap-async-to-generator", | ||
"babel-runtime": "^5.0.0", | ||
"babel-template": "^6.2.4", | ||
"babel-types": "^6.2.4", | ||
"babel-traverse": "^6.2.4", | ||
"babel-helper-function-name": "^6.2.4" | ||
"babel-template": "^6.3.0", | ||
"babel-types": "^6.3.0", | ||
"babel-traverse": "^6.1.18", | ||
"babel-helper-function-name": "^6.1.18" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3737
84
1
Updatedbabel-template@^6.3.0
Updatedbabel-traverse@^6.1.18
Updatedbabel-types@^6.3.0