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

@@ -11,7 +11,8 @@ function generateUid(scope, denyList) {
let uid;
let i = 1;
do {
uid = scope._generateUid(name, i);
uid = `_${name}`;
if (i > 1) uid += i;
i++;
} while (denyList.has(uid));
return uid;
@@ -19,13 +20,12 @@ function generateUid(scope, denyList) {
var _default = exports.default = (0, _helperPluginUtils.declare)(({
types: t,
template,
assertVersion,
version
assertVersion
}) => {
assertVersion("^7.12.0 || >8.0.0-alpha <8.0.0-beta");
return {
name: "transform-class-static-block",
inherits: version[0] === "8" ? undefined : require("@babel/plugin-syntax-class-static-block").default,
manipulateOptions: (_, parser) => parser.plugins.push("classStaticBlock"),
pre() {
(0, _helperCreateClassFeaturesPlugin.enableFeature)(this.file, _helperCreateClassFeaturesPlugin.FEATURES.staticBlocks, false);
},

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-class-static-block",
"version": "7.24.7",
"version": "7.26.0",
"description": "Transform class static blocks",
"repository": {
"type": "git",
@@ -23,19 +23,19 @@
"babel-plugin"
],
"dependencies": {
"@babel/helper-create-class-features-plugin": "^7.24.7",
"@babel/helper-plugin-utils": "^7.24.7",
"@babel/plugin-syntax-class-static-block": "^7.14.5"
"@babel/helper-create-class-features-plugin": "^7.25.9",
"@babel/helper-plugin-utils": "^7.25.9"
},
"peerDependencies": {
"@babel/core": "^7.12.0"
},
"devDependencies": {
"@babel/core": "^7.24.7",
"@babel/helper-plugin-test-runner": "^7.24.7",
"@babel/plugin-external-helpers": "^7.24.7",
"@babel/traverse": "^7.24.7",
"@babel/types": "^7.24.7"
"@babel/core": "^7.26.0",
"@babel/helper-plugin-test-runner": "^7.25.9",
"@babel/plugin-external-helpers": "^7.25.9",
"@babel/plugin-transform-class-properties": "^7.25.9",
"@babel/traverse": "^7.25.9",
"@babel/types": "^7.26.0"
},
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-class-static-block",
"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-class-static-block/src/**/*.ts",
"../../lib/globals.d.ts",
"../../scripts/repo-utils/*.d.ts"
],
"references": [
{
"path": "../../packages/babel-helper-plugin-utils"
},
{
"path": "../../packages/babel-helper-create-class-features-plugin"
}
]
}

File diff suppressed because one or more lines are too long