@babel/helper-remap-async-to-generator
Advanced tools
Comparing version 7.0.0-beta.47 to 7.0.0-beta.48
@@ -11,3 +11,3 @@ "use strict"; | ||
_helperWrapFunction = function _helperWrapFunction() { | ||
_helperWrapFunction = function () { | ||
return data; | ||
@@ -22,3 +22,3 @@ }; | ||
_helperAnnotateAsPure = function _helperAnnotateAsPure() { | ||
_helperAnnotateAsPure = function () { | ||
return data; | ||
@@ -33,3 +33,3 @@ }; | ||
t = function t() { | ||
t = function () { | ||
return data; | ||
@@ -86,3 +86,5 @@ }; | ||
const parentPath = path.parentPath; | ||
const { | ||
parentPath | ||
} = path; | ||
@@ -92,3 +94,5 @@ if (parentPath.isMemberExpression() && t().isIdentifier(parentPath.node.property, { | ||
})) { | ||
const bindCall = parentPath.parentPath; | ||
const { | ||
parentPath: bindCall | ||
} = parentPath; | ||
return bindCall.isCallExpression() && bindCall.node.arguments.length === 1 && t().isThisExpression(bindCall.node.arguments[0]) && bindCall.parentPath.isCallExpression({ | ||
@@ -95,0 +99,0 @@ callee: bindCall.node |
{ | ||
"name": "@babel/helper-remap-async-to-generator", | ||
"version": "7.0.0-beta.47", | ||
"version": "7.0.0-beta.48", | ||
"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.47", | ||
"@babel/helper-wrap-function": "7.0.0-beta.47", | ||
"@babel/template": "7.0.0-beta.47", | ||
"@babel/traverse": "7.0.0-beta.47", | ||
"@babel/types": "7.0.0-beta.47" | ||
"@babel/helper-annotate-as-pure": "7.0.0-beta.48", | ||
"@babel/helper-wrap-function": "7.0.0-beta.48", | ||
"@babel/template": "7.0.0-beta.48", | ||
"@babel/traverse": "7.0.0-beta.48", | ||
"@babel/types": "7.0.0-beta.48" | ||
} | ||
} |
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
77
3373
+ Added@babel/code-frame@7.0.0-beta.48(transitive)
+ Added@babel/generator@7.0.0-beta.48(transitive)
+ Added@babel/helper-annotate-as-pure@7.0.0-beta.48(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.48(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.48(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.48(transitive)
+ Added@babel/helper-wrap-function@7.0.0-beta.48(transitive)
+ Added@babel/highlight@7.0.0-beta.48(transitive)
+ Added@babel/parser@7.0.0-beta.48(transitive)
+ Added@babel/template@7.0.0-beta.48(transitive)
+ Added@babel/traverse@7.0.0-beta.48(transitive)
+ Added@babel/types@7.0.0-beta.48(transitive)
- Removed@babel/code-frame@7.0.0-beta.47(transitive)
- Removed@babel/generator@7.0.0-beta.47(transitive)
- Removed@babel/helper-annotate-as-pure@7.0.0-beta.47(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.47(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.47(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.47(transitive)
- Removed@babel/helper-wrap-function@7.0.0-beta.47(transitive)
- Removed@babel/highlight@7.0.0-beta.47(transitive)
- Removed@babel/template@7.0.0-beta.47(transitive)
- Removed@babel/traverse@7.0.0-beta.47(transitive)
- Removed@babel/types@7.0.0-beta.47(transitive)
- Removedbabylon@7.0.0-beta.47(transitive)
Updated@babel/types@7.0.0-beta.48