@babel/plugin-transform-async-to-generator
Advanced tools
Comparing version 7.18.6 to 7.20.7
@@ -7,14 +7,8 @@ "use strict"; | ||
exports.default = void 0; | ||
var _helperPluginUtils = require("@babel/helper-plugin-utils"); | ||
var _helperRemapAsyncToGenerator = require("@babel/helper-remap-async-to-generator"); | ||
var _helperModuleImports = require("@babel/helper-module-imports"); | ||
var _core = require("@babel/core"); | ||
var _default = (0, _helperPluginUtils.declare)((api, options) => { | ||
var _api$assumption, _api$assumption2; | ||
api.assertVersion(7); | ||
@@ -27,3 +21,2 @@ const { | ||
const ignoreFunctionLength = (_api$assumption2 = api.assumption("ignoreFunctionLength")) != null ? _api$assumption2 : false; | ||
if (method && module) { | ||
@@ -36,3 +29,2 @@ return { | ||
let wrapAsync = state.methodWrapper; | ||
if (wrapAsync) { | ||
@@ -43,3 +35,2 @@ wrapAsync = _core.types.cloneNode(wrapAsync); | ||
} | ||
(0, _helperRemapAsyncToGenerator.default)(path, { | ||
@@ -49,7 +40,5 @@ wrapAsync | ||
} | ||
} | ||
}; | ||
} | ||
return { | ||
@@ -64,7 +53,7 @@ name: "transform-async-to-generator", | ||
} | ||
} | ||
}; | ||
}); | ||
exports.default = _default; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-async-to-generator", | ||
"version": "7.18.6", | ||
"version": "7.20.7", | ||
"description": "Turn async functions into ES2015 generators", | ||
@@ -21,4 +21,4 @@ "repository": { | ||
"@babel/helper-module-imports": "^7.18.6", | ||
"@babel/helper-plugin-utils": "^7.18.6", | ||
"@babel/helper-remap-async-to-generator": "^7.18.6" | ||
"@babel/helper-plugin-utils": "^7.20.2", | ||
"@babel/helper-remap-async-to-generator": "^7.18.9" | ||
}, | ||
@@ -29,3 +29,3 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@babel/core": "^7.18.6", | ||
"@babel/core": "^7.20.7", | ||
"@babel/helper-plugin-test-runner": "^7.18.6" | ||
@@ -32,0 +32,0 @@ }, |
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
7606
5
51