Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
22
my-app/node_modules/@babel/helper-remap-async-to-generator/LICENSE
generated
vendored
Executable file
22
my-app/node_modules/@babel/helper-remap-async-to-generator/LICENSE
generated
vendored
Executable file
|
@ -0,0 +1,22 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
my-app/node_modules/@babel/helper-remap-async-to-generator/README.md
generated
vendored
Executable file
19
my-app/node_modules/@babel/helper-remap-async-to-generator/README.md
generated
vendored
Executable file
|
@ -0,0 +1,19 @@
|
|||
# @babel/helper-remap-async-to-generator
|
||||
|
||||
> Helper function to remap async functions to generators
|
||||
|
||||
See our website [@babel/helper-remap-async-to-generator](https://babeljs.io/docs/babel-helper-remap-async-to-generator) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save @babel/helper-remap-async-to-generator
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/helper-remap-async-to-generator
|
||||
```
|
64
my-app/node_modules/@babel/helper-remap-async-to-generator/lib/index.js
generated
vendored
Executable file
64
my-app/node_modules/@babel/helper-remap-async-to-generator/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,64 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
var _helperWrapFunction = require("@babel/helper-wrap-function");
|
||||
var _helperAnnotateAsPure = require("@babel/helper-annotate-as-pure");
|
||||
var _helperEnvironmentVisitor = require("@babel/helper-environment-visitor");
|
||||
var _core = require("@babel/core");
|
||||
const {
|
||||
callExpression,
|
||||
cloneNode,
|
||||
isIdentifier,
|
||||
isThisExpression,
|
||||
yieldExpression
|
||||
} = _core.types;
|
||||
const awaitVisitor = _core.traverse.visitors.merge([{
|
||||
ArrowFunctionExpression(path) {
|
||||
path.skip();
|
||||
},
|
||||
AwaitExpression(path, {
|
||||
wrapAwait
|
||||
}) {
|
||||
const argument = path.get("argument");
|
||||
path.replaceWith(yieldExpression(wrapAwait ? callExpression(cloneNode(wrapAwait), [argument.node]) : argument.node));
|
||||
}
|
||||
}, _helperEnvironmentVisitor.default]);
|
||||
function _default(path, helpers, noNewArrows, ignoreFunctionLength) {
|
||||
path.traverse(awaitVisitor, {
|
||||
wrapAwait: helpers.wrapAwait
|
||||
});
|
||||
const isIIFE = checkIsIIFE(path);
|
||||
path.node.async = false;
|
||||
path.node.generator = true;
|
||||
(0, _helperWrapFunction.default)(path, cloneNode(helpers.wrapAsync), noNewArrows, ignoreFunctionLength);
|
||||
const isProperty = path.isObjectMethod() || path.isClassMethod() || path.parentPath.isObjectProperty() || path.parentPath.isClassProperty();
|
||||
if (!isProperty && !isIIFE && path.isExpression()) {
|
||||
(0, _helperAnnotateAsPure.default)(path);
|
||||
}
|
||||
function checkIsIIFE(path) {
|
||||
if (path.parentPath.isCallExpression({
|
||||
callee: path.node
|
||||
})) {
|
||||
return true;
|
||||
}
|
||||
const {
|
||||
parentPath
|
||||
} = path;
|
||||
if (parentPath.isMemberExpression() && isIdentifier(parentPath.node.property, {
|
||||
name: "bind"
|
||||
})) {
|
||||
const {
|
||||
parentPath: bindCall
|
||||
} = parentPath;
|
||||
return bindCall.isCallExpression() && bindCall.node.arguments.length === 1 && isThisExpression(bindCall.node.arguments[0]) && bindCall.parentPath.isCallExpression({
|
||||
callee: bindCall.node
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
my-app/node_modules/@babel/helper-remap-async-to-generator/lib/index.js.map
generated
vendored
Executable file
1
my-app/node_modules/@babel/helper-remap-async-to-generator/lib/index.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
33
my-app/node_modules/@babel/helper-remap-async-to-generator/package.json
generated
vendored
Executable file
33
my-app/node_modules/@babel/helper-remap-async-to-generator/package.json
generated
vendored
Executable file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
"name": "@babel/helper-remap-async-to-generator",
|
||||
"version": "7.22.20",
|
||||
"description": "Helper function to remap async functions to generators",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-helper-remap-async-to-generator"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-helper-remap-async-to-generator",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/helper-annotate-as-pure": "^7.22.5",
|
||||
"@babel/helper-environment-visitor": "^7.22.20",
|
||||
"@babel/helper-wrap-function": "^7.22.20"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.20",
|
||||
"@babel/traverse": "^7.22.20"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"type": "commonjs"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue