feat: refactoring project
This commit is contained in:
7
node_modules/@babel/plugin-transform-block-scoping/lib/annex-B_3_3.js
generated
vendored
7
node_modules/@babel/plugin-transform-block-scoping/lib/annex-B_3_3.js
generated
vendored
@@ -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;
|
||||
|
||||
2
node_modules/@babel/plugin-transform-block-scoping/lib/annex-B_3_3.js.map
generated
vendored
2
node_modules/@babel/plugin-transform-block-scoping/lib/annex-B_3_3.js.map
generated
vendored
File diff suppressed because one or more lines are too long
10
node_modules/@babel/plugin-transform-block-scoping/package.json
generated
vendored
10
node_modules/@babel/plugin-transform-block-scoping/package.json
generated
vendored
@@ -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"
|
||||
|
||||
17
node_modules/@babel/plugin-transform-block-scoping/tsconfig.json
generated
vendored
17
node_modules/@babel/plugin-transform-block-scoping/tsconfig.json
generated
vendored
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
1
node_modules/@babel/plugin-transform-block-scoping/tsconfig.tsbuildinfo
generated
vendored
1
node_modules/@babel/plugin-transform-block-scoping/tsconfig.tsbuildinfo
generated
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user