This commit is contained in:
2023-08-11 10:45:20 +08:00
commit 161ca982f3
31850 changed files with 2706500 additions and 0 deletions

22
node_modules/@babel/plugin-syntax-decorators/LICENSE generated vendored Normal file
View 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
node_modules/@babel/plugin-syntax-decorators/README.md generated vendored Normal file
View File

@ -0,0 +1,19 @@
# @babel/plugin-syntax-decorators
> Allow parsing of decorators
See our website [@babel/plugin-syntax-decorators](https://babeljs.io/docs/babel-plugin-syntax-decorators) for more information.
## Install
Using npm:
```sh
npm install --save-dev @babel/plugin-syntax-decorators
```
or using yarn:
```sh
yarn add @babel/plugin-syntax-decorators --dev
```

View File

@ -0,0 +1,82 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = (0, _helperPluginUtils.declare)((api, options) => {
api.assertVersion(7);
let {
version
} = options;
{
const {
legacy
} = options;
if (legacy !== undefined) {
if (typeof legacy !== "boolean") {
throw new Error(".legacy must be a boolean.");
}
if (version !== undefined) {
throw new Error("You can either use the .legacy or the .version option, not both.");
}
}
if (version === undefined) {
version = legacy ? "legacy" : "2018-09";
} else if (version !== "2023-05" && version !== "2023-01" && version !== "2022-03" && version !== "2021-12" && version !== "2018-09" && version !== "legacy") {
throw new Error("Unsupported decorators version: " + version);
}
var {
decoratorsBeforeExport
} = options;
if (decoratorsBeforeExport === undefined) {
if (version === "2021-12" || version === "2022-03") {
decoratorsBeforeExport = false;
} else if (version === "2018-09") {
throw new Error("The decorators plugin, when .version is '2018-09' or not specified," + " requires a 'decoratorsBeforeExport' option, whose value must be a boolean.");
}
} else {
if (version === "legacy" || version === "2022-03" || version === "2023-01") {
throw new Error(`'decoratorsBeforeExport' can't be used with ${version} decorators.`);
}
if (typeof decoratorsBeforeExport !== "boolean") {
throw new Error("'decoratorsBeforeExport' must be a boolean.");
}
}
}
return {
name: "syntax-decorators",
manipulateOptions({
generatorOpts
}, parserOpts) {
if (version === "legacy") {
parserOpts.plugins.push("decorators-legacy");
} else {
if (version === "2023-01" || version === "2023-05") {
parserOpts.plugins.push(["decorators", {
allowCallParenthesized: false
}], "decoratorAutoAccessors");
} else if (version === "2022-03") {
parserOpts.plugins.push(["decorators", {
decoratorsBeforeExport: false,
allowCallParenthesized: false
}], "decoratorAutoAccessors");
} else if (version === "2021-12") {
parserOpts.plugins.push(["decorators", {
decoratorsBeforeExport
}], "decoratorAutoAccessors");
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport;
} else if (version === "2018-09") {
parserOpts.plugins.push(["decorators", {
decoratorsBeforeExport
}]);
generatorOpts.decoratorsBeforeExport = decoratorsBeforeExport;
}
}
}
};
});
exports.default = _default;
//# sourceMappingURL=index.js.map

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,65 @@
{
"_from": "@babel/plugin-syntax-decorators@^7.22.10",
"_id": "@babel/plugin-syntax-decorators@7.22.10",
"_inBundle": false,
"_integrity": "sha512-z1KTVemBjnz+kSEilAsI4lbkPOl5TvJH7YDSY1CTIzvLWJ+KHXp+mRe8VPmfnyvqOPqar1V2gid2PleKzRUstQ==",
"_location": "/@babel/plugin-syntax-decorators",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "@babel/plugin-syntax-decorators@^7.22.10",
"name": "@babel/plugin-syntax-decorators",
"escapedName": "@babel%2fplugin-syntax-decorators",
"scope": "@babel",
"rawSpec": "^7.22.10",
"saveSpec": null,
"fetchSpec": "^7.22.10"
},
"_requiredBy": [
"/@babel/plugin-proposal-decorators"
],
"_resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.22.10.tgz",
"_shasum": "7d83ea04d893c442b78ebf4c3cbac59a7211deff",
"_spec": "@babel/plugin-syntax-decorators@^7.22.10",
"_where": "C:\\Users\\zhouxueli\\Desktop\\scheduling-app\\node_modules\\@babel\\plugin-proposal-decorators",
"author": {
"name": "The Babel Team",
"url": "https://babel.dev/team"
},
"bugs": {
"url": "https://github.com/babel/babel/issues"
},
"bundleDependencies": false,
"dependencies": {
"@babel/helper-plugin-utils": "^7.22.5"
},
"deprecated": false,
"description": "Allow parsing of decorators",
"devDependencies": {
"@babel/core": "^7.22.10"
},
"engines": {
"node": ">=6.9.0"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-syntax-decorators",
"keywords": [
"babel-plugin"
],
"license": "MIT",
"main": "./lib/index.js",
"name": "@babel/plugin-syntax-decorators",
"peerDependencies": {
"@babel/core": "^7.0.0-0"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/babel/babel.git",
"directory": "packages/babel-plugin-syntax-decorators"
},
"type": "commonjs",
"version": "7.22.10"
}