feat: refactoring project

This commit is contained in:
Carlos
2024-11-23 14:56:07 -05:00
parent f0c2a50c18
commit 1c6db5818d
2351 changed files with 39323 additions and 60326 deletions

View File

@@ -64,6 +64,7 @@ var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
path.traverse(forAwaitVisitor, state);
if (!path.node.generator) return;
path.traverse(yieldStarVisitor, state);
path.setData("@babel/plugin-transform-async-generator-functions/async_generator_function", true);
(0, _helperRemapAsyncToGenerator.default)(path, {
wrapAsync: state.addHelper("wrapAsyncGenerator"),
wrapAwait: state.addHelper("awaitAsyncGenerator")
@@ -72,7 +73,7 @@ var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
};
return {
name: "transform-async-generator-functions",
inherits: api.version[0] === "8" ? undefined : require("@babel/plugin-syntax-async-generators").default,
manipulateOptions: (_, parser) => parser.plugins.push("asyncGenerators"),
visitor: {
Program(path, state) {
path.traverse(visitor, state);

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-async-generator-functions",
"version": "7.25.0",
"version": "7.25.9",
"description": "Turn async generator functions into ES2015 generators",
"repository": {
"type": "git",
@@ -17,18 +17,17 @@
"babel-plugin"
],
"dependencies": {
"@babel/helper-plugin-utils": "^7.24.8",
"@babel/helper-remap-async-to-generator": "^7.25.0",
"@babel/plugin-syntax-async-generators": "^7.8.4",
"@babel/traverse": "^7.25.0"
"@babel/helper-plugin-utils": "^7.25.9",
"@babel/helper-remap-async-to-generator": "^7.25.9",
"@babel/traverse": "^7.25.9"
},
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/helper-plugin-test-runner": "^7.24.7",
"babel-plugin-polyfill-corejs3": "^0.10.4",
"@babel/core": "^7.25.9",
"@babel/helper-plugin-test-runner": "^7.25.9",
"babel-plugin-polyfill-corejs3": "^0.10.6",
"core-js-pure": "^3.30.2"
},
"engines": {

View File

@@ -1,20 +0,0 @@
/* This file is automatically generated by scripts/generators/tsconfig.js */
{
"extends": [
"../../tsconfig.base.json",
"../../tsconfig.paths.json"
],
"include": [
"../../packages/babel-plugin-transform-async-generator-functions/src/**/*.ts",
"../../lib/globals.d.ts",
"../../scripts/repo-utils/*.d.ts"
],
"references": [
{
"path": "../../packages/babel-helper-plugin-utils"
},
{
"path": "../../packages/babel-helper-remap-async-to-generator"
}
]
}

File diff suppressed because one or more lines are too long