@babel/plugin-transform-async-to-generator
Advanced tools
Comparing version 7.0.0-beta.43 to 7.0.0-beta.44
@@ -9,5 +9,5 @@ "use strict"; | ||
function _helperPluginUtils() { | ||
const data = require("@babel/helper-plugin-utils"); | ||
var data = require("@babel/helper-plugin-utils"); | ||
_helperPluginUtils = function () { | ||
_helperPluginUtils = function _helperPluginUtils() { | ||
return data; | ||
@@ -20,5 +20,5 @@ }; | ||
function _helperRemapAsyncToGenerator() { | ||
const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator")); | ||
var data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator")); | ||
_helperRemapAsyncToGenerator = function () { | ||
_helperRemapAsyncToGenerator = function _helperRemapAsyncToGenerator() { | ||
return data; | ||
@@ -31,5 +31,5 @@ }; | ||
function _helperModuleImports() { | ||
const data = require("@babel/helper-module-imports"); | ||
var data = require("@babel/helper-module-imports"); | ||
_helperModuleImports = function () { | ||
_helperModuleImports = function _helperModuleImports() { | ||
return data; | ||
@@ -42,5 +42,5 @@ }; | ||
function _core() { | ||
const data = require("@babel/core"); | ||
var data = require("@babel/core"); | ||
_core = function () { | ||
_core = function _core() { | ||
return data; | ||
@@ -54,8 +54,6 @@ }; | ||
var _default = (0, _helperPluginUtils().declare)((api, options) => { | ||
var _default = (0, _helperPluginUtils().declare)(function (api, options) { | ||
api.assertVersion(7); | ||
const { | ||
method, | ||
module | ||
} = options; | ||
var method = options.method, | ||
module = options.module; | ||
@@ -65,5 +63,5 @@ if (method && module) { | ||
visitor: { | ||
Function(path, state) { | ||
Function: function Function(path, state) { | ||
if (!path.node.async || path.node.generator) return; | ||
let wrapAsync = state.methodWrapper; | ||
var wrapAsync = state.methodWrapper; | ||
@@ -77,6 +75,5 @@ if (wrapAsync) { | ||
(0, _helperRemapAsyncToGenerator().default)(path, { | ||
wrapAsync | ||
wrapAsync: wrapAsync | ||
}); | ||
} | ||
} | ||
@@ -88,3 +85,3 @@ }; | ||
visitor: { | ||
Function(path, state) { | ||
Function: function Function(path, state) { | ||
if (!path.node.async || path.node.generator) return; | ||
@@ -95,3 +92,2 @@ (0, _helperRemapAsyncToGenerator().default)(path, { | ||
} | ||
} | ||
@@ -98,0 +94,0 @@ }; |
{ | ||
"name": "@babel/plugin-transform-async-to-generator", | ||
"version": "7.0.0-beta.43", | ||
"version": "7.0.0-beta.44", | ||
"description": "Turn async functions into ES2015 generators", | ||
@@ -12,13 +12,13 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator", | ||
"dependencies": { | ||
"@babel/helper-module-imports": "7.0.0-beta.43", | ||
"@babel/helper-plugin-utils": "7.0.0-beta.43", | ||
"@babel/helper-remap-async-to-generator": "7.0.0-beta.43" | ||
"@babel/helper-module-imports": "7.0.0-beta.44", | ||
"@babel/helper-plugin-utils": "7.0.0-beta.44", | ||
"@babel/helper-remap-async-to-generator": "7.0.0-beta.44" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "7.0.0-beta.43" | ||
"@babel/core": "7.0.0-beta.44" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.0.0-beta.43", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.43" | ||
"@babel/core": "7.0.0-beta.44", | ||
"@babel/helper-plugin-test-runner": "7.0.0-beta.44" | ||
} | ||
} |
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
4071
67
+ Added@babel/code-frame@7.0.0-beta.44(transitive)
+ Added@babel/core@7.0.0-beta.44(transitive)
+ Added@babel/generator@7.0.0-beta.44(transitive)
+ Added@babel/helper-annotate-as-pure@7.0.0-beta.44(transitive)
+ Added@babel/helper-function-name@7.0.0-beta.44(transitive)
+ Added@babel/helper-get-function-arity@7.0.0-beta.44(transitive)
+ Added@babel/helper-module-imports@7.0.0-beta.44(transitive)
+ Added@babel/helper-plugin-utils@7.0.0-beta.44(transitive)
+ Added@babel/helper-remap-async-to-generator@7.0.0-beta.44(transitive)
+ Added@babel/helper-split-export-declaration@7.0.0-beta.44(transitive)
+ Added@babel/helper-wrap-function@7.0.0-beta.44(transitive)
+ Added@babel/helpers@7.0.0-beta.44(transitive)
+ Added@babel/highlight@7.0.0-beta.44(transitive)
+ Added@babel/template@7.0.0-beta.44(transitive)
+ Added@babel/traverse@7.0.0-beta.44(transitive)
+ Added@babel/types@7.0.0-beta.44(transitive)
+ Addedbabylon@7.0.0-beta.44(transitive)
- Removed@babel/code-frame@7.0.0-beta.43(transitive)
- Removed@babel/core@7.0.0-beta.43(transitive)
- Removed@babel/generator@7.0.0-beta.43(transitive)
- Removed@babel/helper-annotate-as-pure@7.0.0-beta.43(transitive)
- Removed@babel/helper-function-name@7.0.0-beta.43(transitive)
- Removed@babel/helper-get-function-arity@7.0.0-beta.43(transitive)
- Removed@babel/helper-module-imports@7.0.0-beta.43(transitive)
- Removed@babel/helper-plugin-utils@7.0.0-beta.43(transitive)
- Removed@babel/helper-remap-async-to-generator@7.0.0-beta.43(transitive)
- Removed@babel/helper-split-export-declaration@7.0.0-beta.43(transitive)
- Removed@babel/helper-wrap-function@7.0.0-beta.43(transitive)
- Removed@babel/helpers@7.0.0-beta.43(transitive)
- Removed@babel/highlight@7.0.0-beta.43(transitive)
- Removed@babel/template@7.0.0-beta.43(transitive)
- Removed@babel/traverse@7.0.0-beta.43(transitive)
- Removed@babel/types@7.0.0-beta.43(transitive)
- Removedbabylon@7.0.0-beta.43(transitive)