@babel/helper-remap-async-to-generator
Advanced tools
Comparing version 7.0.0-beta.38 to 7.0.0-beta.39
@@ -31,3 +31,3 @@ "use strict"; | ||
path.replaceWith(t.yieldExpression(wrapAwait ? t.callExpression(wrapAwait, [argument.node]) : argument.node)); | ||
path.replaceWith(t.yieldExpression(wrapAwait ? t.callExpression(t.cloneNode(wrapAwait), [argument.node]) : argument.node)); | ||
}, | ||
@@ -72,3 +72,3 @@ ForOfStatement: function ForOfStatement(path, _ref2) { | ||
path.node.generator = true; | ||
(0, _helperWrapFunction.default)(path, helpers.wrapAsync); | ||
(0, _helperWrapFunction.default)(path, t.cloneNode(helpers.wrapAsync)); | ||
var isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty(); | ||
@@ -75,0 +75,0 @@ |
{ | ||
"name": "@babel/helper-remap-async-to-generator", | ||
"version": "7.0.0-beta.38", | ||
"version": "7.0.0-beta.39", | ||
"description": "Helper function to remap async functions to generators", | ||
@@ -9,8 +9,8 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-helper-remap-async-to-generator", | ||
"dependencies": { | ||
"@babel/helper-annotate-as-pure": "7.0.0-beta.38", | ||
"@babel/helper-wrap-function": "7.0.0-beta.38", | ||
"@babel/template": "7.0.0-beta.38", | ||
"@babel/traverse": "7.0.0-beta.38", | ||
"@babel/types": "7.0.0-beta.38" | ||
"@babel/helper-annotate-as-pure": "7.0.0-beta.39", | ||
"@babel/helper-wrap-function": "7.0.0-beta.39", | ||
"@babel/template": "7.0.0-beta.39", | ||
"@babel/traverse": "7.0.0-beta.39", | ||
"@babel/types": "7.0.0-beta.39" | ||
} | ||
} |
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
7291
+ Added@babel/code-frame@7.0.0-beta.39(transitive)
+ Added@babel/generator@7.0.0-beta.39(transitive)
+ Added@babel/helper-annotate-as-pure@7.0.0-beta.39(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.39(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.39(transitive)
+ Added@babel/helper-wrap-function@7.0.0-beta.39(transitive)
+ Added@babel/template@7.0.0-beta.39(transitive)
+ Added@babel/traverse@7.0.0-beta.39(transitive)
+ Added@babel/types@7.0.0-beta.39(transitive)
+ Addedbabylon@7.0.0-beta.39(transitive)
- Removed@babel/code-frame@7.0.0-beta.38(transitive)
- Removed@babel/generator@7.0.0-beta.38(transitive)
- Removed@babel/helper-annotate-as-pure@7.0.0-beta.38(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.38(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.38(transitive)
- Removed@babel/helper-wrap-function@7.0.0-beta.38(transitive)
- Removed@babel/template@7.0.0-beta.38(transitive)
- Removed@babel/traverse@7.0.0-beta.38(transitive)
- Removed@babel/types@7.0.0-beta.38(transitive)
- Removedbabylon@7.0.0-beta.38(transitive)
Updated@babel/types@7.0.0-beta.39