@babel/plugin-transform-async-to-generator
Advanced tools
Comparing version 7.5.0 to 7.7.0
@@ -8,45 +8,13 @@ "use strict"; | ||
function _helperPluginUtils() { | ||
const data = require("@babel/helper-plugin-utils"); | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
_helperPluginUtils = function () { | ||
return data; | ||
}; | ||
var _helperRemapAsyncToGenerator = _interopRequireDefault(require("@babel/helper-remap-async-to-generator")); | ||
return data; | ||
} | ||
var _helperModuleImports = require("@babel/helper-module-imports"); | ||
function _helperRemapAsyncToGenerator() { | ||
const data = _interopRequireDefault(require("@babel/helper-remap-async-to-generator")); | ||
var _core = require("@babel/core"); | ||
_helperRemapAsyncToGenerator = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _helperModuleImports() { | ||
const data = require("@babel/helper-module-imports"); | ||
_helperModuleImports = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _core() { | ||
const data = require("@babel/core"); | ||
_core = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _default = (0, _helperPluginUtils().declare)((api, options) => { | ||
var _default = (0, _helperPluginUtils.declare)((api, options) => { | ||
api.assertVersion(7); | ||
@@ -67,8 +35,8 @@ const { | ||
if (wrapAsync) { | ||
wrapAsync = _core().types.cloneNode(wrapAsync); | ||
wrapAsync = _core.types.cloneNode(wrapAsync); | ||
} else { | ||
wrapAsync = state.methodWrapper = (0, _helperModuleImports().addNamed)(path, method, module); | ||
wrapAsync = state.methodWrapper = (0, _helperModuleImports.addNamed)(path, method, module); | ||
} | ||
(0, _helperRemapAsyncToGenerator().default)(path, { | ||
(0, _helperRemapAsyncToGenerator.default)(path, { | ||
wrapAsync | ||
@@ -87,3 +55,3 @@ }); | ||
if (!path.node.async || path.node.generator) return; | ||
(0, _helperRemapAsyncToGenerator().default)(path, { | ||
(0, _helperRemapAsyncToGenerator.default)(path, { | ||
wrapAsync: state.addHelper("asyncToGenerator") | ||
@@ -90,0 +58,0 @@ }); |
{ | ||
"name": "@babel/plugin-transform-async-to-generator", | ||
"version": "7.5.0", | ||
"version": "7.7.0", | ||
"description": "Turn async functions into ES2015 generators", | ||
@@ -15,5 +15,5 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-async-to-generator", | ||
"dependencies": { | ||
"@babel/helper-module-imports": "^7.0.0", | ||
"@babel/helper-module-imports": "^7.7.0", | ||
"@babel/helper-plugin-utils": "^7.0.0", | ||
"@babel/helper-remap-async-to-generator": "^7.1.0" | ||
"@babel/helper-remap-async-to-generator": "^7.7.0" | ||
}, | ||
@@ -24,6 +24,6 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.5.0", | ||
"@babel/core": "^7.7.0", | ||
"@babel/helper-plugin-test-runner": "^7.0.0" | ||
}, | ||
"gitHead": "49da9a07c81156e997e60146eb001ea77b7044c4" | ||
"gitHead": "97faa83953cb87e332554fa559a4956d202343ea" | ||
} |
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
3888
47