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/plugin-transform-class-static-block/LICENSE
generated
vendored
Executable file
22
my-app/node_modules/@babel/plugin-transform-class-static-block/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/plugin-transform-class-static-block/README.md
generated
vendored
Executable file
19
my-app/node_modules/@babel/plugin-transform-class-static-block/README.md
generated
vendored
Executable file
|
@ -0,0 +1,19 @@
|
|||
# @babel/plugin-transform-class-static-block
|
||||
|
||||
> Transform class static blocks
|
||||
|
||||
See our website [@babel/plugin-transform-class-static-block](https://babeljs.io/docs/babel-plugin-transform-class-static-block) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-transform-class-static-block
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/plugin-transform-class-static-block --dev
|
||||
```
|
62
my-app/node_modules/@babel/plugin-transform-class-static-block/lib/index.js
generated
vendored
Executable file
62
my-app/node_modules/@babel/plugin-transform-class-static-block/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,62 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
var _helperCreateClassFeaturesPlugin = require("@babel/helper-create-class-features-plugin");
|
||||
function generateUid(scope, denyList) {
|
||||
const name = "";
|
||||
let uid;
|
||||
let i = 1;
|
||||
do {
|
||||
uid = scope._generateUid(name, i);
|
||||
i++;
|
||||
} while (denyList.has(uid));
|
||||
return uid;
|
||||
}
|
||||
var _default = exports.default = (0, _helperPluginUtils.declare)(({
|
||||
types: t,
|
||||
template,
|
||||
assertVersion
|
||||
}) => {
|
||||
assertVersion("^7.12.0");
|
||||
return {
|
||||
name: "transform-class-static-block",
|
||||
inherits: require("@babel/plugin-syntax-class-static-block").default,
|
||||
pre() {
|
||||
(0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.staticBlocks, false);
|
||||
},
|
||||
visitor: {
|
||||
ClassBody(classBody) {
|
||||
const {
|
||||
scope
|
||||
} = classBody;
|
||||
const privateNames = new Set();
|
||||
const body = classBody.get("body");
|
||||
for (const path of body) {
|
||||
if (path.isPrivate()) {
|
||||
privateNames.add(path.get("key.id").node.name);
|
||||
}
|
||||
}
|
||||
for (const path of body) {
|
||||
if (!path.isStaticBlock()) continue;
|
||||
const staticBlockPrivateId = generateUid(scope, privateNames);
|
||||
privateNames.add(staticBlockPrivateId);
|
||||
const staticBlockRef = t.privateName(t.identifier(staticBlockPrivateId));
|
||||
let replacement;
|
||||
const blockBody = path.node.body;
|
||||
if (blockBody.length === 1 && t.isExpressionStatement(blockBody[0])) {
|
||||
replacement = t.inheritsComments(blockBody[0].expression, blockBody[0]);
|
||||
} else {
|
||||
replacement = template.expression.ast`(() => { ${blockBody} })()`;
|
||||
}
|
||||
path.replaceWith(t.classPrivateProperty(staticBlockRef, replacement, [], true));
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
my-app/node_modules/@babel/plugin-transform-class-static-block/lib/index.js.map
generated
vendored
Executable file
1
my-app/node_modules/@babel/plugin-transform-class-static-block/lib/index.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
42
my-app/node_modules/@babel/plugin-transform-class-static-block/package.json
generated
vendored
Executable file
42
my-app/node_modules/@babel/plugin-transform-class-static-block/package.json
generated
vendored
Executable file
|
@ -0,0 +1,42 @@
|
|||
{
|
||||
"name": "@babel/plugin-transform-class-static-block",
|
||||
"version": "7.23.4",
|
||||
"description": "Transform class static blocks",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-plugin-transform-class-static-block"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"exports": {
|
||||
".": "./lib/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"dependencies": {
|
||||
"@babel/helper-create-class-features-plugin": "^7.22.15",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"@babel/plugin-syntax-class-static-block": "^7.14.5"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.12.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/helper-plugin-test-runner": "^7.22.5",
|
||||
"@babel/traverse": "^7.23.4",
|
||||
"@babel/types": "^7.23.4"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-class-static-block",
|
||||
"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