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

@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
exports.annexB33FunctionsVisitor = void 0;
exports.isVarScope = isVarScope;
var _core = require("@babel/core");
const annexB33FunctionsVisitor = exports.annexB33FunctionsVisitor = {
const annexB33FunctionsVisitor = exports.annexB33FunctionsVisitor = Object.assign({
VariableDeclaration(path) {
if (isStrict(path)) return;
if (path.node.kind !== "var") return;
@@ -14,7 +14,8 @@ const annexB33FunctionsVisitor = exports.annexB33FunctionsVisitor = {
varScope.path.traverse(functionsToVarVisitor, {
names: Object.keys(path.getBindingIdentifiers())
});
},
}
}, {
BlockStatement(path) {
if (isStrict(path)) return;
if (_core.types.isFunction(path.parent, {
@@ -26,7 +27,7 @@ const annexB33FunctionsVisitor = exports.annexB33FunctionsVisitor = {
if (isStrict(path)) return;
transformStatementList(path.get("consequent"));
}
};
});
function transformStatementList(paths) {
outer: for (const path of paths) {
if (!path.isFunctionDeclaration()) continue;

File diff suppressed because one or more lines are too long

View File

@@ -1,6 +1,6 @@
{
"name": "@babel/plugin-transform-block-scoping",
"version": "7.25.0",
"version": "7.25.9",
"description": "Compile ES2015 block scoping (const and let) to ES5",
"repository": {
"type": "git",
@@ -14,7 +14,7 @@
},
"main": "./lib/index.js",
"dependencies": {
"@babel/helper-plugin-utils": "^7.24.8"
"@babel/helper-plugin-utils": "^7.25.9"
},
"keywords": [
"babel-plugin"
@@ -23,9 +23,9 @@
"@babel/core": "^7.0.0-0"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@babel/helper-plugin-test-runner": "^7.24.7",
"@babel/traverse": "^7.25.0"
"@babel/core": "^7.25.9",
"@babel/helper-plugin-test-runner": "^7.25.9",
"@babel/traverse": "^7.25.9"
},
"engines": {
"node": ">=6.9.0"

View File

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

File diff suppressed because one or more lines are too long