@babel/plugin-transform-async-to-generator
Advanced tools
Comparing version 7.21.4-esm.4 to 7.22.5
@@ -1,6 +0,12 @@ | ||
import { declare } from "@babel/helper-plugin-utils"; | ||
import remapAsyncToGenerator from "@babel/helper-remap-async-to-generator"; | ||
import { addNamed } from "@babel/helper-module-imports"; | ||
import { types as t } from "@babel/core"; | ||
export default declare((api, options) => { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
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; | ||
@@ -22,7 +28,7 @@ api.assertVersion(7); | ||
if (wrapAsync) { | ||
wrapAsync = t.cloneNode(wrapAsync); | ||
wrapAsync = _core.types.cloneNode(wrapAsync); | ||
} else { | ||
wrapAsync = state.methodWrapper = addNamed(path, method, module); | ||
wrapAsync = state.methodWrapper = (0, _helperModuleImports.addNamed)(path, method, module); | ||
} | ||
remapAsyncToGenerator(path, { | ||
(0, _helperRemapAsyncToGenerator.default)(path, { | ||
wrapAsync | ||
@@ -39,3 +45,3 @@ }, noNewArrows, ignoreFunctionLength); | ||
if (!path.node.async || path.node.generator) return; | ||
remapAsyncToGenerator(path, { | ||
(0, _helperRemapAsyncToGenerator.default)(path, { | ||
wrapAsync: state.addHelper("asyncToGenerator") | ||
@@ -47,3 +53,4 @@ }, noNewArrows, ignoreFunctionLength); | ||
}); | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@babel/plugin-transform-async-to-generator", | ||
"version": "7.21.4-esm.4", | ||
"version": "7.22.5", | ||
"description": "Turn async functions into ES2015 generators", | ||
@@ -20,12 +20,12 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-module-imports": "7.21.4-esm.4", | ||
"@babel/helper-plugin-utils": "7.21.4-esm.4", | ||
"@babel/helper-remap-async-to-generator": "7.21.4-esm.4" | ||
"@babel/helper-module-imports": "^7.22.5", | ||
"@babel/helper-plugin-utils": "^7.22.5", | ||
"@babel/helper-remap-async-to-generator": "^7.22.5" | ||
}, | ||
"peerDependencies": { | ||
"@babel/core": "^7.0.0-0 || ^7.21.4-esm.2" | ||
"@babel/core": "^7.0.0-0" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "7.21.4-esm.4", | ||
"@babel/helper-plugin-test-runner": "7.21.4-esm.4" | ||
"@babel/core": "^7.22.5", | ||
"@babel/helper-plugin-test-runner": "^7.22.5" | ||
}, | ||
@@ -36,3 +36,3 @@ "engines": { | ||
"author": "The Babel Team (https://babel.dev/team)", | ||
"type": "module" | ||
"type": "commonjs" | ||
} |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7962
51
0
5
No
+ Added@babel/helper-annotate-as-pure@7.24.7(transitive)
+ Added@babel/helper-plugin-utils@7.24.8(transitive)
+ Added@babel/helper-remap-async-to-generator@7.25.0(transitive)
+ Added@babel/helper-wrap-function@7.25.0(transitive)
+ Addedupdate-browserslist-db@1.1.0(transitive)
- Removed@babel/code-frame@7.21.4-esm.4(transitive)
- Removed@babel/generator@7.21.4-esm.4(transitive)
- Removed@babel/helper-annotate-as-pure@7.21.4-esm.4(transitive)
- Removed@babel/helper-environment-visitor@7.21.4-esm.4(transitive)
- Removed@babel/helper-function-name@7.21.4-esm.4(transitive)
- Removed@babel/helper-hoist-variables@7.21.4-esm.4(transitive)
- Removed@babel/helper-module-imports@7.21.4-esm.4(transitive)
- Removed@babel/helper-plugin-utils@7.21.4-esm.4(transitive)
- Removed@babel/helper-remap-async-to-generator@7.21.4-esm.4(transitive)
- Removed@babel/helper-split-export-declaration@7.21.4-esm.4(transitive)
- Removed@babel/helper-string-parser@7.21.4-esm.4(transitive)
- Removed@babel/helper-validator-identifier@7.21.4-esm.4(transitive)
- Removed@babel/helper-wrap-function@7.21.4-esm.4(transitive)
- Removed@babel/highlight@7.21.4-esm.4(transitive)
- Removed@babel/parser@7.21.4-esm.4(transitive)
- Removed@babel/template@7.21.4-esm.4(transitive)
- Removed@babel/traverse@7.21.4-esm.4(transitive)
- Removed@babel/types@7.21.4-esm.4(transitive)
- Removedupdate-browserslist-db@1.1.1(transitive)