From b5cccf167ace3980db4780f25dcc559bba7b55a6 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Thu, 21 Aug 2025 16:09:52 +0800 Subject: [PATCH 01/17] feature: implement a ts uniast parser based on ts-node. --- .gitignore | 3 +- ts-parser/.gitignore | 9 + ts-parser/README.md | 43 + ts-parser/package-lock.json | 5378 +++++++++++++++ ts-parser/package.json | 42 + ts-parser/src/index.ts | 59 + ts-parser/src/parser/FunctionParser.ts | 655 ++ ts-parser/src/parser/ModuleParser.ts | 141 + ts-parser/src/parser/PackageParser.ts | 52 + ts-parser/src/parser/RepositoryParser.ts | 318 + ts-parser/src/parser/TypeParser.ts | 440 ++ ts-parser/src/parser/VarParser.ts | 510 ++ .../src/parser/test/FunctionParser.test.ts | 396 ++ ts-parser/src/parser/test/README.md | 70 + ts-parser/src/parser/test/TypeParser.test.ts | 522 ++ ts-parser/src/parser/test/VarParser.test.ts | 224 + ts-parser/src/parser/test/jest.config.js | 23 + ts-parser/src/parser/test/package-lock.json | 6016 +++++++++++++++++ ts-parser/src/parser/test/package.json | 18 + ts-parser/src/parser/test/setup.ts | 24 + ts-parser/src/parser/test/test-utils.ts | 80 + ts-parser/src/parser/test/tsconfig.json | 21 + ts-parser/src/types/typescript-mapping.md | 70 + ts-parser/src/types/uniast.ts | 214 + ts-parser/src/utils/dependency-utils.ts | 138 + ts-parser/src/utils/path-utils.ts | 35 + ts-parser/src/utils/symbol-resolver.ts | 349 + ts-parser/src/utils/tsconfig-cache.ts | 117 + ts-parser/src/utils/type-utils.ts | 24 + ts-parser/src/utils/typescript-structure.ts | 235 + ts-parser/test-repo/config.json | 15 + ts-parser/test-repo/package-lock.json | 2476 +++++++ ts-parser/test-repo/package.json | 31 + ts-parser/test-repo/src/config/app.config.ts | 55 + .../src/controllers/UserController.ts | 92 + ts-parser/test-repo/src/index.ts | 89 + .../src/middleware/AuthMiddleware.ts | 44 + .../test-repo/src/middleware/Validation.ts | 41 + ts-parser/test-repo/src/models/user.ts | 76 + ts-parser/test-repo/src/routes/AuthRoutes.ts | 129 + ts-parser/test-repo/src/routes/UserRoutes.ts | 41 + .../test-repo/src/services/DatabaseService.ts | 45 + .../test-repo/src/services/UserService.ts | 76 + ts-parser/test-repo/src/services/api.ts | 31 + ts-parser/test-repo/src/test/index.test.ts | 9 + ts-parser/test-repo/src/utils/Logger.ts | 39 + ts-parser/test-repo/src/utils/Validation.ts | 48 + ts-parser/test-repo/src/utils/calculator.ts | 141 + ts-parser/test-repo/src/utils/constants.ts | 10 + ts-parser/test-repo/tsconfig.json | 22 + ts-parser/tsconfig.json | 21 + 51 files changed, 19756 insertions(+), 1 deletion(-) create mode 100644 ts-parser/.gitignore create mode 100644 ts-parser/README.md create mode 100644 ts-parser/package-lock.json create mode 100644 ts-parser/package.json create mode 100644 ts-parser/src/index.ts create mode 100644 ts-parser/src/parser/FunctionParser.ts create mode 100644 ts-parser/src/parser/ModuleParser.ts create mode 100644 ts-parser/src/parser/PackageParser.ts create mode 100644 ts-parser/src/parser/RepositoryParser.ts create mode 100644 ts-parser/src/parser/TypeParser.ts create mode 100644 ts-parser/src/parser/VarParser.ts create mode 100644 ts-parser/src/parser/test/FunctionParser.test.ts create mode 100644 ts-parser/src/parser/test/README.md create mode 100644 ts-parser/src/parser/test/TypeParser.test.ts create mode 100644 ts-parser/src/parser/test/VarParser.test.ts create mode 100644 ts-parser/src/parser/test/jest.config.js create mode 100644 ts-parser/src/parser/test/package-lock.json create mode 100644 ts-parser/src/parser/test/package.json create mode 100644 ts-parser/src/parser/test/setup.ts create mode 100644 ts-parser/src/parser/test/test-utils.ts create mode 100644 ts-parser/src/parser/test/tsconfig.json create mode 100644 ts-parser/src/types/typescript-mapping.md create mode 100644 ts-parser/src/types/uniast.ts create mode 100644 ts-parser/src/utils/dependency-utils.ts create mode 100644 ts-parser/src/utils/path-utils.ts create mode 100644 ts-parser/src/utils/symbol-resolver.ts create mode 100644 ts-parser/src/utils/tsconfig-cache.ts create mode 100644 ts-parser/src/utils/type-utils.ts create mode 100644 ts-parser/src/utils/typescript-structure.ts create mode 100644 ts-parser/test-repo/config.json create mode 100644 ts-parser/test-repo/package-lock.json create mode 100644 ts-parser/test-repo/package.json create mode 100644 ts-parser/test-repo/src/config/app.config.ts create mode 100644 ts-parser/test-repo/src/controllers/UserController.ts create mode 100644 ts-parser/test-repo/src/index.ts create mode 100644 ts-parser/test-repo/src/middleware/AuthMiddleware.ts create mode 100644 ts-parser/test-repo/src/middleware/Validation.ts create mode 100644 ts-parser/test-repo/src/models/user.ts create mode 100644 ts-parser/test-repo/src/routes/AuthRoutes.ts create mode 100644 ts-parser/test-repo/src/routes/UserRoutes.ts create mode 100644 ts-parser/test-repo/src/services/DatabaseService.ts create mode 100644 ts-parser/test-repo/src/services/UserService.ts create mode 100644 ts-parser/test-repo/src/services/api.ts create mode 100644 ts-parser/test-repo/src/test/index.test.ts create mode 100644 ts-parser/test-repo/src/utils/Logger.ts create mode 100644 ts-parser/test-repo/src/utils/Validation.ts create mode 100644 ts-parser/test-repo/src/utils/calculator.ts create mode 100644 ts-parser/test-repo/src/utils/constants.ts create mode 100644 ts-parser/test-repo/tsconfig.json create mode 100644 ts-parser/tsconfig.json diff --git a/.gitignore b/.gitignore index 2ea9b81..89d64fa 100644 --- a/.gitignore +++ b/.gitignore @@ -74,8 +74,9 @@ testdata/jsons src/lang/testdata *.json +!ts-parser/**/*.json tools abcoder -!testdata/asts/*.json +!testdata/asts/*.json \ No newline at end of file diff --git a/ts-parser/.gitignore b/ts-parser/.gitignore new file mode 100644 index 0000000..0b728bd --- /dev/null +++ b/ts-parser/.gitignore @@ -0,0 +1,9 @@ +node_modules/ + +dist/ + +.vscode/ + +temp/ + +output.json \ No newline at end of file diff --git a/ts-parser/README.md b/ts-parser/README.md new file mode 100644 index 0000000..9c9d349 --- /dev/null +++ b/ts-parser/README.md @@ -0,0 +1,43 @@ +# TypeScript Parser for ABCoder + +A TypeScript AST parser that extracts method calls, variable references, and dependencies. + +Usage: + +Build: `npm run build` + +Run: `node dist/index.js parse [options] ` + +Parse a TypeScript repository and generate UNIAST JSON + +Arguments: + directory Directory to parse + + +| Option | Description | +|--------|-------------| +| -o, --output | Output file path (default: "output.json") | +| -t, --tsconfig | Path to tsconfig.json file, if you provide a relative path, it will be relative to **the directory of the input file** (default: "tsconfig.json") | +| -h, --help | display help for command | + + +See `./index.ts` for more information. + + +## Notes + +1. MUST correctly specify the location of the current project's `tsconfig.json`. + +2. If you provide a relative path to argument `--tsconfig`, it will be relative to **the directory of the input file**. + +3. Before usage, please configure the dependencies for your TypeScript project, such as running npm install and setting up cross-package dependencies in monorepo. + +4. If the repository you're analyzing is too large, you may need to adjust Node.js's maximum memory allocation. + + +## Some known issues + +- When there is a circular dependency, the parser will choose one of the dependencies as the main dependency. +- The parser does not handle dynamic imports. +- The parser does not handle TypeScript decorators. +- For external symbol which has no `.d.ts` declaration file, the parser will not be able to resolve the symbol. \ No newline at end of file diff --git a/ts-parser/package-lock.json b/ts-parser/package-lock.json new file mode 100644 index 0000000..f7461ec --- /dev/null +++ b/ts-parser/package-lock.json @@ -0,0 +1,5378 @@ +{ + "name": "abcoder-ts-parser", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "abcoder-ts-parser", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "commander": "^11.0.0", + "json5": "^2.2.3", + "ts-morph": "^23.0.0" + }, + "devDependencies": { + "@types/jest": "^29.0.0", + "@types/json5": "^2.2.0", + "@types/node": "^20.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "eslint": "^8.0.0", + "jest": "^29.0.0", + "ts-jest": "^29.0.0", + "ts-node": "^10.9.0", + "typescript": "^5.0.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/core/-/core-7.28.3.tgz", + "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.3", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helpers/-/helpers-7.28.3.tgz", + "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.2", + "resolved": "https://bnpm.byted.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://bnpm.byted.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.8.1", + "resolved": "https://bnpm.byted.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", + "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "0.3.9" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { + "version": "0.3.9", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", + "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.7.0", + "resolved": "https://bnpm.byted.org/@eslint-community/eslint-utils/-/eslint-utils-4.7.0.tgz", + "integrity": "sha512-dyybb3AcajC7uha6CvhdVRJqaKyn7w2YKqKyAN37NKYgZT36w+iRb0Dymmc5qEJ549c/S31cMMSFd75bteCpCw==", + "dev": true, + "license": "MIT", + "dependencies": { + "eslint-visitor-keys": "^3.4.3" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + }, + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" + } + }, + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://bnpm.byted.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" + } + }, + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://bnpm.byted.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@eslint/eslintrc/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://bnpm.byted.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://bnpm.byted.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" + }, + "engines": { + "node": ">=10.10.0" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/@humanwhocodes/config-array/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=12.22" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/nzakas" + } + }, + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "license": "MIT", + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://bnpm.byted.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://bnpm.byted.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://bnpm.byted.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://bnpm.byted.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://bnpm.byted.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@ts-morph/common": { + "version": "0.24.0", + "resolved": "https://bnpm.byted.org/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", + "license": "MIT", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.11", + "resolved": "https://bnpm.byted.org/@tsconfig/node10/-/node10-1.0.11.tgz", + "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.11", + "resolved": "https://bnpm.byted.org/@tsconfig/node12/-/node12-1.0.11.tgz", + "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/@tsconfig/node14/-/node14-1.0.3.tgz", + "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.4", + "resolved": "https://bnpm.byted.org/@tsconfig/node16/-/node16-1.0.4.tgz", + "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://bnpm.byted.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://bnpm.byted.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://bnpm.byted.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://bnpm.byted.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://bnpm.byted.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://bnpm.byted.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/json-schema": { + "version": "7.0.15", + "resolved": "https://bnpm.byted.org/@types/json-schema/-/json-schema-7.0.15.tgz", + "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/json5": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/@types/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-NrVug5woqbvNZ0WX+Gv4R+L4TGddtmFek2u8RtccAgFZWtS9QXF2xCXY22/M4nzkaKF0q9Fc6M/5rxLDhfwc/A==", + "deprecated": "This is a stub types definition. json5 provides its own type definitions, so you do not need this installed.", + "dev": true, + "dependencies": { + "json5": "*" + } + }, + "node_modules/@types/node": { + "version": "20.19.11", + "resolved": "https://bnpm.byted.org/@types/node/-/node-20.19.11.tgz", + "integrity": "sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/semver": { + "version": "7.7.0", + "resolved": "https://bnpm.byted.org/@types/semver/-/semver-7.7.0.tgz", + "integrity": "sha512-k107IF4+Xr7UHjwDc7Cfd6PRQfbdkiRabXGRjo07b4WyPahFBZCZ1sE+BNxYIJPPg73UkfOsVOLwqVc/6ETrIA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://bnpm.byted.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://bnpm.byted.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-6.21.0.tgz", + "integrity": "sha512-oy9+hTPCUFpngkEZUSzbf9MxI65wbKFoQYsgPdILTfbUldp5ovUuphZVe4i30emU9M/kP+T64Di0mxl7dSw3MA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/regexpp": "^4.5.1", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/type-utils": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "graphemer": "^1.4.0", + "ignore": "^5.2.4", + "natural-compare": "^1.4.0", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^6.0.0 || ^6.0.0-alpha", + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/parser": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/parser/-/parser-6.21.0.tgz", + "integrity": "sha512-tbsV1jPne5CkFQCgPBcDOt30ItF7aJoZL997JSF7MhGQqOeT3svWRYxiqlfA5RUdlHN6Fi+EI9bxqbdyAUZjYQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/scope-manager": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/scope-manager/-/scope-manager-6.21.0.tgz", + "integrity": "sha512-OwLUIWZJry80O99zvqXVEioyniJMa+d2GrqpUTqi5/v5D5rOrppJVBPa0yKCblcigC0/aYAzxxqQ1B+DS2RYsg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/type-utils": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/type-utils/-/type-utils-6.21.0.tgz", + "integrity": "sha512-rZQI7wHfao8qMX3Rd3xqeYSMCL3SoiSQLBATSiVKARdFGCYSRvmViieZjqc58jKgs8Y8i9YvVVhRbHSTA4VBag==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/typescript-estree": "6.21.0", + "@typescript-eslint/utils": "6.21.0", + "debug": "^4.3.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/types": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/types/-/types-6.21.0.tgz", + "integrity": "sha512-1kFmZ1rOm5epu9NZEZm1kckCDGj5UJEf7P1kliH4LKu/RkwpsfqqGmY2OOcUs18lSlQBKLDYBOGxRVtrMN5lpg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@typescript-eslint/typescript-estree": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/typescript-estree/-/typescript-estree-6.21.0.tgz", + "integrity": "sha512-6npJTkZcO+y2/kr+z0hc4HwNfrrP4kNYh57ek7yCNlrBjWQ1Y0OS7jiZTkgumrvkX5HkEKXFZkkdFNkaW2wmUQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/visitor-keys": "6.21.0", + "debug": "^4.3.4", + "globby": "^11.1.0", + "is-glob": "^4.0.3", + "minimatch": "9.0.3", + "semver": "^7.5.4", + "ts-api-utils": "^1.0.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, + "node_modules/@typescript-eslint/utils": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/utils/-/utils-6.21.0.tgz", + "integrity": "sha512-NfWVaC8HP9T8cbKQxHcsJBY5YE1O33+jpMwN45qzWWaPDZgLIbo12toGMWnmhvCpd3sIxkpDw3Wv1B3dYrbDQQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.4.0", + "@types/json-schema": "^7.0.12", + "@types/semver": "^7.5.0", + "@typescript-eslint/scope-manager": "6.21.0", + "@typescript-eslint/types": "6.21.0", + "@typescript-eslint/typescript-estree": "6.21.0", + "semver": "^7.5.4" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^7.0.0 || ^8.0.0" + } + }, + "node_modules/@typescript-eslint/visitor-keys": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/@typescript-eslint/visitor-keys/-/visitor-keys-6.21.0.tgz", + "integrity": "sha512-JJtkDduxLi9bivAB+cYOVMtbkqdPOhZ+ZI5LC47MIRrDV4Yn2o+ZnW10Nkmr28xRpSpdJ6Sm42Hjf2+REYXm0A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@typescript-eslint/types": "6.21.0", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^16.0.0 || >=18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + } + }, + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://bnpm.byted.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", + "dev": true, + "license": "ISC" + }, + "node_modules/acorn": { + "version": "8.15.0", + "resolved": "https://bnpm.byted.org/acorn/-/acorn-8.15.0.tgz", + "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==", + "dev": true, + "license": "MIT", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://bnpm.byted.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.3.4", + "resolved": "https://bnpm.byted.org/acorn-walk/-/acorn-walk-8.3.4.tgz", + "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "acorn": "^8.11.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://bnpm.byted.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://bnpm.byted.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-escapes/node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://bnpm.byted.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true, + "license": "MIT" + }, + "node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://bnpm.byted.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "license": "MIT", + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.25.2", + "resolved": "https://bnpm.byted.org/browserslist/-/browserslist-4.25.2.tgz", + "integrity": "sha512-0si2SJK3ooGzIawRu61ZdPCO1IncZwS8IzuX73sPZsXW6EQ/w/DAfPyKI8l1ETTCr2MnvqWitmlCUxgdul45jA==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "caniuse-lite": "^1.0.30001733", + "electron-to-chromium": "^1.5.199", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://bnpm.byted.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "license": "MIT", + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001735", + "resolved": "https://bnpm.byted.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz", + "integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://bnpm.byted.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://bnpm.byted.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://bnpm.byted.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "license": "MIT", + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://bnpm.byted.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==", + "license": "MIT" + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/commander": { + "version": "11.1.0", + "resolved": "https://bnpm.byted.org/commander/-/commander-11.1.0.tgz", + "integrity": "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true, + "license": "MIT" + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://bnpm.byted.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/doctrine": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/doctrine/-/doctrine-3.0.0.tgz", + "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "esutils": "^2.0.2" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.203", + "resolved": "https://bnpm.byted.org/electron-to-chromium/-/electron-to-chromium-1.5.203.tgz", + "integrity": "sha512-uz4i0vLhfm6dLZWbz/iH88KNDV+ivj5+2SA+utpgjKaj9Q0iDLuwk6Idhe9BTxciHudyx6IvTvijhkPvFGUQ0g==", + "dev": true, + "license": "ISC" + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://bnpm.byted.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://bnpm.byted.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/eslint": { + "version": "8.57.1", + "resolved": "https://bnpm.byted.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", + "dev": true, + "license": "MIT", + "dependencies": { + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", + "@humanwhocodes/module-importer": "^1.0.1", + "@nodelib/fs.walk": "^1.2.8", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", + "chalk": "^4.0.0", + "cross-spawn": "^7.0.2", + "debug": "^4.3.2", + "doctrine": "^3.0.0", + "escape-string-regexp": "^4.0.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", + "esutils": "^2.0.2", + "fast-deep-equal": "^3.1.3", + "file-entry-cache": "^6.0.1", + "find-up": "^5.0.0", + "glob-parent": "^6.0.2", + "globals": "^13.19.0", + "graphemer": "^1.4.0", + "ignore": "^5.2.0", + "imurmurhash": "^0.1.4", + "is-glob": "^4.0.0", + "is-path-inside": "^3.0.3", + "js-yaml": "^4.1.0", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.4.1", + "lodash.merge": "^4.6.2", + "minimatch": "^3.1.2", + "natural-compare": "^1.4.0", + "optionator": "^0.9.3", + "strip-ansi": "^6.0.1", + "text-table": "^0.2.0" + }, + "bin": { + "eslint": "bin/eslint.js" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-scope": { + "version": "7.2.2", + "resolved": "https://bnpm.byted.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "esrecurse": "^4.3.0", + "estraverse": "^5.2.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://bnpm.byted.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/eslint/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/eslint/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://bnpm.byted.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/esquery": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "estraverse": "^5.1.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/esrecurse": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/esrecurse/-/esrecurse-4.3.0.tgz", + "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "estraverse": "^5.2.0" + }, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://bnpm.byted.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=4.0" + } + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "license": "MIT", + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://bnpm.byted.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://bnpm.byted.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "license": "MIT", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-glob/node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true, + "license": "MIT" + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://bnpm.byted.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "license": "ISC", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/file-entry-cache": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", + "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==", + "dev": true, + "license": "MIT", + "dependencies": { + "flat-cache": "^3.0.4" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-5.0.0.tgz", + "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^6.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/flat-cache": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/flat-cache/-/flat-cache-3.2.0.tgz", + "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "flatted": "^3.2.9", + "keyv": "^4.5.3", + "rimraf": "^3.0.2" + }, + "engines": { + "node": "^10.12.0 || >=12.0.0" + } + }, + "node_modules/flatted": { + "version": "3.3.3", + "resolved": "https://bnpm.byted.org/flatted/-/flatted-3.3.3.tgz", + "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==", + "dev": true, + "license": "ISC" + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true, + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://bnpm.byted.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "6.0.2", + "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-6.0.2.tgz", + "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/glob/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/glob/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/globals": { + "version": "13.24.0", + "resolved": "https://bnpm.byted.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "type-fest": "^0.20.2" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/globby": { + "version": "11.1.0", + "resolved": "https://bnpm.byted.org/globby/-/globby-11.1.0.tgz", + "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.2.9", + "ignore": "^5.2.0", + "merge2": "^1.4.1", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://bnpm.byted.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", + "dev": true, + "license": "MIT" + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://bnpm.byted.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true, + "license": "MIT" + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://bnpm.byted.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/import-fresh": { + "version": "3.3.1", + "resolved": "https://bnpm.byted.org/import-fresh/-/import-fresh-3.3.1.tgz", + "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "parent-module": "^1.0.0", + "resolve-from": "^4.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "license": "MIT", + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://bnpm.byted.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://bnpm.byted.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://bnpm.byted.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-path-inside": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/is-path-inside/-/is-path-inside-3.0.3.tgz", + "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.7", + "resolved": "https://bnpm.byted.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "license": "MIT", + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "license": "MIT", + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "license": "MIT", + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "license": "MIT", + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-buffer": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/json-buffer/-/json-buffer-3.0.1.tgz", + "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://bnpm.byted.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", + "dev": true, + "license": "MIT" + }, + "node_modules/json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", + "dev": true, + "license": "MIT" + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://bnpm.byted.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/keyv": { + "version": "4.5.4", + "resolved": "https://bnpm.byted.org/keyv/-/keyv-4.5.4.tgz", + "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", + "dev": true, + "license": "MIT", + "dependencies": { + "json-buffer": "3.0.1" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.4.1", + "resolved": "https://bnpm.byted.org/levn/-/levn-0.4.1.tgz", + "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1", + "type-check": "~0.4.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://bnpm.byted.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true, + "license": "MIT" + }, + "node_modules/locate-path": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-6.0.0.tgz", + "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^5.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true, + "license": "MIT" + }, + "node_modules/lodash.merge": { + "version": "4.6.2", + "resolved": "https://bnpm.byted.org/lodash.merge/-/lodash.merge-4.6.2.tgz", + "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://bnpm.byted.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true, + "license": "ISC" + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://bnpm.byted.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true, + "license": "MIT" + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://bnpm.byted.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "license": "MIT", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "9.0.3", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-9.0.3.tgz", + "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "license": "MIT", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true, + "license": "MIT" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://bnpm.byted.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://bnpm.byted.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true, + "license": "MIT" + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://bnpm.byted.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-5.0.0.tgz", + "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^3.0.2" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/parent-module": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/parent-module/-/parent-module-1.0.1.tgz", + "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", + "dev": true, + "license": "MIT", + "dependencies": { + "callsites": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", + "license": "MIT" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://bnpm.byted.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true, + "license": "MIT" + }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://bnpm.byted.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "license": "MIT", + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pkg-dir/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/pkg-dir/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.2.1", + "resolved": "https://bnpm.byted.org/prelude-ls/-/prelude-ls-1.2.1.tgz", + "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://bnpm.byted.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://bnpm.byted.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://bnpm.byted.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://bnpm.byted.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-cwd/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-4.0.0.tgz", + "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "license": "MIT", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://bnpm.byted.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true, + "license": "MIT" + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://bnpm.byted.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://bnpm.byted.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "license": "ISC", + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/test-exclude/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/test-exclude/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/text-table": { + "version": "0.2.0", + "resolved": "https://bnpm.byted.org/text-table/-/text-table-0.2.0.tgz", + "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", + "dev": true, + "license": "MIT" + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true, + "license": "BSD-3-Clause" + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-api-utils": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz", + "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "typescript": ">=4.2.0" + } + }, + "node_modules/ts-jest": { + "version": "29.4.1", + "resolved": "https://bnpm.byted.org/ts-jest/-/ts-jest-29.4.1.tgz", + "integrity": "sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw==", + "dev": true, + "license": "MIT", + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.2", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ts-morph": { + "version": "23.0.0", + "resolved": "https://bnpm.byted.org/ts-morph/-/ts-morph-23.0.0.tgz", + "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", + "license": "MIT", + "dependencies": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "node_modules/ts-node": { + "version": "10.9.2", + "resolved": "https://bnpm.byted.org/ts-node/-/ts-node-10.9.2.tgz", + "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@cspotcode/source-map-support": "^0.8.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.1", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/type-check": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/type-check/-/type-check-0.4.0.tgz", + "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", + "dev": true, + "license": "MIT", + "dependencies": { + "prelude-ls": "^1.2.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://bnpm.byted.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dev": true, + "license": "BSD-2-Clause", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", + "dev": true, + "license": "MIT" + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://bnpm.byted.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://bnpm.byted.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://bnpm.byted.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://bnpm.byted.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://bnpm.byted.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + } + } +} diff --git a/ts-parser/package.json b/ts-parser/package.json new file mode 100644 index 0000000..b85e0c2 --- /dev/null +++ b/ts-parser/package.json @@ -0,0 +1,42 @@ +{ + "name": "abcoder-ts-parser", + "version": "1.0.0", + "description": "TypeScript AST parser for UNIAST v0.1.3 specification", + "main": "dist/index.js", + "types": "dist/index.d.ts", + "scripts": { + "build": "tsc", + "dev": "ts-node src/index.ts", + "start": "node dist/index.js", + "clean": "rm -rf dist", + "test": "jest", + "lint": "eslint src/**/*.ts", + "lint:fix": "eslint src/**/*.ts --fix", + "typecheck": "tsc --noEmit" + }, + "keywords": [ + "typescript", + "ast", + "parser", + "uniast" + ], + "author": "", + "license": "MIT", + "dependencies": { + "commander": "^11.0.0", + "json5": "^2.2.3", + "ts-morph": "^23.0.0" + }, + "devDependencies": { + "@types/jest": "^29.0.0", + "@types/json5": "^2.2.0", + "@types/node": "^20.0.0", + "@typescript-eslint/eslint-plugin": "^6.0.0", + "@typescript-eslint/parser": "^6.0.0", + "eslint": "^8.0.0", + "jest": "^29.0.0", + "ts-jest": "^29.0.0", + "ts-node": "^10.9.0", + "typescript": "^5.0.0" + } +} diff --git a/ts-parser/src/index.ts b/ts-parser/src/index.ts new file mode 100644 index 0000000..d198719 --- /dev/null +++ b/ts-parser/src/index.ts @@ -0,0 +1,59 @@ +#!/usr/bin/env node + +import { Command } from 'commander'; +import * as path from 'path'; +import { RepositoryParser } from './parser/RepositoryParser'; +import * as fs from 'fs'; + +const program = new Command(); + +program + .name('abcoder-ts-parser') + .description('TypeScript AST parser for UNIAST v0.1.3 specification') + .version('1.0.0'); + +program + .command('parse') + .description('Parse a TypeScript repository and generate UNIAST JSON') + .argument('', 'Directory to parse') + .option('-o, --output ', 'Output file path', 'output.json') + .option('-t, --tsconfig ', 'Path to tsconfig.json file (relative to project root if not absolute)') + .option('--no-dist', 'Ignore dist folder and its contents', false) + .option('--pretty', 'Pretty print JSON output', false) + .action(async (directory, options) => { + try { + const repoPath = path.resolve(directory); + + if (!fs.existsSync(repoPath)) { + console.error(`Error: Directory ${repoPath} does not exist`); + process.exit(1); + } + + console.log(`Parsing TypeScript repository: ${repoPath}`); + + const parser = new RepositoryParser(repoPath, options.tsconfig); + const repository = await parser.parseRepository(repoPath, { + loadExternalSymbols: false, + noDist: options.noDist + }); + + const outputPath = path.resolve(options.output); + const jsonOutput = options.pretty + ? JSON.stringify(repository, null, 2) + : JSON.stringify(repository); + + fs.writeFileSync(outputPath, jsonOutput); + + console.log(`Successfully parsed repository`); + console.log(`Output written to: ${outputPath}`); + console.log(`Total modules: ${Object.keys(repository.Modules).length}`); + console.log(`Total symbols in graph: ${Object.keys(repository.Graph).length}`); + + } catch (error) { + console.error('Error parsing repository:', error); + process.exit(1); + } + }); + + +program.parse(); \ No newline at end of file diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts new file mode 100644 index 0000000..17e9d24 --- /dev/null +++ b/ts-parser/src/parser/FunctionParser.ts @@ -0,0 +1,655 @@ +import { + Project, + SourceFile, + FunctionDeclaration, + MethodDeclaration, + ConstructorDeclaration, + ArrowFunction, + FunctionExpression, + MethodSignature, + Node, + SyntaxKind, + ParameterDeclaration, + PropertyAccessExpression, + VariableDeclaration +} from 'ts-morph'; +import { Function as UniFunction, Dependency, Receiver } from '../types/uniast'; +import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; +import { PathUtils } from '../utils/path-utils'; +import { TypeUtils } from '../utils/type-utils'; +import { DependencyUtils } from '../utils/dependency-utils'; + +export class FunctionParser { + private project: Project; + private symbolResolver: SymbolResolver; + private projectRoot: string; + private pathUtils: PathUtils; + private dependencyUtils: DependencyUtils; + + constructor(project: Project, projectRoot: string) { + this.project = project; + this.symbolResolver = new SymbolResolver(project, projectRoot); + this.projectRoot = projectRoot; + this.pathUtils = new PathUtils(projectRoot); + this.dependencyUtils = new DependencyUtils(this.symbolResolver, projectRoot); + } + + parseFunctions(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { + const functions: Record = {}; + + // Parse function declarations + const functionDeclarations = sourceFile.getFunctions(); + for (const func of functionDeclarations) { + const funcObj = this.parseFunction(func, moduleName, packagePath, sourceFile); + functions[funcObj.Name] = funcObj; + } + + // Parse method declarations in classes + const classes = sourceFile.getClasses(); + for (const cls of classes) { + let sym = cls.getSymbol(); + let className = "" + if (sym) { + className = assignSymbolName(sym) + } else { + className = "anonymous_" + cls.getStart() + } + const methods = cls.getMethods(); + + for (const method of methods) { + const methodObj = this.parseMethod(method, moduleName, packagePath, sourceFile, className); + functions[methodObj.Name] = methodObj; + } + + // Parse constructors + const constructors = cls.getConstructors(); + for (const ctor of constructors) { + const ctorObj = this.parseConstructor(ctor, moduleName, packagePath, sourceFile, className); + functions[ctorObj.Name] = ctorObj; + } + + // Parse static methods + const staticMethods = cls.getStaticMethods(); + for (const staticMethod of staticMethods) { + const methodObj = this.parseMethod(staticMethod, moduleName, packagePath, sourceFile, className); + functions[methodObj.Name] = methodObj; + } + } + + // Parse arrow functions assigned to variables + const variableDeclarations = sourceFile.getVariableDeclarations(); + for (const varDecl of variableDeclarations) { + const initializer = varDecl.getInitializer(); + if (initializer && (Node.isArrowFunction(initializer) || Node.isFunctionExpression(initializer))) { + let sym = varDecl.getSymbol() + let funcName = "" + if (sym) { + funcName = assignSymbolName(sym) + } else { + funcName = "anonymous_" + varDecl.getStart() + } + const funcObj = this.parseArrowFunction(initializer, funcName, moduleName, packagePath, sourceFile, varDecl); + functions[funcObj.Name] = funcObj; + } + } + + // Parse interface methods + const interfaces = sourceFile.getInterfaces(); + for (const iface of interfaces) { + const methods = iface.getMethods(); + + for (const method of methods) { + const methodObj = this.parseInterfaceMethod(method, moduleName, packagePath, sourceFile); + functions[methodObj.Name] = methodObj; + } + } + + return functions; + } + + private parseFunction(func: FunctionDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniFunction { + let symbol = func.getSymbol(); + let name = 'anonymous_' + func.getStart(); + if (symbol) { + name = assignSymbolName(symbol) + } + const startLine = func.getStartLineNumber(); + const startOffset = func.getStart(); + const endOffset = func.getEnd(); + const content = func.getFullText(); + const signature = this.extractSignature(func); + const isExported = func.isExported() || func.isDefaultExport(); + + // Parse parameters + const params = this.parseParameters(func.getParameters(), moduleName, packagePath, sourceFile); + + // Parse return types + const results = this.parseReturnTypes(func, moduleName, packagePath, sourceFile); + + // Parse function calls + const functionCalls = this.extractFunctionCalls(func, moduleName, packagePath, sourceFile); + const methodCalls = this.extractMethodCalls(func, moduleName, packagePath, sourceFile); + + // Extract type references and global variables from function body + const types = this.extractTypeReferences(func, moduleName, packagePath, sourceFile); + const globalVars = this.extractGlobalVarReferences(func, moduleName, packagePath, sourceFile); + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + IsMethod: false, + IsInterfaceMethod: false, + Content: content, + Signature: signature, + Params: params, + Results: results, + FunctionCalls: functionCalls, + MethodCalls: methodCalls, + Types: types, + GlobalVars: globalVars + }; + } + + private parseMethod(method: MethodDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, className: string): UniFunction { + let symbol = method.getSymbol(); + + let methodName = "" + if (symbol) { + methodName = assignSymbolName(symbol) + } else { + methodName = "anonymous_" + method.getStart() + } + const startLine = method.getStartLineNumber(); + const startOffset = method.getStart(); + const endOffset = method.getEnd(); + const content = method.getFullText(); + const signature = this.extractSignature(method); + + const parent = method.getParent(); + let isExported = false; + if (Node.isClassDeclaration(parent)) { + isExported = parent.isExported() || parent.isDefaultExport(); + } + + // Parse receiver + const receiver: Receiver = { + IsPointer: false, + Type: { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: className + } + }; + + // Parse parameters + const params = this.parseParameters(method.getParameters(), moduleName, packagePath, sourceFile); + + // Parse function calls + const functionCalls = this.extractFunctionCalls(method, moduleName, packagePath, sourceFile); + const methodCalls = this.extractMethodCalls(method, moduleName, packagePath, sourceFile); + + // Extract type references and global variables from method body + const types = this.extractTypeReferences(method, moduleName, packagePath, sourceFile); + const globalVars = this.extractGlobalVarReferences(method, moduleName, packagePath, sourceFile); + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: methodName, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + IsMethod: true, + IsInterfaceMethod: false, + Content: content, + Signature: signature, + Receiver: receiver, + Params: params, + Results: [], + FunctionCalls: functionCalls, + MethodCalls: methodCalls, + Types: types, + GlobalVars: globalVars + }; + } + + private parseInterfaceMethod(method: MethodSignature, moduleName: string, packagePath: string, sourceFile: SourceFile): UniFunction { + let symbol = method.getSymbol(); + let methodName = "" + if (symbol) { + methodName = assignSymbolName(symbol) + } else { + methodName = "anonymous_" + method.getStart() + } + const startLine = method.getStartLineNumber(); + const startOffset = method.getStart(); + const endOffset = method.getEnd(); + const content = method.getFullText(); + const signature = method.getText(); + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: methodName, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: true, + IsMethod: true, + IsInterfaceMethod: true, + Content: content, + Signature: signature, + Params: [], + Results: [], + FunctionCalls: [], + MethodCalls: [], + Types: [], + GlobalVars: [] + }; + } + + private parseConstructor(ctor: ConstructorDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, className: string): UniFunction { + let symbol = ctor.getSymbol(); + let name = "" + if (symbol) { + name = assignSymbolName(symbol) + } else { + name = `${className}.constructor_` + ctor.getStart(); + } + const startLine = ctor.getStartLineNumber(); + const startOffset = ctor.getStart(); + const endOffset = ctor.getEnd(); + const content = ctor.getFullText(); + const signature = this.extractSignature(ctor); + + const parent = ctor.getParent(); + let isExported = false; + if (Node.isClassDeclaration(parent)) { + isExported = parent.isExported() || parent.isDefaultExport(); + } + + // Parse parameters + const params = this.parseParameters(ctor.getParameters(), moduleName, packagePath, sourceFile); + + // Extract type references and global variables from constructor body + const types = this.extractTypeReferences(ctor, moduleName, packagePath, sourceFile); + const globalVars = this.extractGlobalVarReferences(ctor, moduleName, packagePath, sourceFile); + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + IsMethod: true, + IsInterfaceMethod: false, + Content: content, + Signature: signature, + Params: params, + Results: [], + FunctionCalls: [], + MethodCalls: [], + Types: types, + GlobalVars: globalVars + }; + } + + private parseArrowFunction(arrowFunc: ArrowFunction | FunctionExpression, name: string, moduleName: string, packagePath: string, sourceFile: SourceFile, varDecl: VariableDeclaration): UniFunction { + + + const startLine = arrowFunc.getStartLineNumber(); + const startOffset = arrowFunc.getStart(); + const endOffset = arrowFunc.getEnd(); + const content = varDecl.getVariableStatement()?.getFullText().trim() || arrowFunc.getFullText(); + const signature = this.extractSignature(arrowFunc); + + // Parse parameters + const params = this.parseParameters(arrowFunc.getParameters(), moduleName, packagePath, sourceFile); + + // Parse function calls + const functionCalls = this.extractFunctionCalls(arrowFunc, moduleName, packagePath, sourceFile); + const methodCalls = this.extractMethodCalls(arrowFunc, moduleName, packagePath, sourceFile); + + // Extract type references and global variables from arrow function body + const types = this.extractTypeReferences(arrowFunc, moduleName, packagePath, sourceFile); + const globalVars = this.extractGlobalVarReferences(arrowFunc, moduleName, packagePath, sourceFile); + + // Determine export status from the variable declaration + const parent = varDecl.getVariableStatement(); + const isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + IsMethod: false, + IsInterfaceMethod: false, + Content: content, + Signature: signature, + Params: params, + Results: [], + FunctionCalls: functionCalls, + MethodCalls: methodCalls, + Types: types, + GlobalVars: globalVars + }; + } + + // TODO: parse parameters + private parseParameters(parameters: ParameterDeclaration[], moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + const dependencies: Dependency[] = []; + + return dependencies; + } + + // TODO: parse return types + private parseReturnTypes(func: FunctionDeclaration | MethodSignature, moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + const results: Dependency[] = []; + return results; + } + + private extractFunctionCalls( + node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + moduleName: string, + packagePath: string, + sourceFile: SourceFile + ): Dependency[] { + const calls: Dependency[] = []; + const visited = new Set(); + const callExpressions = node.getDescendantsOfKind(SyntaxKind.CallExpression); + + for (const callExpr of callExpressions) { + const expression = callExpr.getExpression(); + if (Node.isIdentifier(expression)) { + const symbol = expression.getSymbol(); + if (symbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + if (resolvedSymbol) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + } + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + resolvedSymbol.endOffset <= node.getEnd() && + resolvedSymbol.startOffset >= node.getStart() + ) continue + calls.push(dep); + } + } + } + } + } + return calls; + } + + private extractMethodCalls( + node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + moduleName: string, + packagePath: string, + sourceFile: SourceFile + ): Dependency[] { + const calls: Dependency[] = []; + const visited = new Set(); + + // Extract property access expressions + const propertyAccesses = node.getDescendantsOfKind(SyntaxKind.PropertyAccessExpression); + + for (const propAccess of propertyAccesses) { + // Check if this property access is part of a method call + const parent = propAccess.getParent(); + if (parent && Node.isCallExpression(parent) && parent.getExpression() === propAccess) { + this.processMethodCall(node, propAccess, moduleName, packagePath, sourceFile, calls, visited); + } + } + + return calls; + } + + private processMethodCall( + callerNode: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + propAccess: PropertyAccessExpression, + moduleName: string, + packagePath: string, + sourceFile: SourceFile, + calls: Dependency[], + visited: Set + ): void { + const methodSymbol = propAccess.getSymbol(); + + if (!methodSymbol) return; + + const resolvedSymbol = this.symbolResolver.resolveSymbol(methodSymbol); + if (!resolvedSymbol) return; + + // Handle method names like 'getX' -> 'getX' + let nameFormat = resolvedSymbol.name; + + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${nameFormat}`; + + if (!visited.has(key)) { + visited.add(key); + + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: nameFormat, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + } + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + resolvedSymbol.endOffset <= callerNode.getEnd() && + resolvedSymbol.startOffset >= callerNode.getStart() + ) return + + calls.push(dep); + } + } + + + private extractTypeReferences( + node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + moduleName: string, + packagePath: string, + sourceFile: SourceFile + ): Dependency[] { + const types: Dependency[] = []; + const visited = new Set(); + + // Extract from type references and find their definitions + const typeNodes = node.getDescendantsOfKind(SyntaxKind.Identifier); + + for (const typeNode of typeNodes) { + // Handle union and intersection types by extracting individual type references + const typeReferences = this.dependencyUtils.extractAtomicTypeReferences(typeNode); + + for (const typeRef of typeReferences) { + let typeName = typeRef.getText(); + if (this.isPrimitiveType(typeName)) continue; + + const symbol = typeRef.getSymbol(); + + if (symbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + typeName = resolvedSymbol.name + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${typeName}`; + if (!visited.has(key)) { + visited.add(key); + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + resolvedSymbol.endOffset <= node.getEnd() && + resolvedSymbol.startOffset >= node.getStart() + ) continue + types.push(dep); + } + } + } + } + } + + return types; + } + + private extractGlobalVarReferences( + node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + moduleName: string, + packagePath: string, + sourceFile: SourceFile + ): Dependency[] { + const body = node.getBody(); + if (!body) return []; + + const globalVars: Dependency[] = []; + const visited = new Set(); + + const identifiers = body.getDescendantsOfKind(SyntaxKind.Identifier); + + for (const identifier of identifiers) { + + // Skip function calls / constructor calls / property names + const parent = identifier.getParent(); + if ( + // Function calls / constructor calls / property names + (Node.isCallExpression(parent) && parent.getExpression() === identifier) || + (Node.isNewExpression(parent) && parent.getExpression() === identifier) || + + // Global variable references + (Node.isPropertyAccessExpression(parent) && parent.getNameNode() === identifier) || + + // Destructuring assignment 的 key + (Node.isBindingElement(parent) && parent.getPropertyNameNode() === identifier) || + + // Global variable assignments + (Node.isPropertyAssignment(parent) && parent.getNameNode() === identifier) || + (Node.isShorthandPropertyAssignment(parent) && parent.getNameNode() === identifier) + ) { + continue; + } + + const symbol = identifier.getSymbol(); + if (!symbol) continue; + + const declarations = symbol.getDeclarations(); + if (declarations.length === 0) continue; + + // if all declarations are in the current function scope, then it's a local variable (including closure capture), skip + const isLocal = declarations.every(d => { + return ( + d.getFirstAncestor(a => a === node) !== undefined || + Node.isCatchClause(d.getParent()) + ); + }); + if (isLocal) continue; + + // Skip built-in symbols + const isBuiltIn = declarations.some(d => { + const sf = d.getSourceFile(); + return sf.isFromExternalLibrary() || sf.isDeclarationFile() || sf.getFilePath().includes("lib."); + }); + if (isBuiltIn) continue; + + let varName = identifier.getText(); + if (this.isPrimitiveType(varName)) continue; + + // Use symbol resolver + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + varName = resolvedSymbol.name + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${varName}`; + if (!visited.has(key)) { + visited.add(key); + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset, + }; + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + resolvedSymbol.endOffset <= node.getEnd() && + resolvedSymbol.startOffset >= node.getStart() + ) continue + globalVars.push(dep); + } + } + } + return globalVars; + } + + private isPrimitiveType(typeName: string): boolean { + return TypeUtils.isPrimitiveType(typeName); + } + + private getRelativePath(filePath: string): string { + return this.pathUtils.getRelativePath(filePath); + } + + private getPkgPath(packagePath: string): string { + return this.pathUtils.getPkgPath(packagePath); + } + + private extractSignature( + node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression + ): string { + if (Node.isArrowFunction(node)) { + const equalsGreaterThanToken = node.getEqualsGreaterThan(); + const length = equalsGreaterThanToken.getEnd() - node.getStart(); + return node.getText().substring(0, length); + } + + const body = node.getBody(); + if (!body) { + return node.getText(); // For abstract methods or declarations without a body + } + + // For other function-like nodes, get text up to the body + const length = body.getStart() - node.getStart(); + return node.getText().substring(0, length).trim(); + } + +} \ No newline at end of file diff --git a/ts-parser/src/parser/ModuleParser.ts b/ts-parser/src/parser/ModuleParser.ts new file mode 100644 index 0000000..70e89a4 --- /dev/null +++ b/ts-parser/src/parser/ModuleParser.ts @@ -0,0 +1,141 @@ +import * as path from 'path'; +import * as fs from 'fs'; +import { Project, SourceFile, SyntaxKind } from 'ts-morph'; +import { Module, Package, Import } from '../types/uniast'; +import { PackageParser } from './PackageParser'; +import { TypeScriptStructureAnalyzer } from '../utils/typescript-structure'; +import { TsConfigCache } from '../utils/tsconfig-cache'; +import { PathUtils } from '../utils/path-utils'; +import * as JSON5 from 'json5'; + + +export class ModuleParser { + private project: Project; + private packageParser: PackageParser; + private tsConfigCache: TsConfigCache; + private projectRoot: string; + + constructor(project: Project, projectRoot: string) { + this.project = project; + this.projectRoot = projectRoot; + this.packageParser = new PackageParser(project, projectRoot); + this.tsConfigCache = TsConfigCache.getInstance(); + } + + async parseModule(modulePath: string, relativeDir: string, options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): Promise { + const packageJsonPath = path.join(modulePath, 'package.json'); + let packageJson: any = {}; + + if (fs.existsSync(packageJsonPath)) { + try { + packageJson = JSON5.parse(fs.readFileSync(packageJsonPath, 'utf8')); + } catch (error) { + console.warn(`Failed to parse package.json at ${packageJsonPath}:`, error); + } + } + + const moduleName = packageJson.name || path.basename(modulePath); + const moduleVersion = packageJson.version || '0.0.0'; + const isExternal = relativeDir === ''; + + // Analyze TypeScript structure + const analyzer = new TypeScriptStructureAnalyzer(modulePath); + const structure = analyzer.analyze({ + loadExternalSymbols: options.loadExternalSymbols, + noDist: options.noDist + }); + + // Parse packages + const packages: Record = {}; + + for (const [pkgPath, pkgInfo] of structure.packages) { + const packageObj = await this.packageParser.parsePackage( + pkgInfo.files.map(filePath => this.project.addSourceFileAtPath(filePath)), + moduleName, + pkgPath, + pkgInfo.isMain, + pkgInfo.isTest + ); + packages[pkgPath] = packageObj; + } + + // Build dependencies map + const dependencies: Record = {}; + if (packageJson.dependencies) { + Object.assign(dependencies, packageJson.dependencies); + } + if (packageJson.devDependencies) { + Object.assign(dependencies, packageJson.devDependencies); + } + if (packageJson.peerDependencies) { + Object.assign(dependencies, packageJson.peerDependencies); + } + + let pathUitl = new PathUtils(this.projectRoot) + + // Build files map with detailed import analysis + const files: Record = {}; + for (const [filePath, fileInfo] of structure.files) { + const sourceFile = this.project.addSourceFileAtPath(filePath); + const imports = this.extractImports(sourceFile, modulePath); + const relativeFilePath = pathUitl.getRelativePath(filePath); + + files[relativeFilePath] = { + Path: relativeFilePath, + Package: fileInfo.packagePath, + Imports: imports + }; + } + + return { + Language: '', // TypeScript + Version: moduleVersion, + Name: moduleName, + Dir: isExternal ? '' : relativeDir, + Packages: packages, + Dependencies: Object.keys(dependencies).length > 0 ? dependencies : undefined, + Files: Object.keys(files).length > 0 ? files : undefined + }; + } + + private extractImports(sourceFile: SourceFile, modulePath: string): Array<{ Path: string }> { + const imports: Array<{ Path: string }> = []; + const sourceFilePath = sourceFile.getFilePath(); + + // Cache path aliases for this module + const pathAliases = this.tsConfigCache.getPathAliases(modulePath); + + // Track unique import paths to avoid duplicates + const uniquePaths = new Set(); + + // Import declarations + const importDeclarations = sourceFile.getImportDeclarations(); + for (const importDecl of importDeclarations) { + const originalPath = importDecl.getModuleSpecifierValue(); + const resolvedPath = importDecl.getModuleSpecifierSourceFile()?.getFilePath(); + if (resolvedPath) { + let relativePath = path.relative(this.projectRoot, resolvedPath); + imports.push({ Path: relativePath }); + } else { + imports.push({ Path: "external:" + originalPath }); + } + } + + // Export declarations (re-exports) + const exportDeclarations = sourceFile.getExportDeclarations(); + for (const exportDecl of exportDeclarations) { + const originalPath = exportDecl.getModuleSpecifierValue(); + if (originalPath) { + const resolvedPath = exportDecl.getModuleSpecifierSourceFile()?.getFilePath(); + if (resolvedPath) { + let relativePath = path.relative(this.projectRoot, resolvedPath); + imports.push({ Path: relativePath }); + } else { + imports.push({ Path: "external:" + originalPath }); + } + } + } + return imports; + } + +} \ No newline at end of file diff --git a/ts-parser/src/parser/PackageParser.ts b/ts-parser/src/parser/PackageParser.ts new file mode 100644 index 0000000..ce30efb --- /dev/null +++ b/ts-parser/src/parser/PackageParser.ts @@ -0,0 +1,52 @@ +import { SourceFile, Project } from 'ts-morph'; +import { Package } from '../types/uniast'; +import { FunctionParser } from './FunctionParser'; +import { TypeParser } from './TypeParser'; +import { VarParser } from './VarParser'; + +export class PackageParser { + private functionParser: FunctionParser; + private typeParser: TypeParser; + private varParser: VarParser; + + constructor(project: Project, projectRoot: string) { + this.functionParser = new FunctionParser(project, projectRoot); + this.typeParser = new TypeParser(projectRoot); + this.varParser = new VarParser(project, projectRoot); + } + + async parsePackage( + sourceFiles: SourceFile[], + moduleName: string, + packagePath: string, + isMain: boolean, + isTest: boolean + ): Promise { + const functions: Record = {}; + const types: Record = {}; + const vars: Record = {}; + + for (const sourceFile of sourceFiles) { + // Parse functions + const fileFunctions = this.functionParser.parseFunctions(sourceFile, moduleName, packagePath); + Object.assign(functions, fileFunctions); + + // Parse types + const fileTypes = this.typeParser.parseTypes(sourceFile, moduleName, packagePath); + Object.assign(types, fileTypes); + + // Parse variables + const fileVars = this.varParser.parseVars(sourceFile, moduleName, packagePath); + Object.assign(vars, fileVars); + } + + return { + IsMain: isMain, + IsTest: isTest, + PkgPath: packagePath, + Functions: functions, + Types: types, + Vars: vars + }; + } +} \ No newline at end of file diff --git a/ts-parser/src/parser/RepositoryParser.ts b/ts-parser/src/parser/RepositoryParser.ts new file mode 100644 index 0000000..aa60a89 --- /dev/null +++ b/ts-parser/src/parser/RepositoryParser.ts @@ -0,0 +1,318 @@ +import { Project } from 'ts-morph'; +import * as path from 'path'; +import * as fs from 'fs'; +import { Repository, Node, Relation, Identity, Function, Type, Var } from '../types/uniast'; +import { ModuleParser } from './ModuleParser'; +import { TsConfigCache } from '../utils/tsconfig-cache'; + +export class RepositoryParser { + private project: Project; + private moduleParser: ModuleParser; + private tsConfigCache: TsConfigCache; + + constructor(projectRoot: string, tsConfigPath?: string) { + this.tsConfigCache = TsConfigCache.getInstance(); + + + + // 设置全局 tsconfig 路径(如果提供) + if (tsConfigPath) { + let absoluteTsConfigPath = tsConfigPath; + if (!path.isAbsolute(absoluteTsConfigPath)) { + absoluteTsConfigPath = path.join(projectRoot, absoluteTsConfigPath); + } + this.tsConfigCache.setGlobalConfigPath(absoluteTsConfigPath); + } + + // get current tsconfig path + const configPath = this.tsConfigCache.getCurrentConfigPath(projectRoot); + + if (fs.existsSync(configPath)) { + // if tsconfig.json exists, use it to configure the project + this.project = new Project({ + tsConfigFilePath: configPath, + compilerOptions: { + allowJs: true, + skipLibCheck: true, + forceConsistentCasingInFileNames: true + } + }); + } else { + // if tsconfig.json does not exist, use default configuration + this.project = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + checkJs: false, + skipLibCheck: true, + skipDefaultLibCheck: true, + strict: false, + noImplicitAny: false, + strictNullChecks: false, + strictFunctionTypes: false, + strictBindCallApply: false, + strictPropertyInitialization: false, + noImplicitReturns: false, + noFallthroughCasesInSwitch: false, + noUncheckedIndexedAccess: false, + noImplicitOverride: false, + noPropertyAccessFromIndexSignature: false, + allowUnusedLabels: false, + allowUnreachableCode: false, + exactOptionalPropertyTypes: false, + noImplicitThis: false, + alwaysStrict: false, + noImplicitUseStrict: false, + forceConsistentCasingInFileNames: true + } + }); + } + + this.moduleParser = new ModuleParser(this.project, projectRoot); + } + + /** + * get current tsconfig path + */ + public static getTsConfigPath(): string | null { + return TsConfigCache.getInstance().getCurrentConfigPath(''); + } + + async parseRepository(repoPath: string, options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): Promise { + const absolutePath = path.resolve(repoPath); + + const repository: Repository = { + ASTVersion: "v0.1.3", + id: path.basename(absolutePath), + Modules: {}, + Graph: {} + }; + + // Parse main module only + const mainModule = await this.moduleParser.parseModule(absolutePath, '.', options); + repository.Modules[mainModule.Name] = mainModule; + + // Build global symbol graph + this.buildGlobalGraph(repository); + + return repository; + } + + + private buildGlobalGraph(repository: Repository): void { + // First pass: Create all nodes from functions, types, and variables + for (const [moduleKey, module] of Object.entries(repository.Modules)) { + for (const [packageKey, pkg] of Object.entries(module.Packages)) { + // Add functions to graph + for (const [funcName, func] of Object.entries(pkg.Functions)) { + const nodeKey = this.createNodeKey(func.ModPath, func.PkgPath, func.Name); + const node: Node = { + ModPath: func.ModPath, + PkgPath: func.PkgPath, + Name: func.Name, + Type: 'FUNC' + }; + + // Add dependencies from function + node.Dependencies = this.extractDependenciesFromFunction(func, repository); + node.References = this.extractReferencesFromFunction(func, repository); + + repository.Graph[nodeKey] = node; + } + + // Add types to graph + for (const [typeName, type] of Object.entries(pkg.Types)) { + const nodeKey = this.createNodeKey(type.ModPath, type.PkgPath, type.Name); + const node: Node = { + ModPath: type.ModPath, + PkgPath: type.PkgPath, + Name: type.Name, + Type: 'TYPE' + }; + + // Add implements relationships + if (type.Implements && type.Implements.length > 0) { + node.Implements = type.Implements.map(impl => this.createRelation(impl, 'Implement')); + } + + repository.Graph[nodeKey] = node; + } + + // Add variables to graph + for (const [varName, variable] of Object.entries(pkg.Vars)) { + const nodeKey = this.createNodeKey(variable.ModPath, variable.PkgPath, variable.Name); + const node: Node = { + ModPath: variable.ModPath, + PkgPath: variable.PkgPath, + Name: variable.Name, + Type: 'VAR' + }; + + // Add dependencies from variable + if (variable.Dependencies && variable.Dependencies.length > 0) { + node.Dependencies = variable.Dependencies.map(dep => this.createRelation(dep, 'Dependency')); + } + + // Add groups from variable + if (variable.Groups && variable.Groups.length > 0) { + node.Groups = variable.Groups.map(group => this.createRelation(group, 'Group')); + } + + repository.Graph[nodeKey] = node; + } + } + } + + // Second pass: Add reverse relationships (References) + this.buildReverseRelationships(repository); + } + + private createNodeKey(modPath: string, pkgPath: string, name: string): string { + return `${modPath}?${pkgPath}#${name}`; + } + + private createRelation(identity: Identity, kind: Relation['Kind']): Relation { + return { + ModPath: identity.ModPath, + PkgPath: identity.PkgPath, + Name: identity.Name, + Kind: kind + }; + } + + private extractDependenciesFromFunction(func: Function, repository: Repository): Relation[] { + const dependencies: Relation[] = []; + + // Extract from function calls + if (func.FunctionCalls) { + for (const call of func.FunctionCalls) { + dependencies.push(this.createRelation(call, 'Dependency')); + } + } + + // Extract from method calls + if (func.MethodCalls) { + for (const call of func.MethodCalls) { + dependencies.push(this.createRelation(call, 'Dependency')); + } + } + + // Extract from types + if (func.Types) { + for (const type of func.Types) { + dependencies.push(this.createRelation(type, 'Dependency')); + } + } + + // Extract from global variables + if (func.GlobalVars) { + for (const globalVar of func.GlobalVars) { + dependencies.push(this.createRelation(globalVar, 'Dependency')); + } + } + + return dependencies; + } + + private extractReferencesFromFunction(func: Function, repository: Repository): Relation[] { + const references: Relation[] = []; + + // Extract from parameters + if (func.Params) { + for (const param of func.Params) { + references.push(this.createRelation(param, 'Dependency')); + } + } + + // Extract from results + if (func.Results) { + for (const result of func.Results) { + references.push(this.createRelation(result, 'Dependency')); + } + } + + return references; + } + + private buildReverseRelationships(repository: Repository): void { + // Build a map of all relations to create reverse references + const relationMap = new Map>(); + + // Collect all relations + for (const [nodeKey, node] of Object.entries(repository.Graph)) { + if (node.Dependencies) { + for (const dep of node.Dependencies) { + const targetKey = this.createNodeKey(dep.ModPath, dep.PkgPath, dep.Name); + if (!relationMap.has(targetKey)) { + relationMap.set(targetKey, new Map()); + } + if (!relationMap.get(targetKey)!.has(nodeKey)) { + relationMap.get(targetKey)!.set(nodeKey, []); + } + relationMap.get(targetKey)!.get(nodeKey)!.push(dep); + } + } + } + + // Add reverse references + for (const [targetKey, referringNodes] of relationMap) { + if (repository.Graph[targetKey]) { + const references: Relation[] = []; + for (const [sourceKey, relations] of referringNodes) { + for (const relation of relations) { + const sourceNode = repository.Graph[sourceKey]; + if (sourceNode) { + references.push({ + ModPath: sourceNode.ModPath, + PkgPath: sourceNode.PkgPath, + Name: sourceNode.Name, + Kind: 'Dependency' + }); + } else { + // Handle missing nodes with UNKNOWN type + references.push({ + ModPath: relation.ModPath, + PkgPath: relation.PkgPath, + Name: relation.Name, + Kind: 'Dependency' + }); + } + } + } + repository.Graph[targetKey].References = references; + } else { + // Create missing node with UNKNOWN type + const parts = targetKey.split(/[?#]/); + const modPath = parts[0]; + const pkgPath = parts[1]; + const name = parts[2]; + + const missingNode: Node = { + ModPath: modPath, + PkgPath: pkgPath, + Name: name, + Type: 'UNKNOWN' + }; + + // Add references to the missing node + const references: Relation[] = []; + for (const [sourceKey, relations] of referringNodes) { + for (const relation of relations) { + const sourceNode = repository.Graph[sourceKey]; + if (sourceNode) { + references.push({ + ModPath: sourceNode.ModPath, + PkgPath: sourceNode.PkgPath, + Name: sourceNode.Name, + Kind: 'Dependency' + }); + } + } + } + missingNode.References = references; + repository.Graph[targetKey] = missingNode; + } + } + } +} \ No newline at end of file diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts new file mode 100644 index 0000000..65ec31f --- /dev/null +++ b/ts-parser/src/parser/TypeParser.ts @@ -0,0 +1,440 @@ +import { + SourceFile, + ClassDeclaration, + InterfaceDeclaration, + TypeAliasDeclaration, + EnumDeclaration, + SyntaxKind, + TypeNode, + SymbolFlags, + ClassExpression +} from 'ts-morph'; +import { Type as UniType, Dependency } from '../types/uniast'; +import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; +import { PathUtils } from '../utils/path-utils'; +import { TypeUtils } from '../utils/type-utils'; + +export class TypeParser { + private symbolResolver: SymbolResolver; + private pathUtils: PathUtils; + + constructor(projectRoot: string) { + this.symbolResolver = new SymbolResolver(null as any, projectRoot); + this.pathUtils = new PathUtils(projectRoot); + } + + parseTypes(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { + const types: Record = {}; + + // Parse class declarations + const classes = sourceFile.getClasses(); + for (const cls of classes) { + const typeObj = this.parseClass(cls, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } + + // Parse class expressions (anonymous classes) + const classExpressions = sourceFile.getDescendantsOfKind(SyntaxKind.ClassExpression); + for (let i = 0; i < classExpressions.length; i++) { + const classExpr = classExpressions[i]; + const typeObj = this.parseClassExpression(classExpr, moduleName, packagePath, sourceFile, i); + types[typeObj.Name] = typeObj; + } + + // Parse interface declarations + const interfaces = sourceFile.getInterfaces(); + for (const iface of interfaces) { + const typeObj = this.parseInterface(iface, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } + + // Parse type alias declarations + const typeAliases = sourceFile.getTypeAliases(); + for (const typeAlias of typeAliases) { + const typeObj = this.parseTypeAlias(typeAlias, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } + + // Parse enum declarations + const enums = sourceFile.getEnums(); + for (const enumDecl of enums) { + const typeObj = this.parseEnum(enumDecl, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } + + return types; + } + + private parseClass(cls: ClassDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniType { + + const sym = cls.getSymbol(); + let name = cls.getName() || 'AnonymousClass'; + if (sym) { + name = assignSymbolName(sym); + } + const startLine = cls.getStartLineNumber(); + const startOffset = cls.getStart(); + const endOffset = cls.getEnd(); + const content = cls.getFullText(); + const isExported = cls.isExported() || cls.isDefaultExport(); + + // Parse methods + const methods: Record = {}; + const classMethods = cls.getMethods(); + for (const method of classMethods) { + const methodName = method.getName() || 'anonymous'; + methods[methodName] = { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: `${name}.${methodName}` + }; + } + + // Parse implemented interfaces and extended classes + const implementsInterfaces: Dependency[] = []; + const extendsClasses: Dependency[] = []; + + const heritageClauses = cls.getHeritageClauses(); + for (const clause of heritageClauses) { + const clauseType = clause.getToken(); + const typeNodes = clause.getTypeNodes(); + + for (const typeNode of typeNodes) { + const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); + if (clauseType === SyntaxKind.ImplementsKeyword) { + implementsInterfaces.push(...dependencies); + } else if (clauseType === SyntaxKind.ExtendsKeyword) { + extendsClasses.push(...dependencies); + } + } + } + + // Parse property types + const propertyTypes: Dependency[] = []; + const properties = cls.getProperties(); + for (const prop of properties) { + const propType = prop.getTypeNode(); + if (propType) { + const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); + propertyTypes.push(...typeDependencies); + } + } + + // Combine implements and extends into Implements, but filter out external symbols + const allImplements = [...implementsInterfaces, ...extendsClasses, ...propertyTypes]; + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + TypeKind: 'struct', + Content: content, + Methods: methods, + Implements: allImplements, + SubStruct: [], + InlineStruct: [] + }; + } + + private parseInterface(iface: InterfaceDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniType { + const sym = iface.getSymbol(); + let name = iface.getName() || 'AnonymousInterface'; + if (sym) { + name = assignSymbolName(sym); + } + const startLine = iface.getStartLineNumber(); + const startOffset = iface.getStart(); + const endOffset = iface.getEnd(); + const content = iface.getFullText(); + const isExported = iface.isExported() || iface.isDefaultExport(); + + // Parse methods + const methods: Record = {}; + const interfaceMethods = iface.getMethods(); + for (const method of interfaceMethods) { + const methodName = method.getName() || 'anonymous'; + methods[methodName] = { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: `${name}.${methodName}` + }; + } + + // Parse extended interfaces + const extendsInterfaces: Dependency[] = []; + const heritageClauses = iface.getHeritageClauses(); + for (const clause of heritageClauses) { + if (clause.getToken() === SyntaxKind.ExtendsKeyword) { + const typeNodes = clause.getTypeNodes(); + for (const typeNode of typeNodes) { + const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); + extendsInterfaces.push(...dependencies); + } + } + } + + // Parse property types + const propertyTypes: Dependency[] = []; + const properties = iface.getProperties(); + for (const prop of properties) { + const propType = prop.getTypeNode(); + if (propType) { + const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); + propertyTypes.push(...typeDependencies); + } + } + + // Parse method signatures + const methodTypes: Dependency[] = []; + const methodSignatures = iface.getMethods(); + for (const method of methodSignatures) { + const returnType = method.getReturnTypeNode(); + if (returnType) { + const typeDependencies = this.extractTypeDependencies(returnType, moduleName, packagePath); + methodTypes.push(...typeDependencies); + } + + const parameters = method.getParameters(); + for (const param of parameters) { + const paramType = param.getTypeNode(); + if (paramType) { + const typeDependencies = this.extractTypeDependencies(paramType, moduleName, packagePath); + methodTypes.push(...typeDependencies); + } + } + } + + // Combine extends interfaces and other dependencies into Implements, but filter out external symbols + const allImplements = [...extendsInterfaces, ...propertyTypes, ...methodTypes]; + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + TypeKind: 'interface', + Content: content, + Methods: methods, + Implements: allImplements, + SubStruct: [], + InlineStruct: [] + }; + } + + private parseTypeAlias(typeAlias: TypeAliasDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniType { + + const sym = typeAlias.getSymbol(); + let name = typeAlias.getName() || 'AnonymousTypeAlias'; + if (sym) { + name = assignSymbolName(sym); + } + const startLine = typeAlias.getStartLineNumber(); + const startOffset = typeAlias.getStart(); + const endOffset = typeAlias.getEnd(); + const content = typeAlias.getFullText(); + const isExported = typeAlias.isExported() || typeAlias.isDefaultExport(); + + // Extract type dependencies from the type alias + const typeDependencies: Dependency[] = []; + const typeNode = typeAlias.getTypeNode(); + if (typeNode) { + const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); + typeDependencies.push(...dependencies); + } + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + TypeKind: 'typedef', + Content: content, + Methods: {}, + Implements: typeDependencies, + SubStruct: [], + InlineStruct: [] + }; + } + + private parseEnum(enumDecl: EnumDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniType { + const sym = enumDecl.getSymbol(); + let name = enumDecl.getName() || 'AnonymousEnum'; + if (sym) { + name = assignSymbolName(sym); + } + const startLine = enumDecl.getStartLineNumber(); + const startOffset = enumDecl.getStart(); + const endOffset = enumDecl.getEnd(); + const content = enumDecl.getFullText(); + const isExported = enumDecl.isExported() || enumDecl.isDefaultExport(); + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: isExported, + TypeKind: 'enum', + Content: content, + Methods: {}, + Implements: [], + SubStruct: [], + InlineStruct: [] + }; + } + + /** + * Extract all type dependencies from a type expression + * This handles union types, intersection types, generics, arrays, etc. + * Uses SymbolResolver for consistent dependency resolution, similar to extractTypeReferences + */ + private extractTypeDependencies(typeNode: TypeNode, moduleName: string, packagePath: string): Dependency[] { + const dependencies: Dependency[] = []; + const visited = new Set(); + + // Extract from identifiers and find their definitions + const identifiers = typeNode.getDescendantsOfKind(SyntaxKind.Identifier); + + for (const identifier of identifiers) { + const symbol = identifier.getSymbol(); + if (!symbol || (symbol.getFlags() & (SymbolFlags.Type | SymbolFlags.TypeAlias | SymbolFlags.TypeLiteral)) === 0) { + continue; + } + + const typeName = identifier.getText(); + if (this.isPrimitiveType(typeName)) continue; + + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + // if symbol is not external, add it to dependencies + if (resolvedSymbol && !resolvedSymbol.isExternal) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + let dep : Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + typeNode.getStart() <= resolvedSymbol.startOffset && + resolvedSymbol.endOffset <= typeNode.getEnd() + ) continue; + dependencies.push(dep); + } + } + } + + return dependencies; + } + + + private isPrimitiveType(typeName: string): boolean { + return TypeUtils.isPrimitiveType(typeName); + } + + private getRelativePath(filePath: string): string { + return this.pathUtils.getRelativePath(filePath); + } + + private getPkgPath(packagePath: string): string { + return this.pathUtils.getPkgPath(packagePath); + } + + private parseClassExpression(classExpr: ClassExpression, moduleName: string, packagePath: string, sourceFile: SourceFile, index: number): UniType { + const sym = classExpr.getSymbol(); + let name = `AnonymousClass_${index}`; + if (sym) { + const symbolName = assignSymbolName(sym); + if (symbolName && symbolName !== 'AnonymousClass') { + name = symbolName; + } + } + + const startLine = classExpr.getStartLineNumber(); + const startOffset = classExpr.getStart(); + const endOffset = classExpr.getEnd(); + const content = classExpr.getFullText(); + + // Parse methods + const methods: Record = {}; + const classMethods = classExpr.getMethods(); + for (const method of classMethods) { + const methodName = method.getName() || 'anonymous'; + methods[methodName] = { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: `${name}.${methodName}` + }; + } + + // Parse implemented interfaces and extended classes + const implementsInterfaces: Dependency[] = []; + const extendsClasses: Dependency[] = []; + + const heritageClauses = classExpr.getHeritageClauses(); + for (const clause of heritageClauses) { + const clauseType = clause.getToken(); + const typeNodes = clause.getTypeNodes(); + + for (const typeNode of typeNodes) { + const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); + + if (clauseType === SyntaxKind.ImplementsKeyword) { + implementsInterfaces.push(...dependencies); + } else if (clauseType === SyntaxKind.ExtendsKeyword) { + extendsClasses.push(...dependencies); + } + } + } + + // Parse property types + const propertyTypes: Dependency[] = []; + const properties = classExpr.getProperties(); + for (const prop of properties) { + const propType = prop.getTypeNode(); + if (propType) { + const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); + propertyTypes.push(...typeDependencies); + } + } + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + Exported: false, // Anonymous classes are not exported + TypeKind: 'struct', + Content: content, + Methods: methods, + Implements: [...implementsInterfaces, ...extendsClasses, ...propertyTypes], + SubStruct: [], + InlineStruct: [] + }; + } +} \ No newline at end of file diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts new file mode 100644 index 0000000..01be82a --- /dev/null +++ b/ts-parser/src/parser/VarParser.ts @@ -0,0 +1,510 @@ +import { + SourceFile, + VariableDeclaration, + PropertyDeclaration, + EnumMember, + Node, + SyntaxKind, + Project, +} from 'ts-morph'; +import { Var as UniVar, Dependency } from '../types/uniast'; +import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; +import { PathUtils } from '../utils/path-utils'; + +export class VarParser { + private symbolResolver: SymbolResolver; + private pathUtils: PathUtils; + + constructor(project: Project, projectRoot: string) { + this.symbolResolver = new SymbolResolver(project, projectRoot); + this.pathUtils = new PathUtils(projectRoot); + } + + parseVars(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { + const vars: Record = {}; + + // Parse variable declarations - only file-level (not inside any scope) + const variableDeclarations = sourceFile.getVariableDeclarations(); + for (const varDecl of variableDeclarations) { + // Skip if this variable is not at file level + if (!this.isAtFileLevel(varDecl)) { + continue; + } + + // Skip if this variable declares a function (arrow function or function expression) + const initializer = varDecl.getInitializer(); + if (initializer) { + if (initializer.getKind() === SyntaxKind.ArrowFunction || + initializer.getKind() === SyntaxKind.FunctionExpression) { + continue; + } + } + + const varObjs = this.parseVariableDestructuring(varDecl, moduleName, packagePath, sourceFile); + for (const varObj of varObjs) { + vars[varObj.Name] = varObj; + } + } + + // Parse property declarations in classes - only file-level class properties + const classes = sourceFile.getClasses(); + for (const cls of classes) { + // Skip if this class is not at file level + if (!this.isAtFileLevel(cls)) { + continue; + } + + const properties = cls.getProperties(); + for (const prop of properties) { + // Skip if this property is not at file level + if (!this.isAtFileLevel(prop)) { + continue; + } + + // Skip if this property declares a function (arrow function or function expression) + const initializer = prop.getInitializer(); + if (initializer) { + if (initializer.getKind() === SyntaxKind.ArrowFunction || + initializer.getKind() === SyntaxKind.FunctionExpression) { + continue; + } + } + + const varObjs = this.parsePropertyDestructuring(prop, moduleName, packagePath, sourceFile); + for (const varObj of varObjs) { + vars[varObj.Name] = varObj; + } + } + } + + // Parse enum members - only file-level enums + const enums = sourceFile.getEnums(); + for (const enumDecl of enums) { + // Skip if this enum is not at file level + if (!this.isAtFileLevel(enumDecl)) { + continue; + } + + const members = enumDecl.getMembers(); + for (const member of members) { + const memberObj = this.parseEnumMember(member, moduleName, packagePath, sourceFile); + vars[memberObj.Name] = memberObj; + } + } + + return vars; + } + + private parseVariableDestructuring(varDecl: VariableDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { + const results: UniVar[] = []; + + // Handle destructuring patterns + if (varDecl.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || + varDecl.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { + return this.extractDestructuredVariables(varDecl, moduleName, packagePath, sourceFile); + } + + // Handle regular variable declarations + let name = varDecl.getName(); + const sym = varDecl.getSymbol(); + if (sym) { + name = assignSymbolName(sym); + } + + const startLine = varDecl.getStartLineNumber(); + const startOffset = varDecl.getStart(); + const endOffset = varDecl.getEnd(); + const content = varDecl.getFullText(); + + const parent = varDecl.getVariableStatement(); + const isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + const isConst = parent ? parent.getDeclarationKind() === 'const' : false; + const isPointer = this.isPointerType(varDecl); + + // Parse type + const typeNode = varDecl.getTypeNode(); + let type: Dependency | undefined; + if (typeNode) { + const typeSymbol = typeNode.getSymbol(); + if (typeSymbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + type = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + } + } + } + + // Parse dependencies from initializer + const dependencies = this.extractInitializerDependencies(varDecl, moduleName, packagePath, sourceFile); + + results.push({ + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + IsExported: isExported, + IsConst: isConst, + IsPointer: isPointer, + Content: content, + Type: type, + Dependencies: dependencies, + Groups: [] + }); + + return results; + } + + private parsePropertyDestructuring(prop: PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { + const results: UniVar[] = []; + + // Handle destructuring patterns in property declarations + if (prop.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || + prop.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { + return this.extractDestructuredVariables(prop, moduleName, packagePath, sourceFile); + } + + // Handle regular property declarations + let name = prop.getName(); + const sym = prop.getSymbol(); + if (sym) { + name = assignSymbolName(sym); + } + + const startLine = prop.getStartLineNumber(); + const startOffset = prop.getStart(); + const endOffset = prop.getEnd(); + const content = prop.getFullText(); + + const parent = prop.getParent(); + let isExported = false; + if (Node.isClassDeclaration(parent)) { + isExported = parent.isExported() || parent.isDefaultExport(); + } + + const isConst = false; + const isPointer = this.isPointerType(prop); + + // Parse type + const typeNode = prop.getTypeNode(); + let type: Dependency | undefined; + if (typeNode) { + const typeSymbol = typeNode.getSymbol(); + if (typeSymbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + type = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + } + } + } + + // Parse dependencies from initializer + const dependencies = this.extractInitializerDependencies(prop, moduleName, packagePath, sourceFile); + + results.push({ + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + IsExported: isExported, + IsConst: isConst, + IsPointer: isPointer, + Content: content, + Type: type, + Dependencies: dependencies, + Groups: [] + }); + + return results; + } + + private parseEnumMember(member: EnumMember, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar { + let name = member.getName(); + const sym = member.getSymbol(); + if (sym) { + name = assignSymbolName(sym); + } + + const startLine = member.getStartLineNumber(); + const startOffset = member.getStart(); + const endOffset = member.getEnd(); + const content = member.getFullText(); + + const parent = member.getParent(); + let isExported = false; + if (Node.isEnumDeclaration(parent)) { + isExported = parent.isExported() || parent.isDefaultExport(); + } + + const isConst = true; + const isPointer = false; + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: name, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + IsExported: isExported, + IsConst: isConst, + IsPointer: isPointer, + Content: content, + Type: undefined, + Dependencies: [], + Groups: [] + }; + } + + private extractDestructuredVariables(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { + const results: UniVar[] = []; + const nameNode = node.getNameNode(); + + // Get the initializer for dependency extraction + const dependencies = this.extractInitializerDependencies(node, moduleName, packagePath, sourceFile); + + // Recursively extract all identifiers from destructuring patterns + this.extractIdentifiersFromPattern(nameNode, node, moduleName, packagePath, sourceFile, dependencies, results); + + return results; + } + + private extractIdentifiersFromPattern( + patternNode: Node, + parentNode: VariableDeclaration | PropertyDeclaration, + moduleName: string, + packagePath: string, + sourceFile: SourceFile, + dependencies: Dependency[], + results: UniVar[] + ): void { + if (Node.isIdentifier(patternNode)) { + // Simple identifier + results.push(this.createUniVar(patternNode.getText(), patternNode, parentNode, moduleName, packagePath, sourceFile, dependencies)); + } else if (Node.isBindingElement(patternNode)) { + // Handle binding elements + const nameNode = patternNode.getNameNode(); + if (Node.isIdentifier(nameNode)) { + results.push(this.createUniVar(nameNode.getText(), nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies)); + } else { + // Recursively handle nested patterns + this.extractIdentifiersFromPattern(nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + } + } else if (Node.isObjectBindingPattern(patternNode)) { + // Handle object destructuring + const elements = patternNode.getElements(); + for (const element of elements) { + this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + } + } else if (Node.isArrayBindingPattern(patternNode)) { + // Handle array destructuring + const elements = patternNode.getElements(); + for (const element of elements) { + this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + } + } + } + + private createUniVar( + varName: string, + element: any, + parentNode: VariableDeclaration | PropertyDeclaration, + moduleName: string, + packagePath: string, + sourceFile: SourceFile, + dependencies: Dependency[] + ): UniVar { + const startLine = element.getStartLineNumber(); + const startOffset = element.getStart(); + const endOffset = element.getEnd(); + const content = element.getFullText(); + + let isExported = false; + let isConst = false; + + if (Node.isVariableDeclaration(parentNode)) { + const parent = parentNode.getVariableStatement(); + isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + isConst = parent ? parent.getDeclarationKind() === 'const' : false; + } else if (Node.isPropertyDeclaration(parentNode)) { + const parent = parentNode.getParent(); + if (Node.isClassDeclaration(parent)) { + isExported = parent.isExported() || parent.isDefaultExport(); + } + } + + return { + ModPath: moduleName, + PkgPath: this.getPkgPath(packagePath), + Name: varName, + File: this.getRelativePath(sourceFile.getFilePath()), + Line: startLine, + StartOffset: startOffset, + EndOffset: endOffset, + IsExported: isExported, + IsConst: isConst, + IsPointer: this.isPointerType(element), + Content: content, + Type: undefined, + Dependencies: dependencies, + Groups: [] + }; + } + + private extractInitializerDependencies(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + const dependencies: Dependency[] = []; + const visited = new Set(); + + const initializer = node.getInitializer(); + if (!initializer) return dependencies; + + // Get the variable declaration's position range + const varStart = node.getStart(); + const varEnd = node.getEnd(); + + // Extract the source object/array that the destructuring is from + const sourceSymbol = initializer.getSymbol(); + if (sourceSymbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(sourceSymbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + // Check if the dependency is defined outside this variable declaration + if (!this.isDependencyDefinedWithinVariable(resolvedSymbol, varStart, varEnd)) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + dependencies.push({ + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }); + } + } + } + } + + // Extract identifiers that are defined outside this variable declaration + const identifiers = initializer.getDescendantsOfKind(SyntaxKind.Identifier); + for (const identifier of identifiers) { + // Skip if this identifier is part of a property access (struct field access) + const parent = identifier.getParent(); + if (parent && Node.isPropertyAccessExpression(parent) && parent.getNameNode() === identifier) { + continue; + } + + const symbol = identifier.getSymbol(); + if (!symbol) { + continue; + } + + const decls = symbol.getDeclarations() + if(decls.length === 0) { + continue; + } + const isLocal = decls.some(decl => + decl.getAncestors().includes(initializer) + ); + + if(isLocal) { + continue + } + + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + dependencies.push({ + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }); + } + } + } + + return dependencies; + } + + private isDependencyDefinedWithinVariable(resolvedSymbol: any, varStart: number, varEnd: number): boolean { + // Check if the dependency's declaration is within the variable declaration's range + if (resolvedSymbol.startOffset !== undefined && resolvedSymbol.endOffset !== undefined) { + return resolvedSymbol.startOffset >= varStart && resolvedSymbol.endOffset <= varEnd; + } + return false; + } + + private isPointerType(_: any): boolean { + return false; + } + + private getRelativePath(filePath: string): string { + return this.pathUtils.getRelativePath(filePath); + } + + private getPkgPath(packagePath: string): string { + return this.pathUtils.getPkgPath(packagePath); + } + + + private isAtFileLevel(node: any): boolean { + let parent = node.getParent(); + + while (parent) { + const kind = parent.getKind(); + // Check if this is a file-level declaration (direct child of SourceFile) + if (kind === SyntaxKind.SourceFile) { + return true; + } + // If we hit any scoped construct, it's not file-level + if ( + kind === SyntaxKind.FunctionDeclaration || + kind === SyntaxKind.FunctionExpression || + kind === SyntaxKind.ArrowFunction || + kind === SyntaxKind.MethodDeclaration || + kind === SyntaxKind.Constructor || + kind === SyntaxKind.GetAccessor || + kind === SyntaxKind.SetAccessor || + kind === SyntaxKind.ClassDeclaration || + kind === SyntaxKind.InterfaceDeclaration || + kind === SyntaxKind.EnumDeclaration || + kind === SyntaxKind.ModuleDeclaration + ) { + return false; + } + + parent = parent.getParent(); + } + + return false; + } +} \ No newline at end of file diff --git a/ts-parser/src/parser/test/FunctionParser.test.ts b/ts-parser/src/parser/test/FunctionParser.test.ts new file mode 100644 index 0000000..19a7ff3 --- /dev/null +++ b/ts-parser/src/parser/test/FunctionParser.test.ts @@ -0,0 +1,396 @@ +import { FunctionParser } from '../FunctionParser'; +import { createTestProject, expectToBeDefined } from './test-utils'; + +describe('FunctionParser', () => { + describe('parseFunctions', () => { + it('should parse function declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function simpleFunction() { + return 'hello'; + } + + export function exportedFunction(param: string): number { + return param.length; + } + + export default function defaultFunction() { + return 'default'; + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + + expect(functions['simpleFunction']).toBeDefined(); + expect(functions['exportedFunction']).toBeDefined(); + expect(functions['defaultFunction']).toBeDefined(); + + expect(functions['simpleFunction']?.Exported).toBe(false); + expect(functions['exportedFunction']?.Exported).toBe(true); + expect(functions['defaultFunction']?.Exported).toBe(true); + + cleanup(); + }); + + it('should parse class methods', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class TestClass { + public method1() { + return 'method1'; + } + + private method2(): number { + return 42; + } + + static staticMethod() { + return 'static'; + } + + constructor(private value: string) { + this.value = value; + } + } + + export class ExportedClass { + exportedMethod() { + return 'exported'; + } + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + + expect(functions['TestClass.method1']).toBeDefined(); + expect(functions['TestClass.method2']).toBeDefined(); + expect(functions['TestClass.staticMethod']).toBeDefined(); + expect(functions['TestClass.__constructor']).toBeDefined(); + expect(functions['ExportedClass.exportedMethod']).toBeDefined(); + + expect(functions['TestClass.method1']?.IsMethod).toBe(true); + expect(functions['TestClass.method1']?.Receiver?.Type.Name).toBe('TestClass'); + + cleanup(); + }); + + it('should parse arrow functions assigned to variables', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const arrowFunc = (x: number, y: number) => x + y; + + const complexArrow = (param: string) => { + return param.toUpperCase(); + }; + + export const exportedArrow = () => 'exported'; + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + + expect(functions['arrowFunc']).toBeDefined(); + expect(functions['complexArrow']).toBeDefined(); + expect(functions['exportedArrow']).toBeDefined(); + + expect(functions['arrowFunc']?.IsMethod).toBe(false); + expect(functions['exportedArrow']?.Exported).toBe(true); + + cleanup(); + }); + + it('should parse interface methods', () => { + const { project, sourceFile, cleanup } = createTestProject(` + interface TestInterface { + method1(): string; + method2(param: number): boolean; + } + + export interface ExportedInterface { + exportedMethod(): void; + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + expect(functions['TestInterface.method1']).toBeDefined(); + expect(functions['TestInterface.method2']).toBeDefined(); + expect(functions['ExportedInterface.exportedMethod']).toBeDefined(); + + expect(functions['TestInterface.method1']?.IsInterfaceMethod).toBe(true); + expect(functions['TestInterface.method1']?.Exported).toBe(true); + + cleanup(); + }); + + it('should extract function signatures', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function withParams(a: string, b: number): boolean { + return a.length > b; + } + + const arrowWithTypes = (x: string): string => x.toUpperCase(); + + class SignatureTest { + methodWithGenerics(param: T): T { + return param; + } + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + expect(functions['withParams']?.Signature).toContain('function withParams'); + expect(functions['arrowWithTypes']?.Signature).toContain('=>'); + expect(functions['SignatureTest.methodWithGenerics']?.Signature).toContain('methodWithGenerics'); + + cleanup(); + }); + }); + + describe('extractFunctionCalls', () => { + it('should extract function calls from function bodies', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function caller() { + simpleFunction(); + anotherFunction(42, 'test'); + return nestedCall(); + } + + function simpleFunction() {} + function anotherFunction(a: number, b: string) {} + function nestedCall() { return 'result'; } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const caller = expectToBeDefined(functions['caller']); + expect(caller.FunctionCalls).toBeDefined(); + expect(caller.FunctionCalls?.length).toBeGreaterThan(0); + + const callNames = expectToBeDefined(caller.FunctionCalls).map(call => call.Name); + expect(callNames).toContain('simpleFunction'); + expect(callNames).toContain('anotherFunction'); + expect(callNames).toContain('nestedCall'); + + cleanup(); + }); + + it('should handle cross-module function calls', () => { + const { project, sourceFile, cleanup } = createTestProject(` + import { externalFunc } from './external'; + + function usesExternal() { + externalFunc(); + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const usesExternal = expectToBeDefined(functions['usesExternal']); + expect(usesExternal.FunctionCalls).toBeDefined(); + + cleanup(); + }); + }); + + describe('extractMethodCalls', () => { + it('should extract method calls from function bodies', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class Service { + method1() { return 'service1'; } + static staticMethod() { return 'static'; } + } + + function user() { + const service = new Service(); + service.method1(); + Service.staticMethod(); + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const user = expectToBeDefined(functions['user']); + expect(user.MethodCalls).toBeDefined(); + + cleanup(); + }); + + it('should handle chained method calls', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class Chain { + first() { return this; } + second() { return this; } + third() { return 'done'; } + } + + function chainUser() { + new Chain().first().second().third(); + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const chainUser = expectToBeDefined(functions['chainUser']); + expect(chainUser.MethodCalls).toBeDefined(); + + cleanup(); + }); + }); + + describe('extractTypeReferences', () => { + it('should extract type references from function signatures', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class CustomType {} + interface CustomInterface {} + + function usesTypes(param: CustomType): CustomInterface { + return {} as CustomInterface; + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const usesTypes = expectToBeDefined(functions['usesTypes']); + expect(usesTypes.Types).toBeDefined(); + + const typeNames = expectToBeDefined(usesTypes.Types).map(type => type.Name); + expect(typeNames).toContain('CustomType'); + expect(typeNames).toContain('CustomInterface'); + + cleanup(); + }); + }); + + describe('extractGlobalVarReferences', () => { + it('should extract global variable references', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const globalVar = 'global'; + let mutableGlobal = 42; + + function usesGlobals() { + console.log(globalVar); + mutableGlobal += 1; + return globalVar + mutableGlobal; + } + + function localOnly() { + const localVar = 'local'; + return localVar; + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const usesGlobals = expectToBeDefined(functions['usesGlobals']); + expect(usesGlobals.GlobalVars).toBeDefined(); + + const globalNames = expectToBeDefined(usesGlobals.GlobalVars).map(gv => gv.Name); + expect(globalNames).toContain('globalVar'); + expect(globalNames).toContain('mutableGlobal'); + + const localOnly = expectToBeDefined(functions['localOnly']); + expect(localOnly.GlobalVars).toHaveLength(0); + + cleanup(); + }); + + it('should skip built-in globals', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function usesBuiltins() { + console.log('test'); + Math.max(1, 2, 3); + JSON.stringify({}); + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + const usesBuiltins = expectToBeDefined(functions['usesBuiltins']); + const globalNames = expectToBeDefined(usesBuiltins.GlobalVars).map(gv => gv.Name); + + expect(globalNames).not.toContain('console'); + expect(globalNames).not.toContain('Math'); + expect(globalNames).not.toContain('JSON'); + + cleanup(); + }); + }); + + describe('edge cases', () => { + it('should handle anonymous functions', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const obj = { + method: function() { + return 'anonymous'; + } + }; + + const arrow = () => { + return () => 'nested'; + }; + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + expect(Object.keys(functions)).toHaveLength(1); + + cleanup(); + }); + + it('should handle destructuring in parameters', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function destructuredParams({ a, b }: { a: string; b: number }) { + return a + b; + } + + function arrayParams([x, y]: [string, number]) { + return x + y; + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + expect(functions['destructuredParams']).toBeDefined(); + expect(functions['arrayParams']).toBeDefined(); + + cleanup(); + }); + + it('should handle generic functions', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function genericFunction(param: T): T { + return param; + } + + class GenericClass { + method(param: U): T { + return {} as T; + } + } + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + expect(functions['genericFunction']).toBeDefined(); + expect(functions['GenericClass.method']).toBeDefined(); + + cleanup(); + }); + }); +}); \ No newline at end of file diff --git a/ts-parser/src/parser/test/README.md b/ts-parser/src/parser/test/README.md new file mode 100644 index 0000000..60a3fab --- /dev/null +++ b/ts-parser/src/parser/test/README.md @@ -0,0 +1,70 @@ +# Parser Unit Tests + +This directory contains comprehensive unit tests for the TypeScript parser modules with high logic coverage. + +## Test Coverage + +### FunctionParser.test.ts +- **Function declarations**: Regular, exported, default export +- **Class methods**: Instance methods, static methods, constructors +- **Arrow functions**: Variable assignments, complex expressions +- **Interface methods**: Method signatures with parameters and return types +- **Function calls**: Direct calls, method calls, chained calls +- **Type references**: Custom types, interfaces, generics +- **Global variables**: Cross-module references, built-in filtering +- **Edge cases**: Anonymous functions, destructuring, generics + +### VarParser.test.ts +- **Variable declarations**: const, let, var with different scopes +- **Class properties**: Public, private, protected, static, readonly +- **Enum members**: String enums, numeric enums, const enums +- **Destructuring**: Object, array, nested destructuring +- **Type extraction**: Custom types, primitives, complex types +- **Dependencies**: Initializer dependencies, cross-references +- **Edge cases**: Uninitialized variables, complex type annotations + +### TypeParser.test.ts +- **Class declarations**: Simple, exported, abstract, generic classes +- **Interface declarations**: Simple, exported, generic interfaces +- **Type aliases**: Simple, complex, union, intersection, generic aliases +- **Enum declarations**: String, numeric, const enums +- **Inheritance**: Class inheritance, interface inheritance, implementation +- **Type dependencies**: Property types, method signatures, complex types +- **Edge cases**: Anonymous classes, nested types, function types + +## Running Tests + +```bash +# Run all tests +npm test + +# Run tests in watch mode +npm run test:watch + +# Run tests with coverage +npm run test:coverage + +# Run tests with verbose output +npm run test:verbose +``` + +## Coverage Report + +After running `npm run test:coverage`, coverage reports will be available in: +- `coverage/lcov-report/index.html` - HTML report +- `coverage/lcov.info` - LCOV format for CI tools + +## Test Structure + +- **test-utils.ts**: Common test utilities and helper functions +- **setup.ts**: Global test setup and configuration +- **jest.config.js**: Jest configuration for TypeScript testing +- **temp/**: Temporary directory for test files (auto-cleaned) + +## Writing New Tests + +1. Create test file with `.test.ts` extension +2. Use `createTestProject` utility for creating test projects +3. Follow the existing test patterns for consistency +4. Ensure high coverage for new functionality +5. Test both happy paths and edge cases \ No newline at end of file diff --git a/ts-parser/src/parser/test/TypeParser.test.ts b/ts-parser/src/parser/test/TypeParser.test.ts new file mode 100644 index 0000000..547390c --- /dev/null +++ b/ts-parser/src/parser/test/TypeParser.test.ts @@ -0,0 +1,522 @@ +import { TypeParser } from '../TypeParser'; +import { createTestProject, expectToBeDefined } from './test-utils'; + +describe('TypeParser', () => { + describe('parseTypes', () => { + it('should parse class declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class SimpleClass { + prop: string; + + method(): void {} + } + + export class ExportedClass { + public publicProp: number; + private privateProp: boolean; + + public publicMethod(): string { return ''; } + private privateMethod(): void {} + } + + abstract class AbstractClass { + abstract abstractMethod(): void; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['SimpleClass']).toBeDefined(); + expect(types['ExportedClass']).toBeDefined(); + expect(types['AbstractClass']).toBeDefined(); + + expect(types['SimpleClass'].TypeKind).toBe('struct'); + expect(types['ExportedClass'].Exported).toBe(true); + expect(types['SimpleClass'].Methods).toBeDefined(); + expect(expectToBeDefined(types['SimpleClass'].Methods)['method']).toBeDefined(); + expect(expectToBeDefined(types['ExportedClass'].Methods)['publicMethod']).toBeDefined(); + + cleanup(); + }); + + it('should parse interface declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + interface SimpleInterface { + prop: string; + method(): void; + } + + export interface ExportedInterface { + requiredProp: number; + optionalProp?: boolean; + methodWithParams(a: string, b: number): string; + } + + interface GenericInterface { + value: T; + getValue(): T; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['SimpleInterface']).toBeDefined(); + expect(types['ExportedInterface']).toBeDefined(); + expect(types['GenericInterface']).toBeDefined(); + + expect(types['SimpleInterface'].TypeKind).toBe('interface'); + expect(types['ExportedInterface'].Exported).toBe(true); + expect(types['SimpleInterface'].Methods).toBeDefined(); + expect(expectToBeDefined(types['SimpleInterface'].Methods)['method']).toBeDefined(); + expect(types['ExportedInterface'].Methods).toBeDefined(); + expect(expectToBeDefined(types['ExportedInterface'].Methods)['methodWithParams']).toBeDefined(); + + cleanup(); + }); + + it('should parse type alias declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + type StringAlias = string; + type ObjectAlias = { prop: string; method(): void }; + type UnionAlias = string | number; + type GenericAlias = Array; + type ComplexAlias = { + nested: { + deep: string; + }; + array: Array<{ item: number }>; + }; + + export type ExportedAlias = string; + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['StringAlias']).toBeDefined(); + expect(types['ObjectAlias']).toBeDefined(); + expect(types['UnionAlias']).toBeDefined(); + expect(types['GenericAlias']).toBeDefined(); + expect(types['ComplexAlias']).toBeDefined(); + expect(types['ExportedAlias']).toBeDefined(); + + expect(types['StringAlias'].TypeKind).toBe('typedef'); + expect(types['ExportedAlias'].Exported).toBe(true); + + cleanup(); + }); + + it('should parse enum declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + enum Color { + Red = 'red', + Green = 'green', + Blue = 'blue' + } + + export enum Status { + Active = 1, + Inactive = 0, + Pending + } + + const enum ConstEnum { + A = 1, + B = 2 + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['Color']).toBeDefined(); + expect(types['Status']).toBeDefined(); + expect(types['ConstEnum']).toBeDefined(); + + expect(types['Color'].TypeKind).toBe('enum'); + expect(types['Status'].Exported).toBe(true); + + cleanup(); + }); + }); + + describe('inheritance and implementation', () => { + it('should parse class inheritance', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class BaseClass { + baseProp: string; + } + + class DerivedClass extends BaseClass { + derivedProp: number; + } + + class MultiLevel extends DerivedClass { + multiProp: boolean; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + + const derived = expectToBeDefined(types['DerivedClass']); + const multi = expectToBeDefined(types['MultiLevel']); + + expect(expectToBeDefined(derived.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(multi.Implements).length).toBeGreaterThan(0); + + cleanup(); + }); + + it('should parse interface inheritance', () => { + const { project, sourceFile, cleanup } = createTestProject(` + interface BaseInterface { + baseProp: string; + baseMethod(): void; + } + + interface ExtendedInterface extends BaseInterface { + extendedProp: number; + extendedMethod(): boolean; + } + + interface MultiLevel extends ExtendedInterface { + multiProp: boolean; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const extended = expectToBeDefined(types['ExtendedInterface']); + const multi = expectToBeDefined(types['MultiLevel']); + + expect(expectToBeDefined(extended.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(multi.Implements).length).toBeGreaterThan(0); + + cleanup(); + }); + + it('should parse class implementing interfaces', () => { + const { project, sourceFile, cleanup } = createTestProject(` + interface FirstInterface { + firstProp: string; + firstMethod(): void; + } + + interface SecondInterface { + secondProp: number; + secondMethod(): boolean; + } + + class ImplementingClass implements FirstInterface, SecondInterface { + firstProp: string; + secondProp: number; + + firstMethod(): void {} + secondMethod(): boolean { return true; } + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const implementing = expectToBeDefined(types['ImplementingClass']); + expect(expectToBeDefined(implementing.Implements).length).toBeGreaterThan(0); + + cleanup(); + }); + + it('should parse complex inheritance scenarios', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class BaseClass { + baseMethod(): void {} + } + + interface BaseInterface { + baseInterfaceMethod(): void; + } + + interface ExtendedInterface extends BaseInterface { + extendedInterfaceMethod(): void; + } + + class ComplexClass extends BaseClass implements ExtendedInterface { + baseInterfaceMethod(): void {} + extendedInterfaceMethod(): void {} + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const complex = expectToBeDefined(types['ComplexClass']); + expect(expectToBeDefined(complex.Implements).length).toBeGreaterThan(0); + + cleanup(); + }); + }); + + describe('type dependencies', () => { + it('should extract type dependencies from class properties', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class CustomType {} + interface CustomInterface {} + + class PropertyTypes { + customType: CustomType; + customInterface: CustomInterface; + primitive: string; + arrayType: string[]; + unionType: string | number; + genericType: Array; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const propertyTypes = expectToBeDefined(types['PropertyTypes']); + expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); + + const typeNames = expectToBeDefined(propertyTypes.Implements).map(dep => dep.Name); + expect(typeNames).toContain('CustomType'); + expect(typeNames).toContain('CustomInterface'); + + cleanup(); + }); + + it('should extract type dependencies from interface properties', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class CustomType {} + interface CustomInterface {} + + interface PropertyTypes { + customType: CustomType; + customInterface: CustomInterface; + primitive: string; + arrayType: string[]; + unionType: string | number; + genericType: Array; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const propertyTypes = expectToBeDefined(types['PropertyTypes']); + expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); + + const typeNames = expectToBeDefined(propertyTypes.Implements).map(dep => dep.Name); + expect(typeNames).toContain('CustomType'); + expect(typeNames).toContain('CustomInterface'); + + cleanup(); + }); + + it('should extract type dependencies from type aliases', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class CustomType {} + interface CustomInterface {} + + type SimpleAlias = CustomType; + type ComplexAlias = { + prop: CustomType; + method(): CustomInterface; + }; + type UnionAlias = CustomType | CustomInterface; + type GenericAlias = Array; + type NestedAlias = { + nested: { + deep: CustomType; + }; + }; + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const simpleAlias = expectToBeDefined(types['SimpleAlias']); + const complexAlias = expectToBeDefined(types['ComplexAlias']); + const unionAlias = expectToBeDefined(types['UnionAlias']); + const genericAlias = expectToBeDefined(types['GenericAlias']); + const nestedAlias = expectToBeDefined(types['NestedAlias']); + + expect(expectToBeDefined(simpleAlias.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(complexAlias.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(unionAlias.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(genericAlias.Implements).length).toBeGreaterThan(0); + expect(expectToBeDefined(nestedAlias.Implements).length).toBeGreaterThan(0); + + const allTypeNames = [ + ...expectToBeDefined(simpleAlias.Implements), + ...expectToBeDefined(complexAlias.Implements), + ...expectToBeDefined(unionAlias.Implements), + ...expectToBeDefined(genericAlias.Implements), + ...expectToBeDefined(nestedAlias.Implements) + ].map(dep => expectToBeDefined(dep).Name); + + expect(allTypeNames).toContain('CustomType'); + expect(allTypeNames).toContain('CustomInterface'); + + cleanup(); + }); + + it('should handle primitive types correctly', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class PrimitiveTypes { + stringProp: string; + numberProp: number; + booleanProp: boolean; + nullProp: null; + undefinedProp: undefined; + anyProp: any; + unknownProp: unknown; + voidProp: void; + neverProp: never; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + const primitiveTypes = expectToBeDefined(types['PrimitiveTypes']); + const primitiveNames = expectToBeDefined(primitiveTypes.Implements).map(dep => dep.Name); + + expect(primitiveNames).not.toContain('string'); + expect(primitiveNames).not.toContain('number'); + expect(primitiveNames).not.toContain('boolean'); + expect(primitiveNames).not.toContain('null'); + expect(primitiveNames).not.toContain('undefined'); + expect(primitiveNames).not.toContain('any'); + expect(primitiveNames).not.toContain('unknown'); + expect(primitiveNames).not.toContain('void'); + expect(primitiveNames).not.toContain('never'); + + cleanup(); + }); + }); + + describe('edge cases', () => { + it('should handle anonymous classes', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const AnonymousClass = class { + prop: string; + method(): void {} + }; + + const obj = new class { + value: number; + getValue(): number { return this.value; } + }(); + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(Object.keys(types).length).toBeGreaterThan(0); + + cleanup(); + }); + + it('should handle generic types', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class GenericClass { + first: T; + second: U; + + getFirst(): T { return this.first; } + getSecond(): U { return this.second; } + } + + interface GenericInterface { + value: T; + getValue(): T; + } + + type GenericType = Array; + + class BoundedGeneric { + value: T; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['GenericClass']).toBeDefined(); + expect(types['GenericInterface']).toBeDefined(); + expect(types['GenericType']).toBeDefined(); + expect(types['BoundedGeneric']).toBeDefined(); + + cleanup(); + }); + + + it('should handle nested types', () => { + const { project, sourceFile, cleanup } = createTestProject(` + class Level1 { + level2: { + level3: { + value: string; + }; + }; + } + + type NestedType = { + nested: { + deep: { + deeper: string; + }; + }; + }; + + interface NestedInterface { + nested: { + method(): { + result: number; + }; + }; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['Level1']).toBeDefined(); + expect(types['NestedType']).toBeDefined(); + expect(types['NestedInterface']).toBeDefined(); + + cleanup(); + }); + + it('should handle function types', () => { + const { project, sourceFile, cleanup } = createTestProject(` + type FunctionType = (param: string) => number; + type MethodType = { + method(param: string): number; + }; + type CallbackType = (error: Error | null, result?: string) => void; + + class UsesFunctionTypes { + func: FunctionType; + method: MethodType; + callback: CallbackType; + } + `); + + const parser = new TypeParser(process.cwd()); + const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + + expect(types['FunctionType']).toBeDefined(); + expect(types['MethodType']).toBeDefined(); + expect(types['CallbackType']).toBeDefined(); + expect(types['UsesFunctionTypes']).toBeDefined(); + + cleanup(); + }); + }); +}); \ No newline at end of file diff --git a/ts-parser/src/parser/test/VarParser.test.ts b/ts-parser/src/parser/test/VarParser.test.ts new file mode 100644 index 0000000..e11259e --- /dev/null +++ b/ts-parser/src/parser/test/VarParser.test.ts @@ -0,0 +1,224 @@ +import { VarParser } from '../VarParser'; +import { createTestProject, expectToBeDefined } from './test-utils'; + +describe('VarParser', () => { + describe('parseVars', () => { + it('should parse variable declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const constVar = 'constant'; + let letVar = 'mutable'; + var varVar = 'old-style'; + + export const exportedConst = 'exported'; + export default const defaultExport = 'default'; + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + + + expect(vars['constVar']).toBeDefined(); + expect(vars['letVar']).toBeDefined(); + expect(vars['varVar']).toBeDefined(); + expect(vars['exportedConst']).toBeDefined(); + expect(vars['defaultExport']).toBeDefined(); + + expect(vars['constVar'].IsConst).toBe(true); + expect(vars['letVar'].IsConst).toBe(false); + expect(vars['exportedConst'].IsExported).toBe(true); + + cleanup(); + }); + + it('should parse enum members', () => { + const { project, sourceFile, cleanup } = createTestProject(` + enum Color { + Red = 'red', + Green = 'green', + Blue = 'blue' + } + + export enum Status { + Active = 1, + Inactive = 0, + Pending + } + + const enum ConstEnum { + A = 1, + B = 2 + } + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + expect(vars['Color.Red']).toBeDefined(); + expect(vars['Color.Green']).toBeDefined(); + expect(vars['Color.Blue']).toBeDefined(); + expect(vars['Status.Active']).toBeDefined(); + expect(vars['Status.Inactive']).toBeDefined(); + expect(vars['Status.Pending']).toBeDefined(); + expect(vars['ConstEnum.A']).toBeDefined(); + expect(vars['ConstEnum.B']).toBeDefined(); + + expect(vars['Status.Active'].IsExported).toBe(true); + expect(vars['Status.Active'].IsConst).toBe(true); + + cleanup(); + }); + }); + + describe('variable destructuring', () => { + it('should parse object destructuring', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const obj = { a: 1, b: 2, c: 3 }; + const { a, b } = obj; + const { c: renamedC } = obj; + const { d = 'default' } = obj; + + function getObj() { + return { x: 1, y: 2 }; + } + const { x, y } = getObj(); + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + expect(vars['a']).toBeDefined(); + expect(vars['b']).toBeDefined(); + expect(vars['renamedC']).toBeDefined(); + expect(vars['d']).toBeDefined(); + expect(vars['x']).toBeDefined(); + expect(vars['y']).toBeDefined(); + + cleanup(); + }); + + it('should parse array destructuring', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const arr = [1, 2, 3]; + const [first, second] = arr; + const [,, third] = arr; + const [x = 0, y = 1] = []; + + function getArr() { + return ['a', 'b', 'c']; + } + const [a, b, c] = getArr(); + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + expect(vars['first']).toBeDefined(); + expect(vars['second']).toBeDefined(); + expect(vars['third']).toBeDefined(); + expect(vars['x']).toBeDefined(); + expect(vars['y']).toBeDefined(); + expect(vars['a']).toBeDefined(); + expect(vars['b']).toBeDefined(); + expect(vars['c']).toBeDefined(); + + cleanup(); + }); + + it('should parse nested destructuring', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const complex = { + user: { name: 'John', age: 30 }, + settings: { theme: 'dark' } + }; + + const { user: { name, age }, settings: { theme } } = complex; + + const arr = [[1, 2], [3, 4]]; + const [[one, two], [three, four]] = arr; + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + + expect(vars['name']).toBeDefined(); + expect(vars['age']).toBeDefined(); + expect(vars['theme']).toBeDefined(); + expect(vars['one']).toBeDefined(); + expect(vars['two']).toBeDefined(); + expect(vars['three']).toBeDefined(); + expect(vars['four']).toBeDefined(); + + cleanup(); + }); + }); + + + describe('dependency extraction', () => { + it('should extract dependencies from variable initializers', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const dep1 = 'dependency1'; + const dep2 = 'dependency2'; + + const usesDeps = dep1 + dep2; + const objDeps = { a: dep1, b: dep2 }; + const arrDeps = [dep1, dep2]; + + function getValue() { + return 'value'; + } + const funcDep = getValue(); + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + const usesDeps = expectToBeDefined(vars['usesDeps']); + expect(usesDeps.Dependencies).toBeDefined(); + + cleanup(); + }); + + it('should extract dependencies from destructuring', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const sourceObj = { a: 1, b: 2, c: 3 }; + const sourceArr = [1, 2, 3]; + + const { a, b } = sourceObj; + const [x, y] = sourceArr; + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + const aVar = expectToBeDefined(vars['a']); + const bVar = expectToBeDefined(vars['b']); + const xVar = expectToBeDefined(vars['x']); + const yVar = expectToBeDefined(vars['y']); + + expect(aVar.Dependencies).toBeDefined(); + expect(bVar.Dependencies).toBeDefined(); + expect(xVar.Dependencies).toBeDefined(); + expect(yVar.Dependencies).toBeDefined(); + + cleanup(); + }); + }); + + describe('edge cases', () => { + it('should handle re-exports', () => { + const { project, sourceFile, cleanup } = createTestProject(` + export { someVar } from './other-module'; + export * as namespace from './namespace-module'; + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + expect(vars).toBeDefined(); + + cleanup(); + }); + }); +}); \ No newline at end of file diff --git a/ts-parser/src/parser/test/jest.config.js b/ts-parser/src/parser/test/jest.config.js new file mode 100644 index 0000000..415d1af --- /dev/null +++ b/ts-parser/src/parser/test/jest.config.js @@ -0,0 +1,23 @@ +module.exports = { + preset: 'ts-jest', + testEnvironment: 'node', + roots: [''], + testMatch: ['**/*.test.ts'], + collectCoverageFrom: [ + '**/*.ts', + '!**/*.d.ts', + '!**/node_modules/**', + '!**/dist/**', + '!**/temp/**', + ], + coverageDirectory: 'coverage', + coverageReporters: ['text', 'lcov', 'html'], + setupFilesAfterEnv: ['/setup.ts'], + moduleFileExtensions: ['ts', 'js', 'json'], + testPathIgnorePatterns: ['/node_modules/', '/dist/', '/temp/'], + transform: { + '^.+\\.ts$': 'ts-jest', + }, + maxWorkers: 1, // Run tests sequentially to avoid conflicts + maxConcurrency: 1, // Limit concurrent test runs +}; \ No newline at end of file diff --git a/ts-parser/src/parser/test/package-lock.json b/ts-parser/src/parser/test/package-lock.json new file mode 100644 index 0000000..89b6789 --- /dev/null +++ b/ts-parser/src/parser/test/package-lock.json @@ -0,0 +1,6016 @@ +{ + "name": "parser-tests", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "parser-tests", + "version": "1.0.0", + "devDependencies": { + "@types/jest": "^29.5.0", + "@types/node": "^18.0.0", + "jest": "^29.5.0", + "ts-jest": "^29.1.0", + "typescript": "^5.0.0" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/core/-/core-7.28.3.tgz", + "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.3", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helpers/-/helpers-7.28.3.tgz", + "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.2" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.2", + "resolved": "https://bnpm.byted.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://bnpm.byted.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://bnpm.byted.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://bnpm.byted.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://bnpm.byted.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://bnpm.byted.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://bnpm.byted.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://bnpm.byted.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://bnpm.byted.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://bnpm.byted.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://bnpm.byted.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://bnpm.byted.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://bnpm.byted.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "18.19.123", + "resolved": "https://bnpm.byted.org/@types/node/-/node-18.19.123.tgz", + "integrity": "sha512-K7DIaHnh0mzVxreCR9qwgNxp3MH9dltPNIEddW9MYUlcKAzm+3grKNSTe2vCJHI1FaLpvpL5JGJrz1UZDKYvDg==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://bnpm.byted.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://bnpm.byted.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://bnpm.byted.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://bnpm.byted.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.25.3", + "resolved": "https://bnpm.byted.org/browserslist/-/browserslist-4.25.3.tgz", + "integrity": "sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==", + "dev": true, + "dependencies": { + "caniuse-lite": "^1.0.30001735", + "electron-to-chromium": "^1.5.204", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://bnpm.byted.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001735", + "resolved": "https://bnpm.byted.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz", + "integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==", + "dev": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://bnpm.byted.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://bnpm.byted.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://bnpm.byted.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://bnpm.byted.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.207", + "resolved": "https://bnpm.byted.org/electron-to-chromium/-/electron-to-chromium-1.5.207.tgz", + "integrity": "sha512-mryFrrL/GXDTmAtIVMVf+eIXM09BBPlO5IQ7lUyKmK8d+A4VpRGG+M3ofoVef6qyF8s60rJei8ymlJxjUA8Faw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://bnpm.byted.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://bnpm.byted.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://bnpm.byted.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://bnpm.byted.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://bnpm.byted.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://bnpm.byted.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://bnpm.byted.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://bnpm.byted.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://bnpm.byted.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://bnpm.byted.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://bnpm.byted.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://bnpm.byted.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://bnpm.byted.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://bnpm.byted.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://bnpm.byted.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://bnpm.byted.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://bnpm.byted.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://bnpm.byted.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://bnpm.byted.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://bnpm.byted.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://bnpm.byted.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://bnpm.byted.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-jest": { + "version": "29.4.1", + "resolved": "https://bnpm.byted.org/ts-jest/-/ts-jest-29.4.1.tgz", + "integrity": "sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw==", + "dev": true, + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.2", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://bnpm.byted.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://bnpm.byted.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://bnpm.byted.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://bnpm.byted.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://bnpm.byted.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + } + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + } + }, + "@babel/compat-data": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "dev": true + }, + "@babel/core": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/core/-/core-7.28.3.tgz", + "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.3", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + } + }, + "@babel/generator": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "requires": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + } + }, + "@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true + }, + "@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "requires": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + } + }, + "@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true + }, + "@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true + }, + "@babel/helpers": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helpers/-/helpers-7.28.3.tgz", + "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==", + "dev": true, + "requires": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" + } + }, + "@babel/parser": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dev": true, + "requires": { + "@babel/types": "^7.28.2" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/template": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + } + }, + "@babel/traverse": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + } + }, + "@babel/types": { + "version": "7.28.2", + "resolved": "https://bnpm.byted.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://bnpm.byted.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://bnpm.byted.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + } + }, + "@jest/core": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "@jest/environment": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "requires": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + } + }, + "@jest/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "requires": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + } + }, + "@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "requires": { + "jest-get-type": "^29.6.3" + } + }, + "@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "@jest/globals": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + } + }, + "@jest/reporters": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + } + }, + "@jest/schemas": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "requires": { + "@sinclair/typebox": "^0.27.8" + } + }, + "@jest/source-map": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + } + }, + "@jest/test-result": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "requires": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + } + }, + "@jest/transform": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + } + }, + "@jest/types": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://bnpm.byted.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://bnpm.byted.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://bnpm.byted.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://bnpm.byted.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^3.0.0" + } + }, + "@types/babel__core": { + "version": "7.20.5", + "resolved": "https://bnpm.byted.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://bnpm.byted.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.4", + "resolved": "https://bnpm.byted.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "requires": { + "@babel/types": "^7.28.2" + } + }, + "@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://bnpm.byted.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://bnpm.byted.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "29.5.14", + "resolved": "https://bnpm.byted.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "requires": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "@types/node": { + "version": "18.19.123", + "resolved": "https://bnpm.byted.org/@types/node/-/node-18.19.123.tgz", + "integrity": "sha512-K7DIaHnh0mzVxreCR9qwgNxp3MH9dltPNIEddW9MYUlcKAzm+3grKNSTe2vCJHI1FaLpvpL5JGJrz1UZDKYvDg==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } + }, + "@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "@types/yargs": { + "version": "17.0.33", + "resolved": "https://bnpm.byted.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://bnpm.byted.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://bnpm.byted.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "babel-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "requires": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://bnpm.byted.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + } + } + }, + "babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + } + }, + "babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "requires": { + "fill-range": "^7.1.1" + } + }, + "browserslist": { + "version": "4.25.3", + "resolved": "https://bnpm.byted.org/browserslist/-/browserslist-4.25.3.tgz", + "integrity": "sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001735", + "electron-to-chromium": "^1.5.204", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + } + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://bnpm.byted.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001735", + "resolved": "https://bnpm.byted.org/caniuse-lite/-/caniuse-lite-1.0.30001735.tgz", + "integrity": "sha512-EV/laoX7Wq2J9TQlyIXRxTJqIw4sxfXS4OYgudGxBYRuTv0q7AM6yMEpU/Vo1I94thg9U6EZ2NfZx9GJq83u7w==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "3.9.0", + "resolved": "https://bnpm.byted.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true + }, + "cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://bnpm.byted.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://bnpm.byted.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true + }, + "collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "create-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + } + }, + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "requires": { + "ms": "^2.1.3" + } + }, + "dedent": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "requires": {} + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://bnpm.byted.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "diff-sequences": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.5.207", + "resolved": "https://bnpm.byted.org/electron-to-chromium/-/electron-to-chromium-1.5.207.tgz", + "integrity": "sha512-mryFrrL/GXDTmAtIVMVf+eIXM09BBPlO5IQ7lUyKmK8d+A4VpRGG+M3ofoVef6qyF8s60rJei8ymlJxjUA8Faw==", + "dev": true + }, + "emittery": { + "version": "0.13.1", + "resolved": "https://bnpm.byted.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://bnpm.byted.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escalade": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true + }, + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://bnpm.byted.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, + "expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "requires": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "requires": { + "bser": "2.1.1" + } + }, + "fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://bnpm.byted.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + }, + "glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://bnpm.byted.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "handlebars": { + "version": "4.7.8", + "resolved": "https://bnpm.byted.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "import-local": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://bnpm.byted.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-core-module": { + "version": "2.16.1", + "resolved": "https://bnpm.byted.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "requires": { + "hasown": "^2.0.2" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "requires": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "requires": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + } + }, + "jest-changed-files": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "requires": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + } + }, + "jest-circus": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-cli": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "requires": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + } + }, + "jest-config": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + } + }, + "jest-diff": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-docblock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + } + }, + "jest-environment-node": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "jest-get-type": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true + }, + "jest-haste-map": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "requires": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-message-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-mock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "requires": {} + }, + "jest-regex-util": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true + }, + "jest-resolve": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "requires": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + } + }, + "jest-runner": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + } + }, + "jest-runtime": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + } + }, + "jest-snapshot": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "jest-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-validate": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "dependencies": { + "camelcase": { + "version": "6.3.0", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "requires": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + } + }, + "jest-worker": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "requires": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsesc": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://bnpm.byted.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://bnpm.byted.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "make-dir": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "requires": { + "semver": "^7.5.3" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://bnpm.byted.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://bnpm.byted.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "micromatch": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "requires": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://bnpm.byted.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node-releases": { + "version": "2.0.19", + "resolved": "https://bnpm.byted.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + }, + "dependencies": { + "p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + } + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://bnpm.byted.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pirates": { + "version": "4.0.7", + "resolved": "https://bnpm.byted.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "pretty-format": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://bnpm.byted.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "pure-rand": { + "version": "6.1.0", + "resolved": "https://bnpm.byted.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true + }, + "react-is": { + "version": "18.3.1", + "resolved": "https://bnpm.byted.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "resolve": { + "version": "1.22.10", + "resolved": "https://bnpm.byted.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "requires": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "resolve.exports": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true + }, + "semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://bnpm.byted.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.13", + "resolved": "https://bnpm.byted.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "stack-utils": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + } + }, + "string-length": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } + }, + "ts-jest": { + "version": "29.4.1", + "resolved": "https://bnpm.byted.org/ts-jest/-/ts-jest-29.4.1.tgz", + "integrity": "sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw==", + "dev": true, + "requires": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.2", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + }, + "type-fest": { + "version": "4.41.0", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true + } + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + }, + "typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true + }, + "uglify-js": { + "version": "3.19.3", + "resolved": "https://bnpm.byted.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true + }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "requires": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + } + }, + "v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://bnpm.byted.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://bnpm.byted.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://bnpm.byted.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://bnpm.byted.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/ts-parser/src/parser/test/package.json b/ts-parser/src/parser/test/package.json new file mode 100644 index 0000000..a2631d7 --- /dev/null +++ b/ts-parser/src/parser/test/package.json @@ -0,0 +1,18 @@ +{ + "name": "parser-tests", + "version": "1.0.0", + "description": "Unit tests for TypeScript parser modules", + "scripts": { + "test": "jest", + "test:watch": "jest --watch", + "test:coverage": "jest --coverage", + "test:verbose": "jest --verbose" + }, + "devDependencies": { + "@types/jest": "^29.5.0", + "@types/node": "^18.0.0", + "jest": "^29.5.0", + "ts-jest": "^29.1.0", + "typescript": "^5.0.0" + } +} \ No newline at end of file diff --git a/ts-parser/src/parser/test/setup.ts b/ts-parser/src/parser/test/setup.ts new file mode 100644 index 0000000..e4d043d --- /dev/null +++ b/ts-parser/src/parser/test/setup.ts @@ -0,0 +1,24 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { afterEach, beforeEach, beforeAll, jest } from '@jest/globals'; + +// Global test setup +beforeAll(() => { + // Clean up any existing temp directories + const tempBaseDir = path.join(__dirname, 'temp'); + if (fs.existsSync(tempBaseDir)) { + fs.rmSync(tempBaseDir, { recursive: true, force: true }); + } +}); + +beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + jest.spyOn(console, 'error').mockImplementation(() => {}); +}); + +afterEach(() => { + jest.restoreAllMocks(); +}); + +// Increase timeout for complex parsing operations +jest.setTimeout(30000); diff --git a/ts-parser/src/parser/test/test-utils.ts b/ts-parser/src/parser/test/test-utils.ts new file mode 100644 index 0000000..8ea0626 --- /dev/null +++ b/ts-parser/src/parser/test/test-utils.ts @@ -0,0 +1,80 @@ +import { Project, SourceFile } from 'ts-morph'; +import * as path from 'path'; +import * as fs from 'fs'; + +export interface TestProject { + project: Project; + sourceFile: SourceFile; + cleanup: () => void; +} + +export function createTestProject(code: string, fileName: string = 'test.ts'): TestProject { + const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(2, 15); + const tempDir = path.join(__dirname, 'temp', uniqueId); + + fs.mkdirSync(tempDir, { recursive: true }); + + const filePath = path.join(tempDir, fileName); + fs.writeFileSync(filePath, code); + + const project = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + + const sourceFile = project.addSourceFileAtPath(filePath); + + const cleanup = () => { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + }; + + return { project, sourceFile, cleanup }; +} + +export function createTestProjectWithTsConfig(code: string, tsConfig: any, fileName: string = 'test.ts'): TestProject { + const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(2, 15); + const tempDir = path.join(__dirname, 'temp', uniqueId); + + fs.mkdirSync(tempDir, { recursive: true }); + + const tsConfigPath = path.join(tempDir, 'tsconfig.json'); + fs.writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2)); + + const filePath = path.join(tempDir, fileName); + fs.writeFileSync(filePath, code); + + const project = new Project({ + tsConfigFilePath: tsConfigPath + }); + + const sourceFile = project.addSourceFileAtPath(filePath); + + const cleanup = () => { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + }; + + return { project, sourceFile, cleanup }; +} + +export function expectToBeDefined(value: T | undefined | null): T { + if (value === undefined || value === null) { + throw new Error('Expected value to be defined'); + } + return value; +} + +export function expectArrayToContain(array: T[], predicate: (item: T) => boolean): T { + const found = array.find(predicate); + if (!found) { + throw new Error('Expected array to contain matching item'); + } + return found; +} \ No newline at end of file diff --git a/ts-parser/src/parser/test/tsconfig.json b/ts-parser/src/parser/test/tsconfig.json new file mode 100644 index 0000000..55177cc --- /dev/null +++ b/ts-parser/src/parser/test/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "lib": ["ES2020"], + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "moduleResolution": "node", + "resolveJsonModule": true, + "types": ["jest", "node"] + }, + "include": [ + "**/*.ts" + ], + "exclude": [ + "node_modules", + "dist", + "temp" + ] +} \ No newline at end of file diff --git a/ts-parser/src/types/typescript-mapping.md b/ts-parser/src/types/typescript-mapping.md new file mode 100644 index 0000000..d34fd23 --- /dev/null +++ b/ts-parser/src/types/typescript-mapping.md @@ -0,0 +1,70 @@ +# TypeScript Module/Package Mapping Strategy for UNIAST v0.1.3 + +## TypeScript Structure Analysis + +### 1. Module vs Package in TypeScript Context + +**Module (UNIAST) = npm package (TypeScript)** +- **Directory**: Contains `package.json` +- **Language**: Always '' (empty string) for TypeScript +- **Name**: From `package.json` name field +- **Version**: From `package.json` version field +- **Dir**: Relative path from repository root +- **Dependencies**: From `package.json` dependencies/devDependencies + +**Package (UNIAST) = TypeScript namespace/module** +- **Directory**: Source directory with TypeScript files +- **PkgPath**: Import path (e.g., "@myorg/mypackage/utils", "./src/models") +- **IsMain**: True for main entry point (index.ts) +- **IsTest**: True for test files (*.test.ts, *.spec.ts) + +### 2. Mapping Strategy + +``` +Repository (root) +├── Module (npm package) +│ ├── package.json +│ ├── src/ (Package) +│ │ ├── index.ts (IsMain=true) +│ │ ├── utils.ts (PkgPath="./src/utils") +│ │ └── models/ +│ │ └── user.ts (PkgPath="./src/models/user") +│ └── test/ (Package) +│ └── index.test.ts (IsTest=true) +└── node_modules/ + ├── lodash (Module - external) + │ └── ... + └── react (Module - external) + └── ... +``` + +### 3. Package Path Resolution + +**Internal Packages**: +- Relative to module root +- Examples: "./src/utils", "./lib/helpers", "./test/mocks" + +**External Packages**: +- From node_modules +- Examples: "lodash", "react", "@types/node" + +### 4. File to Package Assignment + +Each TypeScript file belongs to a Package based on: +1. **Directory structure** - Files in same directory = same package +2. **Import statements** - Used to determine package boundaries +3. **package.json exports** - Define public API boundaries + +### 5. Special Cases + +**Monorepos**: +- Each workspace = separate Module +- packages/app1, packages/lib1 = separate Modules + +**Scoped packages**: +- @myorg/package1 = Module with name "@myorg/package1" +- @myorg/package2 = separate Module + +**TypeScript path mapping**: +- tsconfig.json paths affect PkgPath resolution +- "@/*": ["src/*"] → PkgPath="@/utils" maps to "./src/utils" \ No newline at end of file diff --git a/ts-parser/src/types/uniast.ts b/ts-parser/src/types/uniast.ts new file mode 100644 index 0000000..fe2f10b --- /dev/null +++ b/ts-parser/src/types/uniast.ts @@ -0,0 +1,214 @@ +// UNIAST v0.1.3 TypeScript interfaces +// Based on the specification in spec.md + +// ================================================================ +// Core Structures +// ================================================================ + +/** + * Root object representing an entire code repository. + */ +export interface Repository { + /** UNIAST specification version. Fixed to "v0.1.3". */ + ASTVersion: string; + /** Unique identifier for the repository. Field name in JSON is "id". */ + id: string; + /** Map of all modules in the repository. Keys are unique path identifiers. */ + Modules: Record; + /** + * Global symbol graph. Keys are fully-qualified unique symbol strings, values are the corresponding Node objects. + */ + Graph: Record; +} + +/** + * A compilation unit, e.g., a Go module or an npm package. + */ +export interface Module { + Language: 'go' | 'rust' | 'cxx' | 'python' | ''; + Version: string; + Name: string; + /** Path relative to the repository root. Empty string "" denotes an external dependency module. */ + Dir: string; + /** Map of all packages in the module. Keys are package import paths. */ + Packages: Record; + /** (Optional) Map of module dependencies. */ + Dependencies?: Record; + /** (Optional) Map of metadata for all files in the module. */ + Files?: Record; +} + +/** + * A namespace containing a group of code symbols. + */ +export interface Package { + IsMain: boolean; + IsTest: boolean; + /** Unique import path for this package. Located at the top level of the Package object. */ + PkgPath: string; + /** Map of all functions and methods. Keys are symbol names. */ + Functions: Record; + /** Map of all type definitions. Keys are type names. */ + Types: Record; + /** Map of all global variables and constants. Keys are variable names. */ + Vars: Record; +} + +// ================================================================ +// Core Definitions +// ================================================================ + +/** + * Globally unique identifier for any code symbol. + */ +export interface Identity { + ModPath: string; + PkgPath: string; + Name: string; +} + +/** + * Exact location of a symbol definition or reference in a source file. + */ +export interface FileLine { + File: string; + Line: number; // 1-based line number. + StartOffset: number; + EndOffset: number; +} + +/** + * Reference to another code symbol. Contains the target symbol's Identity and the location of the reference. + * Note: the FileLine part is optional. + */ +export type Dependency = Identity & Partial; + +// ================================================================ +// Concrete Symbol Structures +// ================================================================ + +export interface Function { + // --- Identity & FileLine (inline fields) --- + ModPath: string; + PkgPath: string; + Name: string; + File: string; + Line: number; + StartOffset: number; + EndOffset: number; + + // --- Function-specific Fields --- + Exported: boolean; + IsMethod: boolean; + IsInterfaceMethod: boolean; + /** Complete source code of the function, including signature and body. */ + Content: string; + Signature?: string; + Receiver?: Receiver; + Params?: Dependency[]; + Results?: Dependency[]; + FunctionCalls?: Dependency[]; + MethodCalls?: Dependency[]; + Types?: Dependency[]; + /** References to package-level variables, exported or not. */ + GlobalVars?: Dependency[]; +} + +export interface Type { + // --- Identity & FileLine (inline fields) --- + ModPath: string; + PkgPath: string; + Name: string; + File: string; + Line: number; + StartOffset: number; + EndOffset: number; + + // --- Type-specific Fields --- + Exported: boolean; + TypeKind: 'struct' | 'interface' | 'typedef' | 'enum'; + Content: string; + SubStruct?: Dependency[]; + InlineStruct?: Dependency[]; + Methods?: Record; + Implements?: Identity[]; +} + +export interface Var { + // --- Identity & FileLine (inline fields) --- + ModPath: string; + PkgPath: string; + Name: string; + File: string; + Line: number; + StartOffset: number; + EndOffset: number; + + // --- Var-specific Fields --- + IsExported: boolean; + IsConst: boolean; + IsPointer: boolean; + Content: string; + Type?: Identity; + Dependencies?: Dependency[]; + Groups?: Identity[]; +} + +// ================================================================ +// Auxiliary & Graph Structures +// ================================================================ + +/** + * Represents a node (symbol entity) in the code. + */ +export interface Node { + // --- Identity (inline fields) --- + ModPath: string; + PkgPath: string; + Name: string; + + // --- Node-specific Fields --- + Type: 'FUNC' | 'TYPE' | 'VAR' | 'UNKNOWN'; + /** (Optional) List of other nodes this node depends on (outgoing edges). */ + Dependencies?: Relation[]; + /** (Optional) List of nodes that reference this node (incoming edges). */ + References?: Relation[]; + /** (Optional) List of interface nodes this node implements. */ + Implements?: Relation[]; + /** (Optional) List of parent nodes this node inherits from. */ + Inherits?: Relation[]; + /** (Optional) List of other nodes in the same definition group. */ + Groups?: Relation[]; +} + +/** + * Describes a relationship between two nodes. + */ +export interface Relation { + // --- Identity (inline fields) --- + ModPath: string; + PkgPath: string; + Name: string; + + // --- Relation-specific Fields --- + Kind: 'Dependency' | 'Implement' | 'Inherit' | 'Group'; +} + +export interface File { + Path: string; + Imports?: Import[]; + Package?: string; +} + +/** + * Represents an import declaration. Can be a simple string or an object containing alias and path. + */ +export type Import = string | { + Alias?: string; + Path: string; +}; + +export interface Receiver { + IsPointer: boolean; + Type: Identity; +} \ No newline at end of file diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts new file mode 100644 index 0000000..5c418c0 --- /dev/null +++ b/ts-parser/src/utils/dependency-utils.ts @@ -0,0 +1,138 @@ +import { Identifier, Node, SymbolFlags, SyntaxKind, Type, TypeNode, TypeReferenceNode } from 'ts-morph'; +import { Dependency } from '../types/uniast'; +import { SymbolResolver } from './symbol-resolver'; + +export class DependencyUtils { + private symbolResolver: SymbolResolver; + private projectRoot: string; + + constructor(symbolResolver: SymbolResolver, projectRoot: string) { + this.symbolResolver = symbolResolver; + this.projectRoot = projectRoot; + } + + /** + * Extract dependencies from identifiers in a node + */ + extractDependenciesFromIdentifiers( + node: any, + moduleName: string, + packagePath: string + ): Dependency[] { + const dependencies: Dependency[] = []; + const visited = new Set(); + + const identifiers = node.getDescendantsOfKind(SyntaxKind.Identifier); + + for (const identifier of identifiers) { + // Skip function calls, constructors, property names, etc. + const parent = identifier.getParent(); + if ( + (Node.isCallExpression(parent) && parent.getExpression() === identifier) || + (Node.isNewExpression(parent) && parent.getExpression() === identifier) || + (Node.isPropertyAccessExpression(parent) && parent.getNameNode() === identifier) || + (Node.isBindingElement(parent) && parent.getPropertyNameNode() === identifier) || + (Node.isPropertyAssignment(parent) && parent.getNameNode() === identifier) || + (Node.isShorthandPropertyAssignment(parent) && parent.getNameNode() === identifier) + ) { + continue; + } + + const symbol = identifier.getSymbol(); + if (symbol) { + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + if (resolvedSymbol && !resolvedSymbol.isExternal) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + dependencies.push({ + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }); + } + } + } + } + + return dependencies; + } + + /** + * Extract atomic type references from complex type expressions + */ + extractAtomicTypeReferences(typeNode: Identifier): Type[] { + + // Make sure it's a type identifier + const symbol = typeNode.getSymbol(); + if (!symbol || (symbol.getFlags() & (SymbolFlags.Type | SymbolFlags.TypeParameter | SymbolFlags.TypeAlias | SymbolFlags.TypeLiteral)) === 0) { + return []; + } + + const type = typeNode.getType(); + const results: Type[] = []; + const visited = new Set(); + + function visit(t: Type) { + // Make sure it's not visited + if(visited.has(t)) { + return; + } + // If it's a generic type parameter (e.g. T, K, V), skip it + if (t.isTypeParameter()) { + return; + } + visited.add(t); + + if (t.isUnion && t.isUnion()) { + t.getUnionTypes().forEach(visit); + } else if (t.isIntersection && t.isIntersection()) { + t.getIntersectionTypes().forEach(visit); + } else if (t.isArray && t.isArray()) { + visit(t.getArrayElementTypeOrThrow()); + } else if (t.getAliasTypeArguments && t.getAliasTypeArguments().length > 0) { + t.getAliasTypeArguments().forEach(visit); + } else if (t.getTypeArguments && t.getTypeArguments().length > 0) { + t.getTypeArguments().forEach(visit); + } else { + results.push(t); + } + } + + visit(type); + return results; + } + + extractAtomicType(type: Type): Type[] { + const results: Type[] = []; + function visit(t: Type) { + if (t.isUnion && t.isUnion()) { + t.getUnionTypes().forEach(visit); + } else if (t.isIntersection && t.isIntersection()) { + t.getIntersectionTypes().forEach(visit); + } else if (t.isArray && t.isArray()) { + visit(t.getArrayElementTypeOrThrow()); + } else if (t.getAliasTypeArguments && t.getAliasTypeArguments().length > 0) { + t.getAliasTypeArguments().forEach(visit); + } else if (t.getTypeArguments && t.getTypeArguments().length > 0) { + t.getTypeArguments().forEach(visit); + } else { + results.push(t); + } + } + + visit(type); + return results; + } + + private getPkgPath(packagePath: string): string { + const PathUtils = require('./path-utils').PathUtils; + const pathUtils = new PathUtils(this.projectRoot); + return pathUtils.getPkgPath(packagePath); + } + +} \ No newline at end of file diff --git a/ts-parser/src/utils/path-utils.ts b/ts-parser/src/utils/path-utils.ts new file mode 100644 index 0000000..7e58bae --- /dev/null +++ b/ts-parser/src/utils/path-utils.ts @@ -0,0 +1,35 @@ +import * as path from 'path'; + +export class PathUtils { + private projectRoot: string; + + constructor(projectRoot: string) { + this.projectRoot = projectRoot; + } + + /** + * Get relative path from project root + */ + getRelativePath(filePath: string): string { + return path.relative(this.projectRoot, filePath).replace(/\\/g, '/'); + } + + /** + * Get package path relative to project root + */ + getPkgPath(packagePath: string): string { + // Resolve the provided path against the project root to get a full, absolute path. + const absolutePath = path.resolve(this.projectRoot, packagePath); + + // If the resolved path is the same as the project root, it's the base package. + if (absolutePath === this.projectRoot) { + return '.'; + } + + // Otherwise, compute the relative path from the project root. + const relativePath = path.relative(this.projectRoot, absolutePath); + + // Normalize slashes for consistency. + return relativePath.replace(/\\/g, '/'); + } +} \ No newline at end of file diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts new file mode 100644 index 0000000..4ee6ff3 --- /dev/null +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -0,0 +1,349 @@ +import { Project, Symbol, Node, SyntaxKind, SymbolFlags } from 'ts-morph'; +import * as path from 'path'; +import * as fs from 'fs'; +import * as JSON5 from 'json5'; + + +export interface ResolvedSymbol { + name: string; + filePath: string; + line: number; + column: number; + startOffset: number; + endOffset: number; + isExternal: boolean; + moduleName?: string; + packagePath?: string; +} + +export class SymbolResolver { + private project: Project; + private projectRoot: string; + private resolutionCache = new Map(); + private packageJsonCache = new Map(); + private mainPackageName: string; + + constructor(project: Project, projectRoot: string) { + this.project = project; + this.projectRoot = this.normalizePath(projectRoot); + + // Pre-cache the main package.json to avoid repeated file reads + const mainPackageJsonPath = path.join(this.projectRoot, 'package.json'); + this.mainPackageName = 'unknown'; + try { + if (fs.existsSync(mainPackageJsonPath)) { + const content = fs.readFileSync(mainPackageJsonPath, 'utf8'); + const packageJson = JSON5.parse(content); + this.mainPackageName = packageJson.name || 'unknown'; + this.packageJsonCache.set(this.projectRoot, packageJson); + } + } catch (e) { + // ignore + } + } + + /** + * Resolve a symbol to its actual definition point, following imports and exports. + */ + resolveSymbol(symbol: Symbol): ResolvedSymbol | null { + const declarations = symbol.getDeclarations(); + if (!declarations || declarations.length === 0) { + return null; + } + const cacheKey = `${declarations[0].getSourceFile().getFilePath()}#${symbol.getEscapedName()}`; + if (this.resolutionCache.has(cacheKey)) { + return this.resolutionCache.get(cacheKey)!; + } + + const definitionNode = this.findActualDefinition(symbol); + + if (!definitionNode) { + console.warn(`Symbol not found: ${symbol.getName()}.`) + this.resolutionCache.set(cacheKey, null); + return null; + } + + const sourceFile = definitionNode.getSourceFile(); + const filePath = sourceFile.getFilePath(); + const isExternal = sourceFile.isInNodeModules(); + + const moduleInfo = this.extractModuleInfo(filePath, isExternal); + const packageInfo = this.extractPackageInfo(filePath, isExternal); + + const resolved: ResolvedSymbol = { + name: assignSymbolName(symbol), // Use the original symbol name + filePath: this.getRelativePath(filePath), + line: definitionNode.getStartLineNumber(), + column: definitionNode.getStartLinePos(), + startOffset: definitionNode.getStart(), + endOffset: definitionNode.getEnd(), + isExternal, + moduleName: moduleInfo.name, + packagePath: packageInfo.path, + }; + + this.resolutionCache.set(cacheKey, resolved); + return resolved; + } + + /** + * Finds the actual definition node for a symbol, traversing aliases. + */ + findActualDefinition(symbol: Symbol): Node | null { + let current: Symbol | undefined = symbol; + const visited = new Set(); + + let lastCurrent: Symbol | null = null; + + for (let i = 0; i < 50; i++) { // 加个安全上限 + if (!current) return null; + if (visited.has(current)) { + console.warn("循环别名:", current.getName()); + break; + } + visited.add(current); + + // If it's not an alias, break the loop + if (!(current.getFlags() & SymbolFlags.Alias)) { + break; + } + + // If it's an alias, follow it + const aliased = current.getAliasedSymbol(); + if (aliased && aliased !== current) { + lastCurrent = current; + current = aliased; + continue; + } + + // If it's an alias, check if it points to the default export + const decls = current.getDeclarations(); + for (const decl of decls) { + if (Node.isImportClause(decl) || Node.isImportSpecifier(decl) || Node.isExportSpecifier(decl)) { + const importDecl = decl.getFirstAncestorByKind(SyntaxKind.ImportDeclaration) + ?? decl.getFirstAncestorByKind(SyntaxKind.ExportDeclaration); + if (importDecl && Node.isImportDeclaration(importDecl)) { + const sourceFile = importDecl.getModuleSpecifierSourceFile(); + if (sourceFile) { + const defExport = sourceFile.getDefaultExportSymbol(); + if (defExport && defExport !== current) { + current = defExport; + continue; + } + } + } + } + } + + break; + } + + if (!current) return null; + + const declarations = current.getDeclarations(); + if (declarations.length === 0) { + if (lastCurrent) { + console.log("Can't parse: " + lastCurrent.getName(), ". Possibly this library has no .d.ts") + } + return null; + } + + // First priority: non-d.ts definition nodes + const definition = declarations.find(d => this.isDefinitionNode(d) && !d.getSourceFile().isDeclarationFile()); + if (definition) return definition; + + // Second priority: non-d.ts any declaration + const nonDeclFile = declarations.find(d => !d.getSourceFile().isDeclarationFile()); + if (nonDeclFile) return nonDeclFile; + + // Third priority: d.ts any definition node + const anyDef = declarations.find(d => this.isDefinitionNode(d)); + if (anyDef) return anyDef; + + // Last fallback: any declaration + return declarations[0]; + } + + + + + /** + * Check if a node represents an actual definition + */ + private isDefinitionNode(node: Node): boolean { + const kind = node.getKind(); + return kind === SyntaxKind.VariableDeclaration || + kind === SyntaxKind.FunctionDeclaration || + kind === SyntaxKind.ClassDeclaration || + kind === SyntaxKind.InterfaceDeclaration || + kind === SyntaxKind.TypeAliasDeclaration || + kind === SyntaxKind.EnumDeclaration || + kind === SyntaxKind.MethodDeclaration || + kind === SyntaxKind.PropertyDeclaration || + kind === SyntaxKind.Parameter || + kind === SyntaxKind.GetAccessor || + kind === SyntaxKind.SetAccessor; + } + + /** + * Extract module information from a file path + */ + private extractModuleInfo(filePath: string, isExternal: boolean): { name: string } { + if (isExternal) { + // Handle TypeScript lib files + if (filePath.includes('typescript/lib')) { + const fileName = path.basename(filePath, '.d.ts'); + if (fileName.startsWith('lib.es')) { + return { name: 'es' }; // Standard ECMAScript library + } + return { name: fileName }; + } + + const nodeModulesIndex = filePath.indexOf('node_modules'); + if (nodeModulesIndex === -1) { + return { name: 'unknown' }; + } + + const afterNodeModules = filePath.substring(nodeModulesIndex + 'node_modules'.length + 1); + const parts = afterNodeModules.split(path.sep); + + // Handle @types packages - map to actual runtime packages + if (parts[0] === '@types') { + if (parts[1] === 'node') { + // For @types/node, extract the actual module name from the file path + const fileName = path.basename(filePath, '.d.ts'); + return { name: fileName }; + } else if (parts.length > 2) { + // For @types/some-package, map to the actual package + return { name: parts[1] }; + } else { + return { name: parts[1] }; + } + } else if (parts[0].startsWith('@')) { + return { name: `${parts[0]}/${parts[1]}` }; + } else { + return { name: parts[0] }; + } + } else { + // For internal modules, use the pre-cached main package name + return { name: this.mainPackageName }; + } + } + + /** + * Extract package information from a file path + */ + private extractPackageInfo(filePath: string, isExternal: boolean): { path: string } { + if (isExternal) { + return { path: this.extractModuleInfo(filePath, isExternal).name }; + } + const dir = this.normalizePath(path.dirname(filePath)); + const relativePath = path.relative(this.projectRoot, dir); + return { path: relativePath === '' ? '.' : `${relativePath}` }; + } + + /** + * Normalize file path for consistent output + */ + public normalizePath(filePath: string): string { + return filePath.replace(/\\/g, '/'); + } + + public getRelativePath(filePath: string): string { + return path.relative(this.projectRoot, filePath).replace(/\\/g, '/'); + } + + /** + * Clear the resolution cache + */ + clearCache(): void { + this.resolutionCache.clear(); + } +} + +const symbolNameCache = new Map(); + +export function assignSymbolName(symbol: Symbol): string { + let decls = symbol.getDeclarations() + if(decls.length === 0) { + return symbol.getEscapedName() + } + + const declFile = decls[0].getSourceFile().getFilePath() + + let rawName = symbol.getEscapedName() + + // Handle methods, properties, constructors, and functions with proper naming + const firstDecl = decls[0]; + + // Handle class/interface members with parent prefix + if(Node.isMethodDeclaration(firstDecl) || Node.isMethodSignature(firstDecl) || + Node.isPropertyDeclaration(firstDecl) || Node.isPropertySignature(firstDecl) || + Node.isConstructorDeclaration(firstDecl)) { + const parent = firstDecl.getParent(); + if(Node.isClassDeclaration(parent) || Node.isInterfaceDeclaration(parent)) { + const parentName = parent.getName() || 'AnonymousClass'; + rawName = parentName + "." + rawName + } + } + + // Handle functions with their actual name instead of 'default' for default exports + if(Node.isFunctionDeclaration(firstDecl)) { + const actualName = firstDecl.getName(); + if (actualName && rawName === 'default') { + rawName = actualName; + } + } + + // Handle enum members with enum prefix + if(Node.isEnumMember(firstDecl)) { + const parent = firstDecl.getParent(); + if(Node.isEnumDeclaration(parent)) { + const parentName = parent.getName() || 'AnonymousEnum'; + // Only add prefix if not already prefixed + if (!rawName.startsWith(parentName + ".")) { + rawName = parentName + "." + rawName + } + } + } + + // Handle default export functions/classes + if((Node.isFunctionDeclaration(firstDecl) || Node.isClassDeclaration(firstDecl)) && + (firstDecl as any).isDefaultExport && rawName === 'default') { + // For default exports, use the actual name if available + const actualName = (firstDecl as any).getName?.() || (firstDecl as any).name?.getText?.(); + if (actualName) { + rawName = actualName; + } + } + + const id = declFile + "#" + rawName + if(!symbolNameCache.has(id)) { + symbolNameCache.set(id, symbol) + return rawName + } + + const symbolExists = symbolNameCache.get(id) + // make ts happy + if(!symbolExists) { + return rawName + } + + const getDeclsPos = (symbol: Symbol) => { + let decls_pos = [] + for (let decl of symbol.getDeclarations()) { + decls_pos.push(decl.getStart()) + } + decls_pos.sort((a, b) => a - b) + return decls_pos + } + + const arr1 = getDeclsPos(symbol) + const arr2 = getDeclsPos(symbolExists) + if(arr1.join(',') === arr2.join(',')) { + return rawName + } + + // mangled name + return rawName + "_" + getDeclsPos(symbol).join(".") +} \ No newline at end of file diff --git a/ts-parser/src/utils/tsconfig-cache.ts b/ts-parser/src/utils/tsconfig-cache.ts new file mode 100644 index 0000000..88cc8c7 --- /dev/null +++ b/ts-parser/src/utils/tsconfig-cache.ts @@ -0,0 +1,117 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as JSON5 from 'json5'; + + +export interface TsConfigData { + compilerOptions?: any; + paths?: Record; + rootDir?: string; + outDir?: string; + [key: string]: any; +} + +export class TsConfigCache { + private static instance: TsConfigCache; + private cache: Map = new Map(); + private globalConfigPath: string | null = null; + + private constructor() {} + + public static getInstance(): TsConfigCache { + if (!TsConfigCache.instance) { + TsConfigCache.instance = new TsConfigCache(); + } + return TsConfigCache.instance; + } + + /** + * Set the global tsconfig.json path + * @param configPath Custom tsconfig.json path (can be relative) + */ + public setGlobalConfigPath(configPath: string): void { + this.globalConfigPath = path.resolve(configPath); + // Clear cache, force reload + this.cache.clear(); + } + + /** + * Get tsconfig.json data, load only once and cache + * @param projectRoot Project root directory + * @param customPath Custom tsconfig.json path (optional) + * @returns tsconfig.json data + */ + public getTsConfig(projectRoot: string, customPath?: string): TsConfigData { + // Get tsconfig.json path + const configPath = customPath || this.globalConfigPath || path.join(projectRoot, 'tsconfig.json'); + const resolvedPath = path.resolve(configPath); + + // If cache exists, return directly + if (this.cache.has(resolvedPath)) { + return this.cache.get(resolvedPath)!; + } + + // If file does not exist, return empty object + if (!fs.existsSync(resolvedPath)) { + const emptyConfig: TsConfigData = {}; + this.cache.set(resolvedPath, emptyConfig); + return emptyConfig; + } + + try { + const tsconfig = JSON5.parse(fs.readFileSync(resolvedPath, 'utf8')); + const configData: TsConfigData = { + compilerOptions: tsconfig.compilerOptions || {}, + paths: tsconfig.compilerOptions?.paths || {}, + rootDir: tsconfig.compilerOptions?.rootDir, + outDir: tsconfig.compilerOptions?.outDir, + ...tsconfig + }; + + this.cache.set(resolvedPath, configData); + return configData; + } catch (error) { + console.warn(`Failed to parse tsconfig.json at ${resolvedPath}:`, error); + const emptyConfig: TsConfigData = {}; + this.cache.set(resolvedPath, emptyConfig); + return emptyConfig; + } + } + + /** + * Get path alias configuration + * @param projectRoot Project root directory + * @param customPath Custom tsconfig.json path (optional) + * @returns Path alias mapping + */ + public getPathAliases(projectRoot: string, customPath?: string): Record { + const config = this.getTsConfig(projectRoot, customPath); + const aliases: Record = {}; + + if (config.paths) { + for (const [alias, targets] of Object.entries(config.paths)) { + if (Array.isArray(targets)) { + aliases[alias] = targets.map(target => + path.resolve(path.dirname(customPath || this.globalConfigPath || path.join(projectRoot, 'tsconfig.json')), target) + ); + } + } + } + + return aliases; + } + + /** + * Clear all caches + */ + public clearCache(): void { + this.cache.clear(); + } + + /** + * Get current tsconfig.json path + */ + public getCurrentConfigPath(projectRoot: string): string { + return this.globalConfigPath || path.join(projectRoot, 'tsconfig.json'); + } +} \ No newline at end of file diff --git a/ts-parser/src/utils/type-utils.ts b/ts-parser/src/utils/type-utils.ts new file mode 100644 index 0000000..5c2a165 --- /dev/null +++ b/ts-parser/src/utils/type-utils.ts @@ -0,0 +1,24 @@ +/** + * Common type utility functions + */ + +export class TypeUtils { + private static readonly PRIMITIVE_TYPES = new Set([ + 'string', 'number', 'boolean', 'void', 'any', 'unknown', 'never', + 'null', 'undefined', 'object', 'symbol', 'bigint' + ]); + + /** + * Check if a type name is a primitive type + */ + static isPrimitiveType(typeName: string): boolean { + return this.PRIMITIVE_TYPES.has(typeName.toLowerCase()); + } + + /** + * Extract base type name from complex type expressions + */ + static extractBaseTypeName(typeName: string): string { + return typeName.split('<')[0].split('&')[0].split('|')[0].trim(); + } +} \ No newline at end of file diff --git a/ts-parser/src/utils/typescript-structure.ts b/ts-parser/src/utils/typescript-structure.ts new file mode 100644 index 0000000..7d78930 --- /dev/null +++ b/ts-parser/src/utils/typescript-structure.ts @@ -0,0 +1,235 @@ +import * as path from 'path'; +import * as fs from 'fs'; +import { TsConfigCache } from './tsconfig-cache'; +import * as JSON5 from 'json5'; + + +export interface TypeScriptStructure { + modules: Map; + packages: Map; + files: Map; +} + +export interface ModuleInfo { + name: string; + version: string; + path: string; + packageJson: any; + isExternal: boolean; +} + +export interface PackageInfo { + pkgPath: string; + moduleName: string; + isMain: boolean; + isTest: boolean; + files: string[]; + imports: string[]; +} + +export interface FileInfo { + filePath: string; + packagePath: string; + moduleName: string; + isTest: boolean; + imports: string[]; +} + +export class TypeScriptStructureAnalyzer { + private repoPath: string; + private tsConfigCache: TsConfigCache; + + constructor(repoPath: string) { + this.repoPath = path.resolve(repoPath); + this.tsConfigCache = TsConfigCache.getInstance(); + } + + analyze(options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): TypeScriptStructure { + const structure: TypeScriptStructure = { + modules: new Map(), + packages: new Map(), + files: new Map() + }; + + // Only find main module, never parse external modules + const mainModule = this.findMainModule(); + if (mainModule) { + structure.modules.set(mainModule.name, mainModule); + const packages = this.analyzePackages(mainModule, options); + packages.forEach(pkg => { + structure.packages.set(pkg.pkgPath, pkg); + }); + } + + // Map files to packages + for (const [packagePath, pkg] of structure.packages) { + pkg.files.forEach(filePath => { + const fileInfo: FileInfo = { + filePath, + packagePath, + moduleName: pkg.moduleName, + isTest: pkg.isTest, + imports: [] // Will be populated by parser + }; + structure.files.set(filePath, fileInfo); + }); + } + + return structure; + } + + + private findMainModule(): ModuleInfo | null { + const packageJsonPath = path.join(this.repoPath, 'package.json'); + if (!fs.existsSync(packageJsonPath)) { + return null; + } + + try { + const packageJson = JSON5.parse(fs.readFileSync(packageJsonPath, 'utf8')); + return { + name: packageJson.name || path.basename(this.repoPath), + version: packageJson.version || '0.0.0', + path: this.repoPath, + packageJson, + isExternal: false + }; + } catch (error) { + console.warn(`Failed to parse package.json: ${error}`); + return null; + } + } + + + private analyzePackages(module: ModuleInfo, options: { noDist?: boolean } = {}): PackageInfo[] { + const packages: PackageInfo[] = []; + const sourceDirs = this.findSourceDirectories(module, options); + + for (const sourceDir of sourceDirs) { + const packageInfos = this.createPackagesFromDirectory(module, sourceDir, options); + packages.push(...packageInfos); + } + + return packages; + } + + private findSourceDirectories(module: ModuleInfo, options: { noDist?: boolean } = {}): string[] { + const dirs: string[] = []; + const packageJson = module.packageJson; + + // Get tsconfig.json configuration + const config = this.tsConfigCache.getTsConfig(module.path); + + if (config.rootDir) { + dirs.push(path.join(module.path, config.rootDir)); + } + if (config.outDir && !(options.noDist && config.outDir === 'dist')) { + dirs.push(path.join(module.path, config.outDir)); + } + + // Check package.json for main entry + if (packageJson.main) { + const mainDir = path.dirname(path.join(module.path, packageJson.main)); + if (fs.existsSync(mainDir)) { + dirs.push(mainDir); + } + } + + // Default source directories + const defaultDirs = ['src', 'lib']; + if (!options.noDist) { + defaultDirs.push('dist'); + } + + for (const dir of defaultDirs) { + const dirPath = path.join(module.path, dir); + if (fs.existsSync(dirPath) && fs.statSync(dirPath).isDirectory()) { + dirs.push(dirPath); + } + } + + // Remove duplicates and ensure paths exist + return [...new Set(dirs)].filter(dir => fs.existsSync(dir)); + } + + private createPackagesFromDirectory(module: ModuleInfo, sourceDir: string, options: { noDist?: boolean } = {}): PackageInfo[] { + const packages: PackageInfo[] = []; + + // Find all TypeScript files + const tsFiles = this.findTypeScriptFiles(sourceDir, options); + + // Group files by directory (each directory = one package) + const dirGroups = new Map(); + + for (const file of tsFiles) { + const dir = path.dirname(file); + if (!dirGroups.has(dir)) { + dirGroups.set(dir, []); + } + dirGroups.get(dir)!.push(file); + } + + // Create packages from directory groups + for (const [dir, files] of dirGroups) { + const relativeDir = path.relative(this.repoPath, dir); + const pkgPath = (relativeDir === '' ? '.' : relativeDir).replace(/\\/g, '/'); + + // TODO: REWRITE isMain Logic + const isMain = files.some(file => + path.basename(file, path.extname(file)) === 'index' || + path.basename(file, path.extname(file)) === 'main' + ); + + const relativePath = path.relative(this.repoPath, dir); + + const isTest = relativePath.includes('test') || relativePath.includes('__tests__') || + files.some(file => file.includes('.test.') || file.includes('.spec.')); + + packages.push({ + pkgPath, + moduleName: module.name, + isMain, + isTest, + files, + imports: [] // Will be populated during parsing + }); + } + + return packages; + } + + private findTypeScriptFiles(dir: string, options: { noDist?: boolean } = {}): string[] { + const files: string[] = []; + + function traverse(currentDir: string) { + if (!fs.existsSync(currentDir)) return; + + const entries = fs.readdirSync(currentDir, { withFileTypes: true }); + + for (const entry of entries) { + const fullPath = path.join(currentDir, entry.name); + + if (entry.isDirectory()) { + // Skip node_modules and hidden directories + if (entry.name === 'node_modules' || entry.name.startsWith('.')) { + continue; + } + // Skip dist folders if --no-dist is enabled + if (options.noDist && entry.name === 'dist') { + continue; + } + traverse(fullPath); + } else if (entry.isFile()) { + // Include .ts and .js files + if (entry.name.endsWith('.ts') || entry.name.endsWith('.js') || + entry.name.endsWith('.tsx') || entry.name.endsWith('.jsx')) { + files.push(fullPath); + } + } + } + } + + traverse(dir); + return files; + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/config.json b/ts-parser/test-repo/config.json new file mode 100644 index 0000000..42d62fb --- /dev/null +++ b/ts-parser/test-repo/config.json @@ -0,0 +1,15 @@ +{ + "port": 3000, + "database": { + "host": "localhost", + "port": 27017, + "name": "testapp", + "user": "admin", + "password": "password123" + }, + "jwtSecret": "your-super-secret-jwt-key-change-in-production", + "bcryptRounds": 10, + "corsOrigins": ["http://localhost:3000", "http://localhost:3001"], + "rateLimitWindow": 900000, + "rateLimitMax": 100 +} \ No newline at end of file diff --git a/ts-parser/test-repo/package-lock.json b/ts-parser/test-repo/package-lock.json new file mode 100644 index 0000000..0308460 --- /dev/null +++ b/ts-parser/test-repo/package-lock.json @@ -0,0 +1,2476 @@ +{ + "name": "test-repo", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "test-repo", + "version": "1.0.0", + "dependencies": { + "axios": "^1.4.0", + "bcrypt": "^5.1.0", + "cors": "^2.8.5", + "express": "^4.18.2", + "helmet": "^7.0.0", + "jsonwebtoken": "^9.0.0", + "lodash": "^4.17.21", + "mongoose": "^7.0.0" + }, + "devDependencies": { + "@types/bcrypt": "^5.0.0", + "@types/cors": "^2.8.13", + "@types/express": "^4.17.17", + "@types/jsonwebtoken": "^9.0.2", + "@types/lodash": "^4.14.195", + "@types/node": "^20.0.0", + "nodemon": "^3.0.0", + "typescript": "^5.0.0" + } + }, + "node_modules/@mapbox/node-pre-gyp": { + "version": "1.0.11", + "resolved": "https://bnpm.byted.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.11.tgz", + "integrity": "sha512-Yhlar6v9WQgUp/He7BdgzOz8lqMQ8sU+jkCq7Wx8Myc5YFJLbEe7lgui/V7G1qB1DJykHSGwreceSaD60Y0PUQ==", + "license": "BSD-3-Clause", + "dependencies": { + "detect-libc": "^2.0.0", + "https-proxy-agent": "^5.0.0", + "make-dir": "^3.1.0", + "node-fetch": "^2.6.7", + "nopt": "^5.0.0", + "npmlog": "^5.0.1", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.11" + }, + "bin": { + "node-pre-gyp": "bin/node-pre-gyp" + } + }, + "node_modules/@mongodb-js/saslprep": { + "version": "1.3.0", + "resolved": "https://bnpm.byted.org/@mongodb-js/saslprep/-/saslprep-1.3.0.tgz", + "integrity": "sha512-zlayKCsIjYb7/IdfqxorK5+xUMyi4vOKcFy10wKJYc63NSdKI8mNME+uJqfatkPmOSMMUiojrL58IePKBm3gvQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "sparse-bitfield": "^3.0.3" + } + }, + "node_modules/@types/bcrypt": { + "version": "5.0.2", + "resolved": "https://bnpm.byted.org/@types/bcrypt/-/bcrypt-5.0.2.tgz", + "integrity": "sha512-6atioO8Y75fNcbmj0G7UjI9lXN2pQ/IGJ2FWT4a/btd0Lk9lQalHLKhkgKVZ3r+spnmWUKfbMi1GEe9wyHQfNQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/body-parser": { + "version": "1.19.6", + "resolved": "https://bnpm.byted.org/@types/body-parser/-/body-parser-1.19.6.tgz", + "integrity": "sha512-HLFeCYgz89uk22N5Qg3dvGvsv46B8GLvKKo1zKG4NybA8U2DiEO3w9lqGg29t/tfLRJpJ6iQxnVw4OnB7MoM9g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + } + }, + "node_modules/@types/connect": { + "version": "3.4.38", + "resolved": "https://bnpm.byted.org/@types/connect/-/connect-3.4.38.tgz", + "integrity": "sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/cors": { + "version": "2.8.19", + "resolved": "https://bnpm.byted.org/@types/cors/-/cors-2.8.19.tgz", + "integrity": "sha512-mFNylyeyqN93lfe/9CSxOGREz8cpzAhH+E93xJ4xWQf62V8sQ/24reV2nyzUWM6H6Xji+GGHpkbLe7pVoUEskg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/express": { + "version": "4.17.23", + "resolved": "https://bnpm.byted.org/@types/express/-/express-4.17.23.tgz", + "integrity": "sha512-Crp6WY9aTYP3qPi2wGDo9iUe/rceX01UMhnF1jmwDcKCFM6cx7YhGP/Mpr3y9AASpfHixIG0E6azCcL5OcDHsQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.33", + "@types/qs": "*", + "@types/serve-static": "*" + } + }, + "node_modules/@types/express-serve-static-core": { + "version": "4.19.6", + "resolved": "https://bnpm.byted.org/@types/express-serve-static-core/-/express-serve-static-core-4.19.6.tgz", + "integrity": "sha512-N4LZ2xG7DatVqhCZzOGb1Yi5lMbXSZcmdLDe9EzSndPV2HpWYWzRbaerl2n27irrm94EPpprqa8KpskPT085+A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*", + "@types/send": "*" + } + }, + "node_modules/@types/http-errors": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/@types/http-errors/-/http-errors-2.0.5.tgz", + "integrity": "sha512-r8Tayk8HJnX0FztbZN7oVqGccWgw98T/0neJphO91KkmOzug1KkofZURD4UaD5uH8AqcFLfdPErnBod0u71/qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/jsonwebtoken": { + "version": "9.0.10", + "resolved": "https://bnpm.byted.org/@types/jsonwebtoken/-/jsonwebtoken-9.0.10.tgz", + "integrity": "sha512-asx5hIG9Qmf/1oStypjanR7iKTv0gXQ1Ov/jfrX6kS/EO0OFni8orbmGCn0672NHR3kXHwpAwR+B368ZGN/2rA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/ms": "*", + "@types/node": "*" + } + }, + "node_modules/@types/lodash": { + "version": "4.17.20", + "resolved": "https://bnpm.byted.org/@types/lodash/-/lodash-4.17.20.tgz", + "integrity": "sha512-H3MHACvFUEiujabxhaI/ImO6gUrd8oOurg7LQtS7mbwIXA/cUqWrvBsaeJ23aZEPk1TAYkurjfMbSELfoCXlGA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/mime": { + "version": "1.3.5", + "resolved": "https://bnpm.byted.org/@types/mime/-/mime-1.3.5.tgz", + "integrity": "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/ms": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/@types/ms/-/ms-2.1.0.tgz", + "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/node": { + "version": "20.19.11", + "resolved": "https://bnpm.byted.org/@types/node/-/node-20.19.11.tgz", + "integrity": "sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/qs": { + "version": "6.14.0", + "resolved": "https://bnpm.byted.org/@types/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-eOunJqu0K1923aExK6y8p6fsihYEn/BYuQ4g0CxAAgFc4b/ZLN4CrsRZ55srTdqoiLzU2B2evC+apEIxprEzkQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/range-parser": { + "version": "1.2.7", + "resolved": "https://bnpm.byted.org/@types/range-parser/-/range-parser-1.2.7.tgz", + "integrity": "sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/send": { + "version": "0.17.5", + "resolved": "https://bnpm.byted.org/@types/send/-/send-0.17.5.tgz", + "integrity": "sha512-z6F2D3cOStZvuk2SaP6YrwkNO65iTZcwA2ZkSABegdkAh/lf+Aa/YQndZVfmEXT5vgAp6zv06VQ3ejSVjAny4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/mime": "^1", + "@types/node": "*" + } + }, + "node_modules/@types/serve-static": { + "version": "1.15.8", + "resolved": "https://bnpm.byted.org/@types/serve-static/-/serve-static-1.15.8.tgz", + "integrity": "sha512-roei0UY3LhpOJvjbIP6ZZFngyLKl5dskOtDhxY5THRSpO+ZI+nzJ+m5yUMzGrp89YRa7lvknKkMYjqQFGwA7Sg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/http-errors": "*", + "@types/node": "*", + "@types/send": "*" + } + }, + "node_modules/@types/webidl-conversions": { + "version": "7.0.3", + "resolved": "https://bnpm.byted.org/@types/webidl-conversions/-/webidl-conversions-7.0.3.tgz", + "integrity": "sha512-CiJJvcRtIgzadHCYXw7dqEnMNRjhGZlYK05Mj9OyktqV8uVT8fD2BFOB7S1uwBE3Kj2Z+4UyPmFw/Ixgw/LAlA==", + "license": "MIT" + }, + "node_modules/@types/whatwg-url": { + "version": "8.2.2", + "resolved": "https://bnpm.byted.org/@types/whatwg-url/-/whatwg-url-8.2.2.tgz", + "integrity": "sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==", + "license": "MIT", + "dependencies": { + "@types/node": "*", + "@types/webidl-conversions": "*" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "license": "ISC" + }, + "node_modules/accepts": { + "version": "1.3.8", + "resolved": "https://bnpm.byted.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", + "license": "MIT", + "dependencies": { + "mime-types": "~2.1.34", + "negotiator": "0.6.3" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://bnpm.byted.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agent-base/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/agent-base/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "license": "ISC", + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/aproba": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/aproba/-/aproba-2.1.0.tgz", + "integrity": "sha512-tLIEcj5GuR2RSTnxNKdkK0dJ/GrC7P38sUkiDmDuHfsHmbagTFAxDVIBltoklXEVIQ/f14IL8IMJ5pn9Hez1Ew==", + "license": "ISC" + }, + "node_modules/are-we-there-yet": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", + "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/array-flatten": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/array-flatten/-/array-flatten-1.1.1.tgz", + "integrity": "sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg==", + "license": "MIT" + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.11.0", + "resolved": "https://bnpm.byted.org/axios/-/axios-1.11.0.tgz", + "integrity": "sha512-1Lx3WLFQWm3ooKDYZD1eXmoGO9fxYQjrycfHFC8P0sCfQVXyROp0p9PFWBehewBOdCwHc+f/b8I0fMto5eSfwA==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.4", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" + }, + "node_modules/bcrypt": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/bcrypt/-/bcrypt-5.1.1.tgz", + "integrity": "sha512-AGBHOG5hPYZ5Xl9KXzU5iKq9516yEmvCKDg3ecP5kX2aB6UqTeXZxk2ELnDgDm6BQSMlLt9rDB4LoSMx0rYwww==", + "hasInstallScript": true, + "license": "MIT", + "dependencies": { + "@mapbox/node-pre-gyp": "^1.0.11", + "node-addon-api": "^5.0.0" + }, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/binary-extensions": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/body-parser": { + "version": "1.20.3", + "resolved": "https://bnpm.byted.org/body-parser/-/body-parser-1.20.3.tgz", + "integrity": "sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "content-type": "~1.0.5", + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "on-finished": "2.4.1", + "qs": "6.13.0", + "raw-body": "2.5.2", + "type-is": "~1.6.18", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "license": "MIT", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/bson": { + "version": "5.5.1", + "resolved": "https://bnpm.byted.org/bson/-/bson-5.5.1.tgz", + "integrity": "sha512-ix0EwukN2EpC0SRWIj/7B5+A6uQMQy6KMREI9qQqvgpkV2frH63T0UDVd1SYedL6dNCmDBYB3QtXi4ISk9YT+g==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.20.1" + } + }, + "node_modules/buffer-equal-constant-time": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz", + "integrity": "sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==", + "license": "BSD-3-Clause" + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://bnpm.byted.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/chokidar": { + "version": "3.6.0", + "resolved": "https://bnpm.byted.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "dev": true, + "license": "MIT", + "dependencies": { + "anymatch": "~3.1.2", + "braces": "~3.0.2", + "glob-parent": "~5.1.2", + "is-binary-path": "~2.1.0", + "is-glob": "~4.0.1", + "normalize-path": "~3.0.0", + "readdirp": "~3.6.0" + }, + "engines": { + "node": ">= 8.10.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "license": "ISC" + }, + "node_modules/content-disposition": { + "version": "0.5.4", + "resolved": "https://bnpm.byted.org/content-disposition/-/content-disposition-0.5.4.tgz", + "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", + "license": "MIT", + "dependencies": { + "safe-buffer": "5.2.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.1", + "resolved": "https://bnpm.byted.org/cookie/-/cookie-0.7.1.tgz", + "integrity": "sha512-6DnInpx7SJ2AK3+CTUE/ZM0vWTUboZCegxhC2xiIydHR9jNuTAASBrfEpHhiGOZw/nX51bHt6YQl8jsGo4y/0w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/cookie-signature/-/cookie-signature-1.0.6.tgz", + "integrity": "sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ==", + "license": "MIT" + }, + "node_modules/cors": { + "version": "2.8.5", + "resolved": "https://bnpm.byted.org/cors/-/cors-2.8.5.tgz", + "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/debug": { + "version": "2.6.9", + "resolved": "https://bnpm.byted.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "license": "MIT", + "dependencies": { + "ms": "2.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "license": "MIT" + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/destroy": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "license": "MIT", + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } + }, + "node_modules/detect-libc": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/detect-libc/-/detect-libc-2.0.4.tgz", + "integrity": "sha512-3UDv+G9CsCKO1WKMGw9fwq/SWJYbI0c5Y7LU1AXYoDdbhE2AHQ6N6Nb34sG8Fj7T5APy8qXDCKuuIHd1BR0tVA==", + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ecdsa-sig-formatter": { + "version": "1.0.11", + "resolved": "https://bnpm.byted.org/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz", + "integrity": "sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ==", + "license": "Apache-2.0", + "dependencies": { + "safe-buffer": "^5.0.1" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://bnpm.byted.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://bnpm.byted.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/express": { + "version": "4.21.2", + "resolved": "https://bnpm.byted.org/express/-/express-4.21.2.tgz", + "integrity": "sha512-28HqgMZAmih1Czt9ny7qr6ek2qddF4FclbMzwhCREB6OFfH+rXAnuNCwo1/wFvrtbgsQDb4kSbX9de9lFbrXnA==", + "license": "MIT", + "dependencies": { + "accepts": "~1.3.8", + "array-flatten": "1.1.1", + "body-parser": "1.20.3", + "content-disposition": "0.5.4", + "content-type": "~1.0.4", + "cookie": "0.7.1", + "cookie-signature": "1.0.6", + "debug": "2.6.9", + "depd": "2.0.0", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "finalhandler": "1.3.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "merge-descriptors": "1.0.3", + "methods": "~1.1.2", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "path-to-regexp": "0.1.12", + "proxy-addr": "~2.0.7", + "qs": "6.13.0", + "range-parser": "~1.2.1", + "safe-buffer": "5.2.1", + "send": "0.19.0", + "serve-static": "1.16.2", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "type-is": "~1.6.18", + "utils-merge": "1.0.1", + "vary": "~1.1.2" + }, + "engines": { + "node": ">= 0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "license": "MIT", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/finalhandler": { + "version": "1.3.1", + "resolved": "https://bnpm.byted.org/finalhandler/-/finalhandler-1.3.1.tgz", + "integrity": "sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/follow-redirects": { + "version": "1.15.11", + "resolved": "https://bnpm.byted.org/follow-redirects/-/follow-redirects-1.15.11.tgz", + "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://bnpm.byted.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://bnpm.byted.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "0.5.2", + "resolved": "https://bnpm.byted.org/fresh/-/fresh-0.5.2.tgz", + "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://bnpm.byted.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gauge": { + "version": "3.0.2", + "resolved": "https://bnpm.byted.org/gauge/-/gauge-3.0.2.tgz", + "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.2", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.1", + "object-assign": "^4.1.1", + "signal-exit": "^3.0.0", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://bnpm.byted.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dev": true, + "license": "ISC", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "license": "ISC" + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/helmet": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/helmet/-/helmet-7.2.0.tgz", + "integrity": "sha512-ZRiwvN089JfMXokizgqEPXsl2Guk094yExfoDXR0cBYWxtBbaSww/w+vT4WEJsBW2iTUi1GgZ6swmoug3Oy4Xw==", + "license": "MIT", + "engines": { + "node": ">=16.0.0" + } + }, + "node_modules/http-errors": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", + "license": "MIT", + "dependencies": { + "depd": "2.0.0", + "inherits": "2.0.4", + "setprototypeof": "1.2.0", + "statuses": "2.0.1", + "toidentifier": "1.0.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/https-proxy-agent/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/iconv-lite": { + "version": "0.4.24", + "resolved": "https://bnpm.byted.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ignore-by-default": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/ignore-by-default/-/ignore-by-default-1.0.1.tgz", + "integrity": "sha512-Ius2VYcGNk7T90CppJqcIkS5ooHUZyIQK+ClZfMfMNFEF9VSE73Fq+906u/CWu92x4gzZMWOwfFYckPObzdEbA==", + "dev": true, + "license": "ISC" + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ip-address": { + "version": "10.0.1", + "resolved": "https://bnpm.byted.org/ip-address/-/ip-address-10.0.1.tgz", + "integrity": "sha512-NWv9YLW4PoW2B7xtzaS3NCot75m6nK7Icdv0o3lfMceJVRfSoQwqD4wEH5rLwoKJwUiZ/rfpiVBhnaF0FK4HoA==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://bnpm.byted.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "binary-extensions": "^2.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://bnpm.byted.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/jsonwebtoken": { + "version": "9.0.2", + "resolved": "https://bnpm.byted.org/jsonwebtoken/-/jsonwebtoken-9.0.2.tgz", + "integrity": "sha512-PRp66vJ865SSqOlgqS8hujT5U4AOgMfhrwYIuIhfKaoSCZcirrmASQr8CX7cUg+RMih+hgznrjp99o+W4pJLHQ==", + "license": "MIT", + "dependencies": { + "jws": "^3.2.2", + "lodash.includes": "^4.3.0", + "lodash.isboolean": "^3.0.3", + "lodash.isinteger": "^4.0.4", + "lodash.isnumber": "^3.0.3", + "lodash.isplainobject": "^4.0.6", + "lodash.isstring": "^4.0.1", + "lodash.once": "^4.0.0", + "ms": "^2.1.1", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=12", + "npm": ">=6" + } + }, + "node_modules/jsonwebtoken/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/jwa": { + "version": "1.4.2", + "resolved": "https://bnpm.byted.org/jwa/-/jwa-1.4.2.tgz", + "integrity": "sha512-eeH5JO+21J78qMvTIDdBXidBd6nG2kZjg5Ohz/1fpa28Z4CcsWUzJ1ZZyFq/3z3N17aZy+ZuBoHljASbL1WfOw==", + "license": "MIT", + "dependencies": { + "buffer-equal-constant-time": "^1.0.1", + "ecdsa-sig-formatter": "1.0.11", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/jws": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/jws/-/jws-3.2.2.tgz", + "integrity": "sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA==", + "license": "MIT", + "dependencies": { + "jwa": "^1.4.1", + "safe-buffer": "^5.0.1" + } + }, + "node_modules/kareem": { + "version": "2.5.1", + "resolved": "https://bnpm.byted.org/kareem/-/kareem-2.5.1.tgz", + "integrity": "sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==", + "license": "Apache-2.0", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://bnpm.byted.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "license": "MIT" + }, + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha512-W3Bx6mdkRTGtlJISOvVD/lbqjTlPPUDTMnlXZFnVwi9NKJ6tiAk6LVdlhZMm17VZisqhKcgzpO5Wz91PCt5b0w==", + "license": "MIT" + }, + "node_modules/lodash.isboolean": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz", + "integrity": "sha512-Bz5mupy2SVbPHURB98VAcw+aHh4vRV5IPNhILUCsOzRmsTmSQ17jIuqopAentWoehktxGd9e/hbIXq980/1QJg==", + "license": "MIT" + }, + "node_modules/lodash.isinteger": { + "version": "4.0.4", + "resolved": "https://bnpm.byted.org/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz", + "integrity": "sha512-DBwtEWN2caHQ9/imiNeEA5ys1JoRtRfY3d7V9wkqtbycnAmTvRRmbHKDV4a0EYc678/dia0jrte4tjYwVBaZUA==", + "license": "MIT" + }, + "node_modules/lodash.isnumber": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz", + "integrity": "sha512-QYqzpfwO3/CWf3XP+Z+tkQsfaLL/EnUlXWVkIk5FUPc4sBdTehEqZONuyRt2P67PXAk+NXmTBcc97zw9t1FQrw==", + "license": "MIT" + }, + "node_modules/lodash.isplainobject": { + "version": "4.0.6", + "resolved": "https://bnpm.byted.org/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz", + "integrity": "sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==", + "license": "MIT" + }, + "node_modules/lodash.isstring": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/lodash.isstring/-/lodash.isstring-4.0.1.tgz", + "integrity": "sha512-0wJxfxH1wgO3GrbuP+dTTk7op+6L41QCXbGINEmD+ny/G/eCqGzxyCsh7159S+mgDDcoarnBw6PC1PS5+wUGgw==", + "license": "MIT" + }, + "node_modules/lodash.once": { + "version": "4.1.1", + "resolved": "https://bnpm.byted.org/lodash.once/-/lodash.once-4.1.1.tgz", + "integrity": "sha512-Sb487aTOCr9drQVL8pIxOzVhafOjZN9UU54hiN8PU3uAiSV7lx1yYNpbNmex2PK6dSJoNTSJUUswT651yww3Mg==", + "license": "MIT" + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "license": "MIT", + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "0.3.0", + "resolved": "https://bnpm.byted.org/media-typer/-/media-typer-0.3.0.tgz", + "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/memory-pager": { + "version": "1.5.0", + "resolved": "https://bnpm.byted.org/memory-pager/-/memory-pager-1.5.0.tgz", + "integrity": "sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg==", + "license": "MIT", + "optional": true + }, + "node_modules/merge-descriptors": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/merge-descriptors/-/merge-descriptors-1.0.3.tgz", + "integrity": "sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/methods": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/methods/-/methods-1.1.2.tgz", + "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/mime/-/mime-1.6.0.tgz", + "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", + "license": "MIT", + "bin": { + "mime": "cli.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://bnpm.byted.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://bnpm.byted.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://bnpm.byted.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://bnpm.byted.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://bnpm.byted.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mongodb": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/mongodb/-/mongodb-5.9.2.tgz", + "integrity": "sha512-H60HecKO4Bc+7dhOv4sJlgvenK4fQNqqUIlXxZYQNbfEWSALGAwGoyJd/0Qwk4TttFXUOHJ2ZJQe/52ScaUwtQ==", + "license": "Apache-2.0", + "dependencies": { + "bson": "^5.5.0", + "mongodb-connection-string-url": "^2.6.0", + "socks": "^2.7.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "optionalDependencies": { + "@mongodb-js/saslprep": "^1.1.0" + }, + "peerDependencies": { + "@aws-sdk/credential-providers": "^3.188.0", + "@mongodb-js/zstd": "^1.0.0", + "kerberos": "^1.0.0 || ^2.0.0", + "mongodb-client-encryption": ">=2.3.0 <3", + "snappy": "^7.2.2" + }, + "peerDependenciesMeta": { + "@aws-sdk/credential-providers": { + "optional": true + }, + "@mongodb-js/zstd": { + "optional": true + }, + "kerberos": { + "optional": true + }, + "mongodb-client-encryption": { + "optional": true + }, + "snappy": { + "optional": true + } + } + }, + "node_modules/mongodb-connection-string-url": { + "version": "2.6.0", + "resolved": "https://bnpm.byted.org/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz", + "integrity": "sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==", + "license": "Apache-2.0", + "dependencies": { + "@types/whatwg-url": "^8.2.1", + "whatwg-url": "^11.0.0" + } + }, + "node_modules/mongoose": { + "version": "7.8.7", + "resolved": "https://bnpm.byted.org/mongoose/-/mongoose-7.8.7.tgz", + "integrity": "sha512-5Bo4CrUxrPITrhMKsqUTOkXXo2CoRC5tXxVQhnddCzqDMwRXfyStrxj1oY865g8gaekSBhxAeNkYyUSJvGm9Hw==", + "license": "MIT", + "dependencies": { + "bson": "^5.5.0", + "kareem": "2.5.1", + "mongodb": "5.9.2", + "mpath": "0.9.0", + "mquery": "5.0.0", + "ms": "2.1.3", + "sift": "16.0.1" + }, + "engines": { + "node": ">=14.20.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/mongoose" + } + }, + "node_modules/mongoose/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/mpath": { + "version": "0.9.0", + "resolved": "https://bnpm.byted.org/mpath/-/mpath-0.9.0.tgz", + "integrity": "sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==", + "license": "MIT", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/mquery": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/mquery/-/mquery-5.0.0.tgz", + "integrity": "sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==", + "license": "MIT", + "dependencies": { + "debug": "4.x" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/mquery/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/mquery/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/ms": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://bnpm.byted.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/node-addon-api": { + "version": "5.1.0", + "resolved": "https://bnpm.byted.org/node-addon-api/-/node-addon-api-5.1.0.tgz", + "integrity": "sha512-eh0GgfEkpnoWDq+VY8OyvYhFEzBk6jIYbRKdIlyTiAXIVJ8PyBaKb0rp7oDtoddbdoHWhq8wwr+XZ81F1rpNdA==", + "license": "MIT" + }, + "node_modules/node-fetch": { + "version": "2.7.0", + "resolved": "https://bnpm.byted.org/node-fetch/-/node-fetch-2.7.0.tgz", + "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", + "license": "MIT", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, + "node_modules/node-fetch/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://bnpm.byted.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", + "license": "MIT" + }, + "node_modules/node-fetch/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", + "license": "BSD-2-Clause" + }, + "node_modules/node-fetch/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "license": "MIT", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, + "node_modules/nodemon": { + "version": "3.1.10", + "resolved": "https://bnpm.byted.org/nodemon/-/nodemon-3.1.10.tgz", + "integrity": "sha512-WDjw3pJ0/0jMFmyNDp3gvY2YizjLmmOUQo6DEBY+JgdvW/yQ9mEeSw6H5ythl5Ny2ytb7f9C2nIbjSxMNzbJXw==", + "dev": true, + "license": "MIT", + "dependencies": { + "chokidar": "^3.5.2", + "debug": "^4", + "ignore-by-default": "^1.0.1", + "minimatch": "^3.1.2", + "pstree.remy": "^1.1.8", + "semver": "^7.5.3", + "simple-update-notifier": "^2.0.0", + "supports-color": "^5.5.0", + "touch": "^3.1.0", + "undefsafe": "^2.0.5" + }, + "bin": { + "nodemon": "bin/nodemon.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/nodemon" + } + }, + "node_modules/nodemon/node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/nodemon/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "license": "ISC", + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npmlog": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/npmlog/-/npmlog-5.0.1.tgz", + "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", + "deprecated": "This package is no longer supported.", + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^2.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^3.0.0", + "set-blocking": "^2.0.0" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://bnpm.byted.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://bnpm.byted.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://bnpm.byted.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://bnpm.byted.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-to-regexp": { + "version": "0.1.12", + "resolved": "https://bnpm.byted.org/path-to-regexp/-/path-to-regexp-0.1.12.tgz", + "integrity": "sha512-RA1GjUVMnvYFxuqovrEqZoxxW5NUZqbwKtYz/Tt7nXerk0LbLblQmrsgdeOxV5SFHf0UDggjS/bSeOZwt1pmEQ==", + "license": "MIT" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://bnpm.byted.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", + "license": "MIT" + }, + "node_modules/pstree.remy": { + "version": "1.1.8", + "resolved": "https://bnpm.byted.org/pstree.remy/-/pstree.remy-1.1.8.tgz", + "integrity": "sha512-77DZwxQmxKnu3aR542U+X8FypNzbfJ+C5XQDk3uWjWxn6151aIMGthWYRXTqT1E5oJvg+ljaa2OJi+VfvCOQ8w==", + "dev": true, + "license": "MIT" + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.13.0", + "resolved": "https://bnpm.byted.org/qs/-/qs-6.13.0.tgz", + "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.0.6" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://bnpm.byted.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "2.5.2", + "resolved": "https://bnpm.byted.org/raw-body/-/raw-body-2.5.2.tgz", + "integrity": "sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==", + "license": "MIT", + "dependencies": { + "bytes": "3.1.2", + "http-errors": "2.0.0", + "iconv-lite": "0.4.24", + "unpipe": "1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://bnpm.byted.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/readdirp": { + "version": "3.6.0", + "resolved": "https://bnpm.byted.org/readdirp/-/readdirp-3.6.0.tgz", + "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picomatch": "^2.2.1" + }, + "engines": { + "node": ">=8.10.0" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://bnpm.byted.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "deprecated": "Rimraf versions prior to v4 are no longer supported", + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/safe-buffer/-/safe-buffer-5.2.1.tgz", + "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "license": "MIT" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://bnpm.byted.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/send": { + "version": "0.19.0", + "resolved": "https://bnpm.byted.org/send/-/send-0.19.0.tgz", + "integrity": "sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw==", + "license": "MIT", + "dependencies": { + "debug": "2.6.9", + "depd": "2.0.0", + "destroy": "1.2.0", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "etag": "~1.8.1", + "fresh": "0.5.2", + "http-errors": "2.0.0", + "mime": "1.6.0", + "ms": "2.1.3", + "on-finished": "2.4.1", + "range-parser": "~1.2.1", + "statuses": "2.0.1" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/send/node_modules/encodeurl": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/encodeurl/-/encodeurl-1.0.2.tgz", + "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/serve-static": { + "version": "1.16.2", + "resolved": "https://bnpm.byted.org/serve-static/-/serve-static-1.16.2.tgz", + "integrity": "sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "~2.0.0", + "escape-html": "~1.0.3", + "parseurl": "~1.3.3", + "send": "0.19.0" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "license": "ISC" + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/sift": { + "version": "16.0.1", + "resolved": "https://bnpm.byted.org/sift/-/sift-16.0.1.tgz", + "integrity": "sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==", + "license": "MIT" + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "license": "ISC" + }, + "node_modules/simple-update-notifier": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/simple-update-notifier/-/simple-update-notifier-2.0.0.tgz", + "integrity": "sha512-a2B9Y0KlNXl9u/vsW6sTIu9vGEpfKu2wRV6l1H3XEas/0gUIzGzBoP/IouTcUQbm9JWZLH3COxyn03TYlFax6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.7", + "resolved": "https://bnpm.byted.org/socks/-/socks-2.8.7.tgz", + "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", + "license": "MIT", + "dependencies": { + "ip-address": "^10.0.1", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/sparse-bitfield": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz", + "integrity": "sha512-kvzhi7vqKTfkh0PZU+2D2PIllw2ymqJKujUcyPMd9Y75Nv4nPbGJZXNhxsgdQab2BmlDct1YnfQCguEvHr7VsQ==", + "license": "MIT", + "optional": true, + "dependencies": { + "memory-pager": "^1.0.2" + } + }, + "node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/string_decoder": { + "version": "1.3.0", + "resolved": "https://bnpm.byted.org/string_decoder/-/string_decoder-1.3.0.tgz", + "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://bnpm.byted.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/touch": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/touch/-/touch-3.1.1.tgz", + "integrity": "sha512-r0eojU4bI8MnHr8c5bNo7lJDdI2qXlWWJk6a9EAFG7vbhTjElYhBVS3/miuE0uOuoLdb8Mc/rVfsmm6eo5o9GA==", + "dev": true, + "license": "ISC", + "bin": { + "nodetouch": "bin/nodetouch.js" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "license": "MIT", + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/type-is": { + "version": "1.6.18", + "resolved": "https://bnpm.byted.org/type-is/-/type-is-1.6.18.tgz", + "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", + "license": "MIT", + "dependencies": { + "media-typer": "0.3.0", + "mime-types": "~2.1.24" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undefsafe": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/undefsafe/-/undefsafe-2.0.5.tgz", + "integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==", + "dev": true, + "license": "MIT" + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" + }, + "node_modules/utils-merge": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/utils-merge/-/utils-merge-1.0.1.tgz", + "integrity": "sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==", + "license": "MIT", + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "license": "BSD-2-Clause", + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://bnpm.byted.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "license": "MIT", + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://bnpm.byted.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "license": "ISC" + } + } +} diff --git a/ts-parser/test-repo/package.json b/ts-parser/test-repo/package.json new file mode 100644 index 0000000..460f75c --- /dev/null +++ b/ts-parser/test-repo/package.json @@ -0,0 +1,31 @@ +{ + "name": "test-repo", + "version": "1.0.0", + "description": "Test repository for UNIAST parser", + "main": "src/index.ts", + "scripts": { + "build": "tsc", + "start": "node dist/index.js", + "dev": "nodemon src/index.ts" + }, + "dependencies": { + "express": "^4.18.2", + "lodash": "^4.17.21", + "axios": "^1.4.0", + "bcrypt": "^5.1.0", + "jsonwebtoken": "^9.0.0", + "mongoose": "^7.0.0", + "cors": "^2.8.5", + "helmet": "^7.0.0" + }, + "devDependencies": { + "typescript": "^5.0.0", + "@types/express": "^4.17.17", + "@types/node": "^20.0.0", + "@types/lodash": "^4.14.195", + "@types/bcrypt": "^5.0.0", + "@types/jsonwebtoken": "^9.0.2", + "@types/cors": "^2.8.13", + "nodemon": "^3.0.0" + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/config/app.config.ts b/ts-parser/test-repo/src/config/app.config.ts new file mode 100644 index 0000000..c5bccbf --- /dev/null +++ b/ts-parser/test-repo/src/config/app.config.ts @@ -0,0 +1,55 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import * as JSON5 from 'json5'; + + +export interface AppConfig { + port: number; + database: { + host: string; + port: number; + name: string; + user: string; + password: string; + }; + jwtSecret: string; + bcryptRounds: number; + corsOrigins: string[]; + rateLimitWindow: number; + rateLimitMax: number; +} + +const configPath = path.join(__dirname, '../../config.json'); + +let cachedConfig: AppConfig | null = null; + +export const config: AppConfig = (() => { + if (cachedConfig) return cachedConfig; + + try { + const configData = fs.readFileSync(configPath, 'utf-8'); + cachedConfig = JSON5.parse(configData); + if (!cachedConfig) { + throw new Error('Config file is empty'); + } + return cachedConfig; + } catch (error) { + // Fallback configuration + cachedConfig = { + port: 3000, + database: { + host: 'localhost', + port: 27017, + name: 'testapp', + user: 'admin', + password: 'password' + }, + jwtSecret: 'your-secret-key', + bcryptRounds: 10, + corsOrigins: ['http://localhost:3000'], + rateLimitWindow: 15 * 60 * 1000, // 15 minutes + rateLimitMax: 100 + }; + return cachedConfig; + } +})(); \ No newline at end of file diff --git a/ts-parser/test-repo/src/controllers/UserController.ts b/ts-parser/test-repo/src/controllers/UserController.ts new file mode 100644 index 0000000..dc3f1b1 --- /dev/null +++ b/ts-parser/test-repo/src/controllers/UserController.ts @@ -0,0 +1,92 @@ +import { Request, Response } from 'express'; +import { UserService } from '@services/UserService'; +import { DatabaseService } from '@services/DatabaseService'; +import { Logger } from '@utils/Logger'; +import { validateUser } from '@utils/Validation'; +import * as bcrypt from 'bcrypt'; +import * as jwt from 'jsonwebtoken'; + +export class UserController { + private userService: UserService; + private dbService: DatabaseService; + + constructor() { + this.userService = new UserService(); + this.dbService = new DatabaseService(); + } + + async createUser(req: Request, res: Response): Promise { + try { + const { email, password, name } = req.body; + + if (!validateUser({ email, password, name })) { + res.status(400).json({ error: 'Invalid user data' }); + return; + } + + const hashedPassword = await bcrypt.hash(password, 10); + const user = await this.userService.createUser({ + email, + password: hashedPassword, + name + }); + + Logger.info(`User created: ${user.email}`); + res.status(201).json(user); + } catch (error) { + Logger.error('Error creating user:', error); + res.status(500).json({ error: 'Failed to create user' }); + } + } + + async getUser(req: Request, res: Response): Promise { + try { + const { id } = req.params; + const user = await this.userService.getUserById(id); + + if (!user) { + res.status(404).json({ error: 'User not found' }); + return; + } + + res.json(user); + } catch (error) { + Logger.error('Error fetching user:', error); + res.status(500).json({ error: 'Failed to fetch user' }); + } + } + + async updateUser(req: Request, res: Response): Promise { + try { + const { id } = req.params; + const updates = req.body; + + const user = await this.userService.updateUser(id, updates); + res.json(user); + } catch (error) { + Logger.error('Error updating user:', error); + res.status(500).json({ error: 'Failed to update user' }); + } + } + + async deleteUser(req: Request, res: Response): Promise { + try { + const { id } = req.params; + await this.userService.deleteUser(id); + res.status(204).send(); + } catch (error) { + Logger.error('Error deleting user:', error); + res.status(500).json({ error: 'Failed to delete user' }); + } + } + + async getAllUsers(req: Request, res: Response): Promise { + try { + const users = await this.userService.getAllUsers(); + res.json(users); + } catch (error) { + Logger.error('Error fetching users:', error); + res.status(500).json({ error: 'Failed to fetch users' }); + } + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/index.ts b/ts-parser/test-repo/src/index.ts new file mode 100644 index 0000000..978e20b --- /dev/null +++ b/ts-parser/test-repo/src/index.ts @@ -0,0 +1,89 @@ +import express from 'express'; +import cors from 'cors'; +import helmet from 'helmet'; +import mongoose from 'mongoose'; +import jwt from 'jsonwebtoken'; +import bcrypt from 'bcrypt'; +import { config } from './config/app.config'; +import { UserController } from '@/controllers/UserController'; +import { AuthMiddleware } from '@/middleware/AuthMiddleware'; +import { DatabaseService } from '@/services/DatabaseService'; +import { Logger } from '@/utils/Logger'; +import { validateRequest } from '@/middleware/Validation'; +import { UserRoutes } from '@/routes/UserRoutes'; +import { AuthRoutes } from '@/routes/AuthRoutes'; +import * as fs from 'fs'; +import * as path from 'path'; +import { promisify } from 'util'; +import * as JSON5 from 'json5'; + +// Re-exports +export { UserController } from '@/controllers/UserController'; +export { AuthMiddleware } from '@/middleware/AuthMiddleware'; + +const app = express(); +const PORT = process.env.PORT || 3000; + +// Middleware +app.use(helmet()); +app.use(cors()); +app.use(express.json()); +app.use(express.urlencoded({ extended: true })); + +// Database connection +const dbService = new DatabaseService(); +dbService.connect().then(() => { + Logger.info('Database connected successfully'); +}).catch((error) => { + Logger.error('Database connection failed:', error); +}); + +// Routes +app.use('/api/users', UserRoutes); +app.use('/api/auth', AuthRoutes); + +// Health check endpoint +app.get('/health', (req, res) => { + res.json({ status: 'OK', timestamp: new Date().toISOString() }); +}); + +// File operations using Node.js system modules +const readFileAsync = promisify(fs.readFile); +const writeFileAsync = promisify(fs.writeFile); + +app.get('/api/config', async (req, res) => { + try { + const configPath = path.join(__dirname, '../config.json'); + const configData = await readFileAsync(configPath, 'utf-8'); + res.json(JSON5.parse(configData)); + } catch (error) { + res.status(500).json({ error: 'Failed to read config' }); + } +}); + +// JWT token generation +app.post('/api/token', (req, res) => { + const { userId } = req.body; + const token = jwt.sign({ userId }, config.jwtSecret, { expiresIn: '1h' }); + res.json({ token }); +}); + +// Password hashing +app.post('/api/hash-password', async (req, res) => { + const { password } = req.body; + const hashedPassword = await bcrypt.hash(password, 10); + res.json({ hashedPassword }); +}); + +// Error handling middleware +app.use((error: Error, req: express.Request, res: express.Response, next: express.NextFunction) => { + Logger.error('Error:', error); + res.status(500).json({ error: 'Internal server error' }); +}); + +// Start server +app.listen(PORT, () => { + Logger.info(`Server running on port ${PORT}`); +}); + +export default app; \ No newline at end of file diff --git a/ts-parser/test-repo/src/middleware/AuthMiddleware.ts b/ts-parser/test-repo/src/middleware/AuthMiddleware.ts new file mode 100644 index 0000000..fc6a0d6 --- /dev/null +++ b/ts-parser/test-repo/src/middleware/AuthMiddleware.ts @@ -0,0 +1,44 @@ +import { Request, Response, NextFunction } from 'express'; +import * as jwt from 'jsonwebtoken'; +import { config } from '../config/app.config'; +import { Logger } from '@utils/Logger'; + +export interface AuthRequest extends Request { + user?: any; +} + +export class AuthMiddleware { + static authenticate(req: AuthRequest, res: Response, next: NextFunction): void { + const token = req.header('Authorization')?.replace('Bearer ', ''); + + if (!token) { + res.status(401).json({ error: 'Access denied. No token provided.' }); + return; + } + + try { + const decoded = jwt.verify(token, config.jwtSecret); + req.user = decoded; + next(); + } catch (error) { + Logger.error('Token verification failed:', error); + res.status(400).json({ error: 'Invalid token.' }); + } + } + + static authorize(roles: string[] = ['user']) { + return (req: AuthRequest, res: Response, next: NextFunction): void => { + if (!req.user) { + res.status(401).json({ error: 'User not authenticated' }); + return; + } + + if (!roles.includes(req.user.role)) { + res.status(403).json({ error: 'Insufficient permissions' }); + return; + } + + next(); + }; + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/middleware/Validation.ts b/ts-parser/test-repo/src/middleware/Validation.ts new file mode 100644 index 0000000..6654362 --- /dev/null +++ b/ts-parser/test-repo/src/middleware/Validation.ts @@ -0,0 +1,41 @@ +import { Request, Response, NextFunction } from 'express'; +import { Logger } from '@utils/Logger'; + +export function validateRequest(schema: any) { + return (req: Request, res: Response, next: NextFunction): void => { + const errors: Array<{ field: string; message: string }> = []; + + Object.keys(schema).forEach(key => { + const rules = schema[key]; + const value = req.body[key]; + + if (rules.required && (value === undefined || value === null || value === '')) { + errors.push({ field: key, message: `${key} is required` }); + } + + if (rules.type && value !== undefined && typeof value !== rules.type) { + errors.push({ field: key, message: `${key} must be of type ${rules.type}` }); + } + + if (rules.minLength && value && value.length < rules.minLength) { + errors.push({ field: key, message: `${key} must be at least ${rules.minLength} characters` }); + } + + if (rules.maxLength && value && value.length > rules.maxLength) { + errors.push({ field: key, message: `${key} must be at most ${rules.maxLength} characters` }); + } + + if (rules.pattern && value && !rules.pattern.test(value)) { + errors.push({ field: key, message: `${key} format is invalid` }); + } + }); + + if (errors.length > 0) { + Logger.warn('Validation errors:', errors); + res.status(400).json({ errors }); + return; + } + + next(); + }; +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/models/user.ts b/ts-parser/test-repo/src/models/user.ts new file mode 100644 index 0000000..1af0eb7 --- /dev/null +++ b/ts-parser/test-repo/src/models/user.ts @@ -0,0 +1,76 @@ +import mongoose, { Document, Schema } from 'mongoose'; + +export interface IUser extends Document { + email: string; + password: string; + name: string; + age?: number; + role: 'user' | 'admin'; + isActive: boolean; + createdAt: Date; + updatedAt: Date; + comparePassword: (candidatePassword: string) => Promise; +} + +const userSchema = new Schema({ + email: { + type: String, + required: true, + unique: true, + lowercase: true, + trim: true + }, + password: { + type: String, + required: true, + minlength: 6 + }, + name: { + type: String, + required: true, + trim: true + }, + age: { + type: Number, + min: 0, + max: 150 + }, + role: { + type: String, + enum: ['user', 'admin'], + default: 'user' + }, + isActive: { + type: Boolean, + default: true + } +}, { + timestamps: true +}); + +// Indexes +userSchema.index({ email: 1 }); +userSchema.index({ role: 1 }); +userSchema.index({ isActive: 1 }); + +// Pre-save middleware for password hashing +userSchema.pre('save', async function(next) { + if (!this.isModified('password')) return next(); + + try { + const bcrypt = await import('bcrypt'); + const salt = await bcrypt.genSalt(10); + this.password = await bcrypt.hash(this.password, salt); + next(); + } catch (error) { + next(error as Error); + } +}); + +// Instance methods +userSchema.methods.comparePassword = async function(candidatePassword: string): Promise { + const bcrypt = await import('bcrypt'); + return bcrypt.compare(candidatePassword, this.password); +}; + +export const User = mongoose.model('User', userSchema); \ No newline at end of file diff --git a/ts-parser/test-repo/src/routes/AuthRoutes.ts b/ts-parser/test-repo/src/routes/AuthRoutes.ts new file mode 100644 index 0000000..edaf155 --- /dev/null +++ b/ts-parser/test-repo/src/routes/AuthRoutes.ts @@ -0,0 +1,129 @@ +import { Router } from 'express'; +import * as jwt from 'jsonwebtoken'; +import * as bcrypt from 'bcrypt'; +import { UserService } from '@services/UserService'; +import { validateRequest } from '@middleware/Validation'; +import { config } from '../config/app.config'; +import { Logger } from '@utils/Logger'; + +const router = Router(); +const userService = new UserService(); + +// Validation schemas +const loginSchema = { + email: { required: true, type: 'string', pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ }, + password: { required: true, type: 'string', minLength: 6 } +}; + +const registerSchema = { + email: { required: true, type: 'string', pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ }, + password: { required: true, type: 'string', minLength: 6 }, + name: { required: true, type: 'string', minLength: 2, maxLength: 50 } +}; + +// Routes +router.post('/register', + validateRequest(registerSchema), + async (req, res) => { + try { + const { email, password, name } = req.body; + + // Check if user already exists + const existingUser = await userService.getUserByEmail(email); + if (existingUser) { + return res.status(400).json({ error: 'User already exists' }); + } + + // Create user + const user = await userService.createUser({ email, password, name }); + + // Generate token + const token = jwt.sign( + { userId: user._id, email: user.email }, + config.jwtSecret, + { expiresIn: '24h' } + ); + + Logger.info(`User registered: ${email}`); + res.status(201).json({ + message: 'User registered successfully', + token, + user: { + id: user._id, + email: user.email, + name: user.name + } + }); + } catch (error) { + Logger.error('Registration error:', error); + res.status(500).json({ error: 'Registration failed' }); + } + } +); + +router.post('/login', + validateRequest(loginSchema), + async (req, res) => { + try { + const { email, password } = req.body; + + // Find user + const user = await userService.getUserByEmail(email); + if (!user) { + return res.status(401).json({ error: 'Invalid credentials' }); + } + + // Check password + const isValidPassword = await user.comparePassword(password); + if (!isValidPassword) { + return res.status(401).json({ error: 'Invalid credentials' }); + } + + // Generate token + const token = jwt.sign( + { userId: user._id, email: user.email, role: user.role }, + config.jwtSecret, + { expiresIn: '24h' } + ); + + Logger.info(`User logged in: ${email}`); + res.json({ + message: 'Login successful', + token, + user: { + id: user._id, + email: user.email, + name: user.name, + role: user.role + } + }); + } catch (error) { + Logger.error('Login error:', error); + res.status(500).json({ error: 'Login failed' }); + } + } +); + +router.post('/refresh-token', async (req, res) => { + try { + const { token } = req.body; + + if (!token) { + return res.status(401).json({ error: 'No token provided' }); + } + + const decoded = jwt.verify(token, config.jwtSecret) as any; + const newToken = jwt.sign( + { userId: decoded.userId, email: decoded.email }, + config.jwtSecret, + { expiresIn: '24h' } + ); + + res.json({ token: newToken }); + } catch (error) { + Logger.error('Token refresh error:', error); + res.status(401).json({ error: 'Invalid token' }); + } +}); + +export { router as AuthRoutes }; \ No newline at end of file diff --git a/ts-parser/test-repo/src/routes/UserRoutes.ts b/ts-parser/test-repo/src/routes/UserRoutes.ts new file mode 100644 index 0000000..4270ce7 --- /dev/null +++ b/ts-parser/test-repo/src/routes/UserRoutes.ts @@ -0,0 +1,41 @@ +import { Router } from 'express'; +import { UserController } from '@/controllers/UserController'; +import { AuthMiddleware } from '@middleware/AuthMiddleware'; +import { validateRequest } from '@middleware/Validation'; + +const router = Router(); +const userController = new UserController(); + +// Validation schemas +const createUserSchema = { + email: { required: true, type: 'string', pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ }, + password: { required: true, type: 'string', minLength: 6 }, + name: { required: true, type: 'string', minLength: 2, maxLength: 50 }, + age: { type: 'number', minLength: 0, maxLength: 150 } +}; + +const updateUserSchema = { + email: { type: 'string', pattern: /^[^\s@]+@[^\s@]+\.[^\s@]+$/ }, + name: { type: 'string', minLength: 2, maxLength: 50 }, + age: { type: 'number', minLength: 0, maxLength: 150 } +}; + +// Routes +router.get('/', AuthMiddleware.authenticate, userController.getAllUsers.bind(userController)); +router.get('/:id', AuthMiddleware.authenticate, userController.getUser.bind(userController)); +router.post('/', + validateRequest(createUserSchema), + userController.createUser.bind(userController) +); +router.put('/:id', + AuthMiddleware.authenticate, + validateRequest(updateUserSchema), + userController.updateUser.bind(userController) +); +router.delete('/:id', + AuthMiddleware.authenticate, + AuthMiddleware.authorize(['admin']), + userController.deleteUser.bind(userController) +); + +export { router as UserRoutes }; \ No newline at end of file diff --git a/ts-parser/test-repo/src/services/DatabaseService.ts b/ts-parser/test-repo/src/services/DatabaseService.ts new file mode 100644 index 0000000..454b8de --- /dev/null +++ b/ts-parser/test-repo/src/services/DatabaseService.ts @@ -0,0 +1,45 @@ +import * as mongoose from 'mongoose'; +import { config } from '../config/app.config'; +import { Logger } from '@utils/Logger'; + +export class DatabaseService { + private connectionString: string; + + constructor() { + this.connectionString = `mongodb://${config.database.host}:${config.database.port}/${config.database.name}`; + } + + async connect(): Promise { + try { + await mongoose.connect(this.connectionString, { + authSource: 'admin', + user: config.database.user, + pass: config.database.password, + }); + Logger.info('Connected to MongoDB'); + } catch (error) { + Logger.error('MongoDB connection error:', error); + throw error; + } + } + + async disconnect(): Promise { + try { + await mongoose.disconnect(); + Logger.info('Disconnected from MongoDB'); + } catch (error) { + Logger.error('MongoDB disconnection error:', error); + throw error; + } + } + + async healthCheck(): Promise { + try { + const state = mongoose.connection.readyState; + return state === 1; // 1 = connected + } catch (error) { + Logger.error('Database health check failed:', error); + return false; + } + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/services/UserService.ts b/ts-parser/test-repo/src/services/UserService.ts new file mode 100644 index 0000000..b2a1baf --- /dev/null +++ b/ts-parser/test-repo/src/services/UserService.ts @@ -0,0 +1,76 @@ +import { IUser } from '@models/user'; +import { User } from '@models/user'; +import { Logger } from '@utils/Logger'; + +export { IUser } from '../models/user'; + +export class UserService { + async createUser(userData: Partial): Promise { + try { + const user = new User(userData); + await user.save(); + Logger.info(`User created: ${user.email}`); + return user; + } catch (error) { + Logger.error('Error creating user:', error); + throw error; + } + } + + async getUserById(id: string): Promise { + try { + const user = await User.findById(id); + return user; + } catch (error) { + Logger.error('Error fetching user:', error); + throw error; + } + } + + async getUserByEmail(email: string): Promise { + try { + const user = await User.findOne({ email }); + return user; + } catch (error) { + Logger.error('Error fetching user by email:', error); + throw error; + } + } + + async updateUser(id: string, updates: Partial): Promise { + try { + const user = await User.findByIdAndUpdate(id, updates, { new: true }); + if (user) { + Logger.info(`User updated: ${user.email}`); + } + return user; + } catch (error) { + Logger.error('Error updating user:', error); + throw error; + } + } + + async deleteUser(id: string): Promise { + try { + await User.findByIdAndDelete(id); + Logger.info(`User deleted: ${id}`); + } catch (error) { + Logger.error('Error deleting user:', error); + throw error; + } + } + + async getAllUsers(): Promise { + try { + const users = await User.find(); + return users; + } catch (error) { + Logger.error('Error fetching users:', error); + throw error; + } + } + + async comparePassword(): Promise { + return await true + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/services/api.ts b/ts-parser/test-repo/src/services/api.ts new file mode 100644 index 0000000..3d042d8 --- /dev/null +++ b/ts-parser/test-repo/src/services/api.ts @@ -0,0 +1,31 @@ +import * as userModel from '../models/user'; +import { IUser } from "./UserService" + +export interface ApiResponse { + data: T; + success: boolean; + message?: string; +} + +export class ApiService { + private baseUrl: string; + + constructor(baseUrl: string) { + this.baseUrl = baseUrl; + } + + public async getUser(id: string): Promise> { + var u = new userModel.User('Bob', 30); + // Mock API call + return { + data: u, + success: true + }; + } + + public static createService(url: string): ApiService { + return new ApiService(url); + } +} + + diff --git a/ts-parser/test-repo/src/test/index.test.ts b/ts-parser/test-repo/src/test/index.test.ts new file mode 100644 index 0000000..49b1444 --- /dev/null +++ b/ts-parser/test-repo/src/test/index.test.ts @@ -0,0 +1,9 @@ +import { Calculator } from '../utils/calculator'; +import { User } from '../models/user'; + +describe('Calculator', () => { + it('should add numbers correctly', () => { + const calc = new Calculator(); + expect(calc.add(2, 3)).toBe(5); + }); +}); diff --git a/ts-parser/test-repo/src/utils/Logger.ts b/ts-parser/test-repo/src/utils/Logger.ts new file mode 100644 index 0000000..0bb1f15 --- /dev/null +++ b/ts-parser/test-repo/src/utils/Logger.ts @@ -0,0 +1,39 @@ +import * as fs from 'fs'; +import * as path from 'path'; + +export class Logger { + private static logFile = path.join(__dirname, '../../logs/app.log'); + + static info(message: string, ...args: any[]): void { + const timestamp = new Date().toISOString(); + const logMessage = `[${timestamp}] INFO: ${message} ${args.length > 0 ? JSON.stringify(args) : ''}`; + console.log(logMessage); + this.writeToFile(logMessage); + } + + static error(message: string, ...args: any[]): void { + const timestamp = new Date().toISOString(); + const logMessage = `[${timestamp}] ERROR: ${message} ${args.length > 0 ? JSON.stringify(args) : ''}`; + console.error(logMessage); + this.writeToFile(logMessage); + } + + static warn(message: string, ...args: any[]): void { + const timestamp = new Date().toISOString(); + const logMessage = `[${timestamp}] WARN: ${message} ${args.length > 0 ? JSON.stringify(args) : ''}`; + console.warn(logMessage); + this.writeToFile(logMessage); + } + + private static writeToFile(message: string): void { + try { + const logDir = path.dirname(this.logFile); + if (!fs.existsSync(logDir)) { + fs.mkdirSync(logDir, { recursive: true }); + } + fs.appendFileSync(this.logFile, message + '\n'); + } catch (error) { + console.error('Failed to write to log file:', error); + } + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/utils/Validation.ts b/ts-parser/test-repo/src/utils/Validation.ts new file mode 100644 index 0000000..6d723a6 --- /dev/null +++ b/ts-parser/test-repo/src/utils/Validation.ts @@ -0,0 +1,48 @@ +import { Request, Response, NextFunction } from 'express'; + +export interface ValidationError { + field: string; + message: string; +} + +export function validateUser(userData: any): boolean { + if (!userData.email || typeof userData.email !== 'string') { + return false; + } + + if (!userData.password || typeof userData.password !== 'string' || userData.password.length < 6) { + return false; + } + + if (!userData.name || typeof userData.name !== 'string') { + return false; + } + + return true; +} + +export function validateRequest(schema: any) { + return (req: Request, res: Response, next: NextFunction) => { + const errors: ValidationError[] = []; + + // Basic validation - in real app, use Joi or Zod + Object.keys(schema).forEach(key => { + const rules = schema[key]; + const value = req.body[key]; + + if (rules.required && !value) { + errors.push({ field: key, message: `${key} is required` }); + } + + if (rules.type && typeof value !== rules.type) { + errors.push({ field: key, message: `${key} must be of type ${rules.type}` }); + } + }); + + if (errors.length > 0) { + return res.status(400).json({ errors }); + } + + next(); + }; +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/utils/calculator.ts b/ts-parser/test-repo/src/utils/calculator.ts new file mode 100644 index 0000000..1546e99 --- /dev/null +++ b/ts-parser/test-repo/src/utils/calculator.ts @@ -0,0 +1,141 @@ +import * as _ from 'lodash'; +import * as fs from 'fs'; +import * as path from 'path'; +import * as JSON5 from 'json5'; + + +export class Calculator { + private history: Array<{ operation: string; result: number; timestamp: Date }> = []; + + add(a: number, b: number): number { + const result = a + b; + this.logOperation('add', result, [a, b]); + return result; + } + + subtract(a: number, b: number): number { + const result = a - b; + this.logOperation('subtract', result, [a, b]); + return result; + } + + multiply(a: number, b: number): number { + const result = a * b; + this.logOperation('multiply', result, [a, b]); + return result; + } + + divide(a: number, b: number): number { + if (b === 0) { + throw new Error('Division by zero is not allowed'); + } + const result = a / b; + this.logOperation('divide', result, [a, b]); + return result; + } + + power(base: number, exponent: number): number { + const result = Math.pow(base, exponent); + this.logOperation('power', result, [base, exponent]); + return result; + } + + factorial(n: number): number { + if (n < 0) { + throw new Error('Factorial is not defined for negative numbers'); + } + if (n === 0 || n === 1) { + return 1; + } + + let result = 1; + for (let i = 2; i <= n; i++) { + result *= i; + } + + this.logOperation('factorial', result, [n]); + return result; + } + + sum(numbers: number[]): number { + const result = _.sum(numbers); + this.logOperation('sum', result, numbers); + return result; + } + + average(numbers: number[]): number { + if (numbers.length === 0) { + throw new Error('Cannot calculate average of empty array'); + } + const result = _.sum(numbers) / numbers.length; + this.logOperation('average', result, numbers); + return result; + } + + median(numbers: number[]): number { + const sorted = _.sortBy(numbers); + const len = sorted.length; + + if (len === 0) { + throw new Error('Cannot calculate median of empty array'); + } + + let result: number; + if (len % 2 === 0) { + result = (sorted[len / 2 - 1] + sorted[len / 2]) / 2; + } else { + result = sorted[Math.floor(len / 2)]; + } + + this.logOperation('median', result, numbers); + return result; + } + + private logOperation(operation: string, result: number, inputs: number[]): void { + this.history.push({ + operation, + result, + timestamp: new Date() + }); + + // Limit history to last 100 operations + if (this.history.length > 100) { + this.history = this.history.slice(-100); + } + } + + getHistory(): Array<{ operation: string; result: number; timestamp: Date }> { + return [...this.history]; + } + + clearHistory(): void { + this.history = []; + } + + saveHistoryToFile(filename: string): void { + const filePath = path.join(__dirname, '../../logs', filename); + const data = JSON.stringify(this.history, null, 2); + + try { + if (!fs.existsSync(path.dirname(filePath))) { + fs.mkdirSync(path.dirname(filePath), { recursive: true }); + } + fs.writeFileSync(filePath, data); + } catch (error) { + console.error('Error saving history:', error); + } + } + + loadHistoryFromFile(filename: string): void { + const filePath = path.join(__dirname, '../../logs', filename); + + try { + if (fs.existsSync(filePath)) { + const data = fs.readFileSync(filePath, 'utf-8'); + this.history = JSON5.parse(data); + } + } catch (error) { + console.error('Error loading history:', error); + } + } +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/utils/constants.ts b/ts-parser/test-repo/src/utils/constants.ts new file mode 100644 index 0000000..df5829f --- /dev/null +++ b/ts-parser/test-repo/src/utils/constants.ts @@ -0,0 +1,10 @@ +export const PI = 3.14159; +export const E = 2.71828; + +export enum Color { + RED = 'red', + GREEN = 'green', + BLUE = 'blue' +} + +export type Result = T | Error; \ No newline at end of file diff --git a/ts-parser/test-repo/tsconfig.json b/ts-parser/test-repo/tsconfig.json new file mode 100644 index 0000000..8d17d25 --- /dev/null +++ b/ts-parser/test-repo/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "baseUrl": ".", + "paths": { + "@/*": ["src/*"], + "@models/*": ["src/models/*"], + "@services/*": ["src/services/*"], + "@utils/*": ["src/utils/*"], + "@middleware/*": ["src/middleware/*"] + } + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"] +} \ No newline at end of file diff --git a/ts-parser/tsconfig.json b/ts-parser/tsconfig.json new file mode 100644 index 0000000..c454fdc --- /dev/null +++ b/ts-parser/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "lib": ["ES2020"], + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "resolveJsonModule": true, + "types": ["node"], + "typeRoots": ["node_modules/@types"] + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts"] +} \ No newline at end of file From f3cb7e5fe615bbd9acb36333935b8b9f222c7ce0 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Thu, 21 Aug 2025 19:11:13 +0800 Subject: [PATCH 02/17] add src flag --- ts-parser/README.md | 3 ++ ts-parser/src/index.ts | 4 +- ts-parser/src/parser/ModuleParser.ts | 5 ++- ts-parser/src/parser/RepositoryParser.ts | 2 +- ts-parser/src/utils/symbol-resolver.ts | 1 + ts-parser/src/utils/type-utils.ts | 7 ---- ts-parser/src/utils/typescript-structure.ts | 42 +++++++++++++++------ 7 files changed, 41 insertions(+), 23 deletions(-) diff --git a/ts-parser/README.md b/ts-parser/README.md index 9c9d349..c56935f 100644 --- a/ts-parser/README.md +++ b/ts-parser/README.md @@ -18,6 +18,9 @@ Arguments: |--------|-------------| | -o, --output | Output file path (default: "output.json") | | -t, --tsconfig | Path to tsconfig.json file, if you provide a relative path, it will be relative to **the directory of the input file** (default: "tsconfig.json") | +| --no-dist | Ignore dist folder and its contents | +| --pretty | Pretty print JSON output | +| --src | Directory paths to include (comma-separated) | | -h, --help | display help for command | diff --git a/ts-parser/src/index.ts b/ts-parser/src/index.ts index d198719..6809fb3 100644 --- a/ts-parser/src/index.ts +++ b/ts-parser/src/index.ts @@ -20,6 +20,7 @@ program .option('-t, --tsconfig ', 'Path to tsconfig.json file (relative to project root if not absolute)') .option('--no-dist', 'Ignore dist folder and its contents', false) .option('--pretty', 'Pretty print JSON output', false) + .option('--src ', 'Directory paths to include (comma-separated)', (value) => value.split(',')) .action(async (directory, options) => { try { const repoPath = path.resolve(directory); @@ -34,7 +35,8 @@ program const parser = new RepositoryParser(repoPath, options.tsconfig); const repository = await parser.parseRepository(repoPath, { loadExternalSymbols: false, - noDist: options.noDist + noDist: options.noDist, + srcPatterns: options.src }); const outputPath = path.resolve(options.output); diff --git a/ts-parser/src/parser/ModuleParser.ts b/ts-parser/src/parser/ModuleParser.ts index 70e89a4..936125a 100644 --- a/ts-parser/src/parser/ModuleParser.ts +++ b/ts-parser/src/parser/ModuleParser.ts @@ -22,7 +22,7 @@ export class ModuleParser { this.tsConfigCache = TsConfigCache.getInstance(); } - async parseModule(modulePath: string, relativeDir: string, options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): Promise { + async parseModule(modulePath: string, relativeDir: string, options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): Promise { const packageJsonPath = path.join(modulePath, 'package.json'); let packageJson: any = {}; @@ -42,7 +42,8 @@ export class ModuleParser { const analyzer = new TypeScriptStructureAnalyzer(modulePath); const structure = analyzer.analyze({ loadExternalSymbols: options.loadExternalSymbols, - noDist: options.noDist + noDist: options.noDist, + srcPatterns: options.srcPatterns }); // Parse packages diff --git a/ts-parser/src/parser/RepositoryParser.ts b/ts-parser/src/parser/RepositoryParser.ts index aa60a89..46987c2 100644 --- a/ts-parser/src/parser/RepositoryParser.ts +++ b/ts-parser/src/parser/RepositoryParser.ts @@ -79,7 +79,7 @@ export class RepositoryParser { return TsConfigCache.getInstance().getCurrentConfigPath(''); } - async parseRepository(repoPath: string, options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): Promise { + async parseRepository(repoPath: string, options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): Promise { const absolutePath = path.resolve(repoPath); const repository: Repository = { diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts index 4ee6ff3..bcbcbae 100644 --- a/ts-parser/src/utils/symbol-resolver.ts +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -39,6 +39,7 @@ export class SymbolResolver { } } catch (e) { // ignore + console.warn("Failed during parsing package.json: " + e) } } diff --git a/ts-parser/src/utils/type-utils.ts b/ts-parser/src/utils/type-utils.ts index 5c2a165..cba7414 100644 --- a/ts-parser/src/utils/type-utils.ts +++ b/ts-parser/src/utils/type-utils.ts @@ -14,11 +14,4 @@ export class TypeUtils { static isPrimitiveType(typeName: string): boolean { return this.PRIMITIVE_TYPES.has(typeName.toLowerCase()); } - - /** - * Extract base type name from complex type expressions - */ - static extractBaseTypeName(typeName: string): string { - return typeName.split('<')[0].split('&')[0].split('|')[0].trim(); - } } \ No newline at end of file diff --git a/ts-parser/src/utils/typescript-structure.ts b/ts-parser/src/utils/typescript-structure.ts index 7d78930..d4bba46 100644 --- a/ts-parser/src/utils/typescript-structure.ts +++ b/ts-parser/src/utils/typescript-structure.ts @@ -44,7 +44,7 @@ export class TypeScriptStructureAnalyzer { this.tsConfigCache = TsConfigCache.getInstance(); } - analyze(options: { loadExternalSymbols?: boolean, noDist?: boolean } = {}): TypeScriptStructure { + analyze(options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): TypeScriptStructure { const structure: TypeScriptStructure = { modules: new Map(), packages: new Map(), @@ -101,7 +101,7 @@ export class TypeScriptStructureAnalyzer { } - private analyzePackages(module: ModuleInfo, options: { noDist?: boolean } = {}): PackageInfo[] { + private analyzePackages(module: ModuleInfo, options: { noDist?: boolean, srcPatterns?: string[] } = {}): PackageInfo[] { const packages: PackageInfo[] = []; const sourceDirs = this.findSourceDirectories(module, options); @@ -113,7 +113,13 @@ export class TypeScriptStructureAnalyzer { return packages; } - private findSourceDirectories(module: ModuleInfo, options: { noDist?: boolean } = {}): string[] { + private findSourceDirectories(module: ModuleInfo, options: { noDist?: boolean, srcPatterns?: string[] } = {}): string[] { + // Handle srcPatterns if provided + if (options.srcPatterns && options.srcPatterns.length > 0) { + return this.findDirectoriesByPatterns(module.path, options.srcPatterns, options); + } + + // Original behavior when no srcPatterns provided const dirs: string[] = []; const packageJson = module.packageJson; @@ -127,14 +133,6 @@ export class TypeScriptStructureAnalyzer { dirs.push(path.join(module.path, config.outDir)); } - // Check package.json for main entry - if (packageJson.main) { - const mainDir = path.dirname(path.join(module.path, packageJson.main)); - if (fs.existsSync(mainDir)) { - dirs.push(mainDir); - } - } - // Default source directories const defaultDirs = ['src', 'lib']; if (!options.noDist) { @@ -152,6 +150,26 @@ export class TypeScriptStructureAnalyzer { return [...new Set(dirs)].filter(dir => fs.existsSync(dir)); } + private findDirectoriesByPatterns(modulePath: string, patterns: string[], options: { noDist?: boolean }): string[] { + const matchedDirs = new Set(); + + for (const pattern of patterns) { + // 精确路径匹配,直接拼接并检查是否存在 + const fullPath = path.join(modulePath, pattern); + + if (fs.existsSync(fullPath) && fs.statSync(fullPath).isDirectory()) { + // 检查是否需要跳过 dist 目录 + if (options.noDist && path.basename(fullPath) === 'dist') { + continue; + } + + matchedDirs.add(fullPath); + } + } + + return Array.from(matchedDirs); + } + private createPackagesFromDirectory(module: ModuleInfo, sourceDir: string, options: { noDist?: boolean } = {}): PackageInfo[] { const packages: PackageInfo[] = []; @@ -198,7 +216,7 @@ export class TypeScriptStructureAnalyzer { return packages; } - private findTypeScriptFiles(dir: string, options: { noDist?: boolean } = {}): string[] { + private findTypeScriptFiles(dir: string, options: { noDist?: boolean, srcPatterns?: string[] } = {}): string[] { const files: string[] = []; function traverse(currentDir: string) { From 329261ddd154b6ae73ce2292e5b266046d6a1db3 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Thu, 21 Aug 2025 22:44:07 +0800 Subject: [PATCH 03/17] parse tsconfig references --- ts-parser/src/parser/RepositoryParser.ts | 44 +++++++++++++++++++++++- ts-parser/src/utils/symbol-resolver.ts | 12 +++++-- 2 files changed, 53 insertions(+), 3 deletions(-) diff --git a/ts-parser/src/parser/RepositoryParser.ts b/ts-parser/src/parser/RepositoryParser.ts index 46987c2..cd061dd 100644 --- a/ts-parser/src/parser/RepositoryParser.ts +++ b/ts-parser/src/parser/RepositoryParser.ts @@ -1,4 +1,4 @@ -import { Project } from 'ts-morph'; +import { Project, ts } from 'ts-morph'; import * as path from 'path'; import * as fs from 'fs'; import { Repository, Node, Relation, Identity, Function, Type, Var } from '../types/uniast'; @@ -37,6 +37,48 @@ export class RepositoryParser { forceConsistentCasingInFileNames: true } }); + const tsConfigQueue: string[] = [configPath]; + const processedTsConfigs = new Set(); + while (tsConfigQueue.length > 0) { + const currentTsConfig = path.resolve(tsConfigQueue.shift()!); + if (processedTsConfigs.has(currentTsConfig)) { + continue; + } + processedTsConfigs.add(currentTsConfig); + + const tsConfig_ = ts.readConfigFile( + currentTsConfig, ts.sys.readFile + ); + if(tsConfig_.error) { + console.warn("parse tsconfig error", tsConfig_.error) + continue; + } + const parsedConfig = ts.parseJsonConfigFileContent( + tsConfig_.config, + ts.sys, + path.dirname(currentTsConfig) + ); + if(parsedConfig.errors.length > 0) { + parsedConfig.errors.forEach(err => { + console.warn("parse tsconfig warning:", err.messageText) + }); + } + this.project.addSourceFilesAtPaths(parsedConfig.fileNames); + // Get references + const references = parsedConfig.projectReferences; + if (!references) { + continue; + } + for (const ref of references) { + const resolvedRef = ts.resolveProjectReferencePath(ref); + if (resolvedRef.length > 0) { + const refPath = path.resolve(path.dirname(currentTsConfig), resolvedRef); + if(fs.existsSync(refPath)) { + tsConfigQueue.push(refPath); + } + } + } + } } else { // if tsconfig.json does not exist, use default configuration this.project = new Project({ diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts index bcbcbae..c1dcd18 100644 --- a/ts-parser/src/utils/symbol-resolver.ts +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -22,10 +22,12 @@ export class SymbolResolver { private resolutionCache = new Map(); private packageJsonCache = new Map(); private mainPackageName: string; + private cannotResolveSymbolNames: Set = new Set(); constructor(project: Project, projectRoot: string) { this.project = project; this.projectRoot = this.normalizePath(projectRoot); + this.cannotResolveSymbolNames = new Set(); // Pre-cache the main package.json to avoid repeated file reads const mainPackageJsonPath = path.join(this.projectRoot, 'package.json'); @@ -59,7 +61,11 @@ export class SymbolResolver { const definitionNode = this.findActualDefinition(symbol); if (!definitionNode) { - console.warn(`Symbol not found: ${symbol.getName()}.`) + // Log unresolved symbols only once + if (!this.cannotResolveSymbolNames.has(symbol.getName())) { + this.cannotResolveSymbolNames.add(symbol.getName()); + console.warn(`Symbol not found: ${symbol.getName()}.`) + } this.resolutionCache.set(cacheKey, null); return null; } @@ -143,7 +149,9 @@ export class SymbolResolver { const declarations = current.getDeclarations(); if (declarations.length === 0) { - if (lastCurrent) { + if (lastCurrent && !this.cannotResolveSymbolNames.has(lastCurrent.getName())) { + // Log unresolved symbols only once + this.cannotResolveSymbolNames.add(lastCurrent.getName()); console.log("Can't parse: " + lastCurrent.getName(), ". Possibly this library has no .d.ts") } return null; From 4eb301d03b4c48dfed395dc6742a83b96dba31a9 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Thu, 21 Aug 2025 23:39:36 +0800 Subject: [PATCH 04/17] chorus: make package extraction based on tsconfig includes --- ts-parser/src/parser/RepositoryParser.ts | 15 +++-------- ts-parser/src/utils/dependency-utils.ts | 24 +---------------- ts-parser/src/utils/tsconfig-cache.ts | 30 +++++++++++++++------ ts-parser/src/utils/typescript-structure.ts | 13 +++++++-- 4 files changed, 38 insertions(+), 44 deletions(-) diff --git a/ts-parser/src/parser/RepositoryParser.ts b/ts-parser/src/parser/RepositoryParser.ts index cd061dd..81f7986 100644 --- a/ts-parser/src/parser/RepositoryParser.ts +++ b/ts-parser/src/parser/RepositoryParser.ts @@ -14,19 +14,18 @@ export class RepositoryParser { this.tsConfigCache = TsConfigCache.getInstance(); + let configPath = path.join(projectRoot, 'tsconfig.json'); - // 设置全局 tsconfig 路径(如果提供) + // If a custom tsconfig path is provided, use it if (tsConfigPath) { let absoluteTsConfigPath = tsConfigPath; if (!path.isAbsolute(absoluteTsConfigPath)) { absoluteTsConfigPath = path.join(projectRoot, absoluteTsConfigPath); } + configPath = absoluteTsConfigPath; this.tsConfigCache.setGlobalConfigPath(absoluteTsConfigPath); } - - // get current tsconfig path - const configPath = this.tsConfigCache.getCurrentConfigPath(projectRoot); - + if (fs.existsSync(configPath)) { // if tsconfig.json exists, use it to configure the project this.project = new Project({ @@ -114,12 +113,6 @@ export class RepositoryParser { this.moduleParser = new ModuleParser(this.project, projectRoot); } - /** - * get current tsconfig path - */ - public static getTsConfigPath(): string | null { - return TsConfigCache.getInstance().getCurrentConfigPath(''); - } async parseRepository(repoPath: string, options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): Promise { const absolutePath = path.resolve(repoPath); diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts index 5c418c0..a562d7e 100644 --- a/ts-parser/src/utils/dependency-utils.ts +++ b/ts-parser/src/utils/dependency-utils.ts @@ -1,6 +1,7 @@ import { Identifier, Node, SymbolFlags, SyntaxKind, Type, TypeNode, TypeReferenceNode } from 'ts-morph'; import { Dependency } from '../types/uniast'; import { SymbolResolver } from './symbol-resolver'; +import { PathUtils } from './path-utils'; export class DependencyUtils { private symbolResolver: SymbolResolver; @@ -107,30 +108,7 @@ export class DependencyUtils { return results; } - extractAtomicType(type: Type): Type[] { - const results: Type[] = []; - function visit(t: Type) { - if (t.isUnion && t.isUnion()) { - t.getUnionTypes().forEach(visit); - } else if (t.isIntersection && t.isIntersection()) { - t.getIntersectionTypes().forEach(visit); - } else if (t.isArray && t.isArray()) { - visit(t.getArrayElementTypeOrThrow()); - } else if (t.getAliasTypeArguments && t.getAliasTypeArguments().length > 0) { - t.getAliasTypeArguments().forEach(visit); - } else if (t.getTypeArguments && t.getTypeArguments().length > 0) { - t.getTypeArguments().forEach(visit); - } else { - results.push(t); - } - } - - visit(type); - return results; - } - private getPkgPath(packagePath: string): string { - const PathUtils = require('./path-utils').PathUtils; const pathUtils = new PathUtils(this.projectRoot); return pathUtils.getPkgPath(packagePath); } diff --git a/ts-parser/src/utils/tsconfig-cache.ts b/ts-parser/src/utils/tsconfig-cache.ts index 88cc8c7..9b537a2 100644 --- a/ts-parser/src/utils/tsconfig-cache.ts +++ b/ts-parser/src/utils/tsconfig-cache.ts @@ -1,6 +1,7 @@ import * as fs from 'fs'; import * as path from 'path'; import * as JSON5 from 'json5'; +import { ts } from 'ts-morph'; export interface TsConfigData { @@ -8,6 +9,7 @@ export interface TsConfigData { paths?: Record; rootDir?: string; outDir?: string; + fileNames?: string[]; [key: string]: any; } @@ -45,6 +47,7 @@ export class TsConfigCache { // Get tsconfig.json path const configPath = customPath || this.globalConfigPath || path.join(projectRoot, 'tsconfig.json'); const resolvedPath = path.resolve(configPath); + const emptyConfig: TsConfigData = {}; // If cache exists, return directly if (this.cache.has(resolvedPath)) { @@ -53,18 +56,36 @@ export class TsConfigCache { // If file does not exist, return empty object if (!fs.existsSync(resolvedPath)) { - const emptyConfig: TsConfigData = {}; this.cache.set(resolvedPath, emptyConfig); return emptyConfig; } try { + const tsConfig_ = ts.readConfigFile( + resolvedPath, ts.sys.readFile + ); + if (tsConfig_.error) { + console.warn(`Failed to read tsconfig.json at ${this.globalConfigPath}:`, tsConfig_.error); + return emptyConfig; + } + const parsedConfig = ts.parseJsonConfigFileContent( + tsConfig_.config, + ts.sys, + path.dirname(configPath) + ); + if(parsedConfig.errors.length > 0) { + parsedConfig.errors.forEach(err => { + console.warn("parse tsconfig warning:", err.messageText) + }); + } + const tsconfig = JSON5.parse(fs.readFileSync(resolvedPath, 'utf8')); const configData: TsConfigData = { compilerOptions: tsconfig.compilerOptions || {}, paths: tsconfig.compilerOptions?.paths || {}, rootDir: tsconfig.compilerOptions?.rootDir, outDir: tsconfig.compilerOptions?.outDir, + fileNames: parsedConfig.fileNames || [], ...tsconfig }; @@ -107,11 +128,4 @@ export class TsConfigCache { public clearCache(): void { this.cache.clear(); } - - /** - * Get current tsconfig.json path - */ - public getCurrentConfigPath(projectRoot: string): string { - return this.globalConfigPath || path.join(projectRoot, 'tsconfig.json'); - } } \ No newline at end of file diff --git a/ts-parser/src/utils/typescript-structure.ts b/ts-parser/src/utils/typescript-structure.ts index d4bba46..7dabe18 100644 --- a/ts-parser/src/utils/typescript-structure.ts +++ b/ts-parser/src/utils/typescript-structure.ts @@ -125,7 +125,16 @@ export class TypeScriptStructureAnalyzer { // Get tsconfig.json configuration const config = this.tsConfigCache.getTsConfig(module.path); + + // Default: all directories in tsconfig.json + if(config.fileNames && config.fileNames.length > 0) { + const dirSet = new Set(); + config.fileNames.forEach(file => { dirSet.add(path.dirname(file)); }); + dirs.push(...Array.from(dirSet)); + return dirs.filter(dir => fs.existsSync(dir)); + } + // Fallback to rootDir and outDir if (config.rootDir) { dirs.push(path.join(module.path, config.rootDir)); } @@ -154,11 +163,11 @@ export class TypeScriptStructureAnalyzer { const matchedDirs = new Set(); for (const pattern of patterns) { - // 精确路径匹配,直接拼接并检查是否存在 + // Assuming patterns are relative to modulePath const fullPath = path.join(modulePath, pattern); if (fs.existsSync(fullPath) && fs.statSync(fullPath).isDirectory()) { - // 检查是否需要跳过 dist 目录 + // Check if the directory matches the noDist option if (options.noDist && path.basename(fullPath) === 'dist') { continue; } From 62284accb2483adb4c388715ae44c717edff16c5 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 01:51:11 +0800 Subject: [PATCH 05/17] add unit test for utils and debug --- ts-parser/src/parser/FunctionParser.ts | 8 +- ts-parser/src/parser/TypeParser.ts | 2 +- ts-parser/src/parser/VarParser.ts | 47 +- ts-parser/src/utils/dependency-utils.ts | 23 +- ts-parser/src/utils/symbol-resolver.ts | 34 +- .../src/utils/test/dependency-utils.test.ts | 243 + ts-parser/src/utils/test/package-lock.json | 6322 +++++++++++++++++ ts-parser/src/utils/test/package.json | 49 + ts-parser/src/utils/test/setup.ts | 24 + .../src/utils/test/symbol-resolver.test.ts | 499 ++ ts-parser/src/utils/test/test-utils.ts | 80 + ts-parser/src/utils/test/tsconfig.json | 30 + ts-parser/test-repo/src/utils/Validation.ts | 4 + 13 files changed, 7328 insertions(+), 37 deletions(-) create mode 100644 ts-parser/src/utils/test/dependency-utils.test.ts create mode 100644 ts-parser/src/utils/test/package-lock.json create mode 100644 ts-parser/src/utils/test/package.json create mode 100644 ts-parser/src/utils/test/setup.ts create mode 100644 ts-parser/src/utils/test/symbol-resolver.test.ts create mode 100644 ts-parser/src/utils/test/test-utils.ts create mode 100644 ts-parser/src/utils/test/tsconfig.json diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts index 17e9d24..377fe94 100644 --- a/ts-parser/src/parser/FunctionParser.ts +++ b/ts-parser/src/parser/FunctionParser.ts @@ -380,7 +380,7 @@ export class FunctionParser { if (Node.isIdentifier(expression)) { const symbol = expression.getSymbol(); if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, expression); if (resolvedSymbol) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; if (!visited.has(key)) { @@ -445,7 +445,7 @@ export class FunctionParser { if (!methodSymbol) return; - const resolvedSymbol = this.symbolResolver.resolveSymbol(methodSymbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(methodSymbol, propAccess); if (!resolvedSymbol) return; // Handle method names like 'getX' -> 'getX' @@ -500,7 +500,7 @@ export class FunctionParser { const symbol = typeRef.getSymbol(); if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, typeNode); if (resolvedSymbol && !resolvedSymbol.isExternal) { typeName = resolvedSymbol.name const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${typeName}`; @@ -593,7 +593,7 @@ export class FunctionParser { if (this.isPrimitiveType(varName)) continue; // Use symbol resolver - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); if (resolvedSymbol && !resolvedSymbol.isExternal) { varName = resolvedSymbol.name const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${varName}`; diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index 65ec31f..df3608c 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -320,7 +320,7 @@ export class TypeParser { const typeName = identifier.getText(); if (this.isPrimitiveType(typeName)) continue; - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); // if symbol is not external, add it to dependencies if (resolvedSymbol && !resolvedSymbol.isExternal) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts index 01be82a..6ec5fce 100644 --- a/ts-parser/src/parser/VarParser.ts +++ b/ts-parser/src/parser/VarParser.ts @@ -6,9 +6,10 @@ import { Node, SyntaxKind, Project, + Identifier, } from 'ts-morph'; import { Var as UniVar, Dependency } from '../types/uniast'; -import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; +import { assignSymbolName, ResolvedSymbol, SymbolResolver } from '../utils/symbol-resolver'; import { PathUtils } from '../utils/path-utils'; export class VarParser { @@ -127,7 +128,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol, varDecl); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -201,7 +202,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol, prop); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -286,7 +287,7 @@ export class VarParser { const dependencies = this.extractInitializerDependencies(node, moduleName, packagePath, sourceFile); // Recursively extract all identifiers from destructuring patterns - this.extractIdentifiersFromPattern(nameNode, node, moduleName, packagePath, sourceFile, dependencies, results); + this.extractIdentifiersFromPattern(nameNode, node, moduleName, packagePath, sourceFile, dependencies, results, node); return results; } @@ -298,51 +299,57 @@ export class VarParser { packagePath: string, sourceFile: SourceFile, dependencies: Dependency[], - results: UniVar[] + results: UniVar[], + originNode: Node ): void { if (Node.isIdentifier(patternNode)) { // Simple identifier - results.push(this.createUniVar(patternNode.getText(), patternNode, parentNode, moduleName, packagePath, sourceFile, dependencies)); + const uniVar = this.createUniVar(originNode.getText(), patternNode, parentNode, moduleName, packagePath, sourceFile, dependencies) + uniVar && results.push(uniVar); } else if (Node.isBindingElement(patternNode)) { // Handle binding elements const nameNode = patternNode.getNameNode(); if (Node.isIdentifier(nameNode)) { - results.push(this.createUniVar(nameNode.getText(), nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies)); + const uniVar = this.createUniVar(originNode.getText(), nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies) + uniVar && results.push(uniVar); } else { // Recursively handle nested patterns - this.extractIdentifiersFromPattern(nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + this.extractIdentifiersFromPattern(nameNode, parentNode, moduleName, packagePath, sourceFile, dependencies, results, originNode); } } else if (Node.isObjectBindingPattern(patternNode)) { // Handle object destructuring const elements = patternNode.getElements(); for (const element of elements) { - this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results, originNode); } } else if (Node.isArrayBindingPattern(patternNode)) { // Handle array destructuring const elements = patternNode.getElements(); for (const element of elements) { - this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results); + this.extractIdentifiersFromPattern(element, parentNode, moduleName, packagePath, sourceFile, dependencies, results, originNode); } } } private createUniVar( - varName: string, - element: any, + content: string, + element: Identifier, parentNode: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, dependencies: Dependency[] - ): UniVar { + ): UniVar | null { const startLine = element.getStartLineNumber(); const startOffset = element.getStart(); const endOffset = element.getEnd(); - const content = element.getFullText(); let isExported = false; let isConst = false; + const symbol = element.getSymbol() + if (!symbol) { + return null + } if (Node.isVariableDeclaration(parentNode)) { const parent = parentNode.getVariableStatement(); @@ -358,7 +365,7 @@ export class VarParser { return { ModPath: moduleName, PkgPath: this.getPkgPath(packagePath), - Name: varName, + Name: assignSymbolName(symbol), File: this.getRelativePath(sourceFile.getFilePath()), Line: startLine, StartOffset: startOffset, @@ -387,10 +394,10 @@ export class VarParser { // Extract the source object/array that the destructuring is from const sourceSymbol = initializer.getSymbol(); if (sourceSymbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(sourceSymbol); + const [resolvedSymbol, filePath] = this.symbolResolver.resolveSymbolWithSource(sourceSymbol, node); if (resolvedSymbol && !resolvedSymbol.isExternal) { // Check if the dependency is defined outside this variable declaration - if (!this.isDependencyDefinedWithinVariable(resolvedSymbol, varStart, varEnd)) { + if (!this.isDependencyDefinedWithinVariable(resolvedSymbol, varStart, varEnd, this.pathUtils.getRelativePath(filePath))) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; if (!visited.has(key)) { visited.add(key); @@ -434,7 +441,7 @@ export class VarParser { continue } - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, node); if (resolvedSymbol && !resolvedSymbol.isExternal) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; if (!visited.has(key)) { @@ -455,7 +462,9 @@ export class VarParser { return dependencies; } - private isDependencyDefinedWithinVariable(resolvedSymbol: any, varStart: number, varEnd: number): boolean { + private isDependencyDefinedWithinVariable(resolvedSymbol: ResolvedSymbol, varStart: number, varEnd: number, sourceFilePath: string): boolean { + // resolvedSymbol.filePath -> symbol where is been used + if (resolvedSymbol.filePath !== sourceFilePath) return false; // Check if the dependency's declaration is within the variable declaration's range if (resolvedSymbol.startOffset !== undefined && resolvedSymbol.endOffset !== undefined) { return resolvedSymbol.startOffset >= varStart && resolvedSymbol.endOffset <= varEnd; diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts index a562d7e..40a1e6e 100644 --- a/ts-parser/src/utils/dependency-utils.ts +++ b/ts-parser/src/utils/dependency-utils.ts @@ -1,4 +1,4 @@ -import { Identifier, Node, SymbolFlags, SyntaxKind, Type, TypeNode, TypeReferenceNode } from 'ts-morph'; +import { Identifier, Node, SymbolFlags, SyntaxKind, Type, TypeNode, TypeReferenceNode, VariableDeclaration } from 'ts-morph'; import { Dependency } from '../types/uniast'; import { SymbolResolver } from './symbol-resolver'; import { PathUtils } from './path-utils'; @@ -16,16 +16,31 @@ export class DependencyUtils { * Extract dependencies from identifiers in a node */ extractDependenciesFromIdentifiers( - node: any, + node: VariableDeclaration | Identifier, moduleName: string, packagePath: string ): Dependency[] { const dependencies: Dependency[] = []; const visited = new Set(); - const identifiers = node.getDescendantsOfKind(SyntaxKind.Identifier); + // If this is a variable declaration, get the initializer + let targetNode: Node = node; + if (Node.isVariableDeclaration(node)) { + const initializer = node.getInitializer(); + if (!initializer) { + return dependencies; + } + targetNode = initializer; + } + + const identifiers = targetNode.getDescendantsOfKind(SyntaxKind.Identifier); for (const identifier of identifiers) { + // Skip the variable name itself + if (Node.isVariableDeclaration(node) && identifier === node.getNameNode()) { + continue; + } + // Skip function calls, constructors, property names, etc. const parent = identifier.getParent(); if ( @@ -41,7 +56,7 @@ export class DependencyUtils { const symbol = identifier.getSymbol(); if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); if (resolvedSymbol && !resolvedSymbol.isExternal) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; if (!visited.has(key)) { diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts index c1dcd18..01e78d5 100644 --- a/ts-parser/src/utils/symbol-resolver.ts +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -1,4 +1,4 @@ -import { Project, Symbol, Node, SyntaxKind, SymbolFlags } from 'ts-morph'; +import { Project, Symbol, Node, SyntaxKind, SymbolFlags, Identifier, PropertyAccessExpression, VariableDeclaration, PropertyDeclaration } from 'ts-morph'; import * as path from 'path'; import * as fs from 'fs'; import * as JSON5 from 'json5'; @@ -48,7 +48,7 @@ export class SymbolResolver { /** * Resolve a symbol to its actual definition point, following imports and exports. */ - resolveSymbol(symbol: Symbol): ResolvedSymbol | null { + resolveSymbol(symbol: Symbol, expression: T): ResolvedSymbol | null { const declarations = symbol.getDeclarations(); if (!declarations || declarations.length === 0) { return null; @@ -59,8 +59,9 @@ export class SymbolResolver { } const definitionNode = this.findActualDefinition(symbol); + const definitionSymbol = definitionNode?.getSymbol(); - if (!definitionNode) { + if (!definitionNode || !definitionSymbol) { // Log unresolved symbols only once if (!this.cannotResolveSymbolNames.has(symbol.getName())) { this.cannotResolveSymbolNames.add(symbol.getName()); @@ -77,13 +78,15 @@ export class SymbolResolver { const moduleInfo = this.extractModuleInfo(filePath, isExternal); const packageInfo = this.extractPackageInfo(filePath, isExternal); + const exprSourceFile = expression.getSourceFile().getFilePath(); + const resolved: ResolvedSymbol = { - name: assignSymbolName(symbol), // Use the original symbol name - filePath: this.getRelativePath(filePath), - line: definitionNode.getStartLineNumber(), - column: definitionNode.getStartLinePos(), - startOffset: definitionNode.getStart(), - endOffset: definitionNode.getEnd(), + name: assignSymbolName(definitionSymbol), // Use the original symbol name + filePath: this.getRelativePath(exprSourceFile), + line: expression.getStartLineNumber(), + column: expression.getStartLinePos(), + startOffset: expression.getStart(), + endOffset: expression.getEnd(), isExternal, moduleName: moduleInfo.name, packagePath: packageInfo.path, @@ -93,6 +96,19 @@ export class SymbolResolver { return resolved; } + resolveSymbolWithSource(symbol: Symbol, expression: T): [ResolvedSymbol, string] | [null, null] { + this.resolveSymbol(symbol, expression) + const declarations = symbol.getDeclarations(); + if (!declarations || declarations.length === 0) { + return [null, null]; + } + const cacheKey = `${declarations[0].getSourceFile().getFilePath()}#${symbol.getEscapedName()}`; + if (this.resolutionCache.has(cacheKey)) { + return [this.resolutionCache.get(cacheKey)!, declarations[0].getSourceFile().getFilePath()]; + } + return [null, null]; + } + /** * Finds the actual definition node for a symbol, traversing aliases. */ diff --git a/ts-parser/src/utils/test/dependency-utils.test.ts b/ts-parser/src/utils/test/dependency-utils.test.ts new file mode 100644 index 0000000..c30e9c5 --- /dev/null +++ b/ts-parser/src/utils/test/dependency-utils.test.ts @@ -0,0 +1,243 @@ +import { describe, it, expect, beforeEach, afterEach, jest } from '@jest/globals'; +import { Identifier, Project, SyntaxKind } from 'ts-morph'; +import { DependencyUtils } from '../dependency-utils'; +import { SymbolResolver } from '../symbol-resolver'; +import { createTestProject } from './test-utils'; + +describe('DependencyUtils', () => { + let dependencyUtils: DependencyUtils; + let symbolResolver: SymbolResolver; + let project: Project; + + beforeEach(() => { + project = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + symbolResolver = new SymbolResolver(project, process.cwd()); + dependencyUtils = new DependencyUtils(symbolResolver, process.cwd()); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('extractDependenciesFromIdentifiers', () => { + it('should extract dependencies from simple variable usage', () => { + const { sourceFile, cleanup } = createTestProject(` + const helper = { value: 42 }; + const result = helper.value; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('result'); + expect(variableDeclaration).toBeDefined(); + + const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( + variableDeclaration! as unknown as Identifier, + 'test', + '.' + ); + + expect(dependencies).toHaveLength(1); + expect(dependencies[0].Name).toBe('helper'); + expect(dependencies[0].ModPath).toBe('ts-parser-utils-test'); + } finally { + cleanup(); + } + }); + + it('should skip function calls and property access', () => { + const { sourceFile, cleanup } = createTestProject(` + function myFunction() { return 42; } + const obj = { prop: myFunction() }; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('obj'); + const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( + variableDeclaration! as unknown as Identifier, + 'test', + '.' + ); + + // Should not include myFunction as a dependency since it's a function call + expect(dependencies).toHaveLength(0); + } finally { + cleanup(); + } + }); + + it('should extract dependencies from class usage', () => { + const { sourceFile, cleanup } = createTestProject(` + class MyClass { + static staticProp = 42; + } + const instance = MyClass.staticProp; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('instance'); + const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( + variableDeclaration! as unknown as Identifier, + 'test', + '.' + ); + + expect(dependencies).toHaveLength(1); + expect(dependencies[0].Name).toBe('MyClass'); + } finally { + cleanup(); + } + }); + + it('should handle nested dependencies', () => { + const { sourceFile, cleanup } = createTestProject(` + const config = { db: { host: 'localhost' } }; + const host = config.db.host; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('host'); + const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( + variableDeclaration! as unknown as Identifier, + 'test', + '.' + ); + + expect(dependencies).toHaveLength(1); + expect(dependencies[0].Name).toBe('config'); + } finally { + cleanup(); + } + }); + + it('should deduplicate dependencies', () => { + const { sourceFile, cleanup } = createTestProject(` + const shared = { a: 1, b: 2 }; + const result = shared.a + shared.b; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('result'); + const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( + variableDeclaration! as unknown as Identifier, + 'test', + '.' + ); + + // Should only have one dependency for 'shared' despite multiple usages + expect(dependencies).toHaveLength(1); + expect(dependencies[0].Name).toBe('shared'); + } finally { + cleanup(); + } + }); + }); + + describe('extractAtomicTypeReferences', () => { + it('should extract simple type references', () => { + const { sourceFile, cleanup } = createTestProject(` + interface User { + name: string; + } + type UserType = User; + `); + + try { + const identifiers = sourceFile.getDescendantsOfKind(SyntaxKind.Identifier); // Identifier + const userIdentifier = identifiers.find(id => id.getText() === 'User'); + expect(userIdentifier).toBeDefined(); + + const types = dependencyUtils.extractAtomicTypeReferences(userIdentifier as any); + expect(types).toHaveLength(1); + } finally { + cleanup(); + } + }); + + it('should handle union types', () => { + const { sourceFile, cleanup } = createTestProject(` + interface A { a: string; } + interface B { b: number; } + type UnionType = A | B; + `); + + try { + const identifiers = sourceFile.getDescendantsOfKind(SyntaxKind.Identifier); + const unionIdentifiers = identifiers.filter(id => + id.getText() === 'A' || id.getText() === 'B' + ); + + for (const identifier of unionIdentifiers) { + if (identifier) { + const types = dependencyUtils.extractAtomicTypeReferences(identifier as any); + expect(types.length).toBeGreaterThan(0); + } + } + } finally { + cleanup(); + } + }); + + it('should handle array types', () => { + const { sourceFile, cleanup } = createTestProject(` + interface Item { + id: number; + } + type ItemArray = Item[]; + `); + + try { + const identifiers = sourceFile.getDescendantsOfKind(SyntaxKind.Identifier); + const itemIdentifier = identifiers.find(id => id.getText() === 'Item'); + expect(itemIdentifier).toBeDefined(); + + const types = dependencyUtils.extractAtomicTypeReferences(itemIdentifier as any); + expect(types).toHaveLength(1); + } finally { + cleanup(); + } + }); + + it('should skip generic type parameters', () => { + const { sourceFile, cleanup } = createTestProject(` + interface Generic { + value: T; + } + type MyGeneric = Generic; + `); + + try { + const identifiers = sourceFile.getDescendantsOfKind(SyntaxKind.Identifier); + const tIdentifier = identifiers.find(id => id.getText() === 'T'); + expect(tIdentifier).toBeDefined(); + + const types = dependencyUtils.extractAtomicTypeReferences(tIdentifier as any); + expect(types).toHaveLength(0); + } finally { + cleanup(); + } + }); + }); + + describe('getPkgPath', () => { + it('should return correct package path', () => { + const { cleanup } = createTestProject(` + const test = 42; + `); + + try { + // Test the private method through public interface + const result = (dependencyUtils as any).getPkgPath('src/utils'); + expect(typeof result).toBe('string'); + } finally { + cleanup(); + } + }); + }); +}); \ No newline at end of file diff --git a/ts-parser/src/utils/test/package-lock.json b/ts-parser/src/utils/test/package-lock.json new file mode 100644 index 0000000..321eb3b --- /dev/null +++ b/ts-parser/src/utils/test/package-lock.json @@ -0,0 +1,6322 @@ +{ + "name": "ts-parser-utils-test", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "ts-parser-utils-test", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "ts-morph": "^23.0.0" + }, + "devDependencies": { + "@jest/globals": "^29.7.0", + "@types/jest": "^29.5.5", + "@types/node": "^20.6.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "typescript": "^5.2.2" + } + }, + "node_modules/@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/core/-/core-7.28.3.tgz", + "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.3", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/generator": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "dependencies": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helpers/-/helpers-7.28.3.tgz", + "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.2" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.2", + "resolved": "https://bnpm.byted.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "dev": true, + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://bnpm.byted.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://bnpm.byted.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "dependencies": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://bnpm.byted.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://bnpm.byted.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://bnpm.byted.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://bnpm.byted.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@ts-morph/common": { + "version": "0.24.0", + "resolved": "https://bnpm.byted.org/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", + "dependencies": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + } + }, + "node_modules/@ts-morph/common/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/@ts-morph/common/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.5", + "resolved": "https://bnpm.byted.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://bnpm.byted.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.4", + "resolved": "https://bnpm.byted.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.28.2" + } + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://bnpm.byted.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://bnpm.byted.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://bnpm.byted.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "node_modules/@types/node": { + "version": "20.19.11", + "resolved": "https://bnpm.byted.org/@types/node/-/node-20.19.11.tgz", + "integrity": "sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==", + "dev": true, + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.33", + "resolved": "https://bnpm.byted.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://bnpm.byted.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://bnpm.byted.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/babel-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://bnpm.byted.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + }, + "peerDependencies": { + "@babel/core": "^7.0.0 || ^8.0.0-0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.25.3", + "resolved": "https://bnpm.byted.org/browserslist/-/browserslist-4.25.3.tgz", + "integrity": "sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==", + "dev": true, + "dependencies": { + "caniuse-lite": "^1.0.30001735", + "electron-to-chromium": "^1.5.204", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://bnpm.byted.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001737", + "resolved": "https://bnpm.byted.org/caniuse-lite/-/caniuse-lite-1.0.30001737.tgz", + "integrity": "sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==", + "dev": true + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.9.0", + "resolved": "https://bnpm.byted.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://bnpm.byted.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://bnpm.byted.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/code-block-writer": { + "version": "13.0.3", + "resolved": "https://bnpm.byted.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==" + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/dedent": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } + }, + "node_modules/deepmerge": { + "version": "4.3.1", + "resolved": "https://bnpm.byted.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff-sequences": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.5.208", + "resolved": "https://bnpm.byted.org/electron-to-chromium/-/electron-to-chromium-1.5.208.tgz", + "integrity": "sha512-ozZyibehoe7tOhNaf16lKmljVf+3npZcJIEbJRVftVsmAg5TeA1mGS9dVCZzOwr2xT7xK15V0p7+GZqSPgkuPg==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://bnpm.byted.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://bnpm.byted.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://bnpm.byted.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://bnpm.byted.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "dependencies": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + }, + "engines": { + "node": ">=8.6.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fastq": { + "version": "1.19.1", + "resolved": "https://bnpm.byted.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "dependencies": { + "reusify": "^1.0.4" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://bnpm.byted.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + } + }, + "node_modules/glob-parent": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "dependencies": { + "is-glob": "^4.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://bnpm.byted.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://bnpm.byted.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "dependencies": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" + }, + "bin": { + "handlebars": "bin/handlebars" + }, + "engines": { + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" + } + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/import-local": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://bnpm.byted.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://bnpm.byted.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "dependencies": { + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/is-extglob": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-glob": { + "version": "4.0.3", + "resolved": "https://bnpm.byted.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "dependencies": { + "is-extglob": "^2.1.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "dependencies": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "dependencies": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-config": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://bnpm.byted.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://bnpm.byted.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://bnpm.byted.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://bnpm.byted.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/merge2": { + "version": "1.4.1", + "resolved": "https://bnpm.byted.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", + "engines": { + "node": ">= 8" + } + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://bnpm.byted.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.19", + "resolved": "https://bnpm.byted.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-browserify": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://bnpm.byted.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "engines": { + "node": ">=8.6" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://bnpm.byted.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://bnpm.byted.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://bnpm.byted.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true + }, + "node_modules/queue-microtask": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://bnpm.byted.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/resolve": { + "version": "1.22.10", + "resolved": "https://bnpm.byted.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "dependencies": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/reusify": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==", + "engines": { + "iojs": ">=1.0.0", + "node": ">=0.10.0" + } + }, + "node_modules/run-parallel": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "dependencies": { + "queue-microtask": "^1.2.2" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://bnpm.byted.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://bnpm.byted.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/ts-jest": { + "version": "29.4.1", + "resolved": "https://bnpm.byted.org/ts-jest/-/ts-jest-29.4.1.tgz", + "integrity": "sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw==", + "dev": true, + "dependencies": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.2", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jest-util": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true, + "engines": { + "node": ">=16" + } + }, + "node_modules/ts-morph": { + "version": "23.0.0", + "resolved": "https://bnpm.byted.org/ts-morph/-/ts-morph-23.0.0.tgz", + "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", + "dependencies": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://bnpm.byted.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true + }, + "node_modules/update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://bnpm.byted.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://bnpm.byted.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://bnpm.byted.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://bnpm.byted.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + } + } + }, + "dependencies": { + "@ampproject/remapping": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + } + }, + "@babel/compat-data": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/compat-data/-/compat-data-7.28.0.tgz", + "integrity": "sha512-60X7qkglvrap8mn1lh2ebxXdZYtUcpd7gsmy9kLaBJ4i/WdY8PqTSdxyA8qraikqKQK5C1KRBKXqznrVapyNaw==", + "dev": true + }, + "@babel/core": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/core/-/core-7.28.3.tgz", + "integrity": "sha512-yDBHV9kQNcr2/sUr9jghVyz9C3Y5G2zUM2H2lo+9mKv4sFgbA8s8Z9t8D1jiTkGoO/NoIfKMyKWr4s6CN23ZwQ==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-compilation-targets": "^7.27.2", + "@babel/helper-module-transforms": "^7.28.3", + "@babel/helpers": "^7.28.3", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/traverse": "^7.28.3", + "@babel/types": "^7.28.2", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + } + }, + "@babel/generator": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/generator/-/generator-7.28.3.tgz", + "integrity": "sha512-3lSpxGgvnmZznmBkCRnVREPUFJv2wrv9iAoFDvADJc0ypmdOxdUtcLeBgBJ6zE0PMeTKnxeQzyk0xTBq4Ep7zw==", + "dev": true, + "requires": { + "@babel/parser": "^7.28.3", + "@babel/types": "^7.28.2", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz", + "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.27.2", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + } + }, + "@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true + }, + "@babel/helper-module-imports": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz", + "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==", + "dev": true, + "requires": { + "@babel/traverse": "^7.27.1", + "@babel/types": "^7.27.1" + } + }, + "@babel/helper-module-transforms": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz", + "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1", + "@babel/traverse": "^7.28.3" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz", + "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==", + "dev": true + }, + "@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true + }, + "@babel/helpers": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/helpers/-/helpers-7.28.3.tgz", + "integrity": "sha512-PTNtvUQihsAsDHMOP5pfobP8C6CM4JWXmP8DrEIt46c3r2bf87Ua1zoqevsMo9g+tWDwgWrFP5EIxuBx5RudAw==", + "dev": true, + "requires": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2" + } + }, + "@babel/parser": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/parser/-/parser-7.28.3.tgz", + "integrity": "sha512-7+Ey1mAgYqFAx2h0RuoxcQT5+MlG3GTV0TQrgr7/ZliKsm/MNDxVVutlWaziMq7wJNAz8MTqz55XLpWvva6StA==", + "dev": true, + "requires": { + "@babel/types": "^7.28.2" + } + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.27.1.tgz", + "integrity": "sha512-oFT0FrKHgF53f4vOsZGi2Hh3I35PfSmVs4IBFLFj4dnafP+hIWDLg3VyKmUHfLoLHlyxY4C7DGtmHuJgn+IGww==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.27.1.tgz", + "integrity": "sha512-y8YTNIeKoyhGd9O0Jiyzyyqk8gdjnumGTQPsz0xOZOQ2RmkVJeZ1vmmfIvFEKqucBG6axJGBZDE/7iI5suUI/w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.27.1", + "resolved": "https://bnpm.byted.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.27.1.tgz", + "integrity": "sha512-xfYCBMxveHrRMnAWl1ZlPXOZjzkN82THFvLhQhFXFt81Z5HnN+EtUkZhv/zcKpmT3fzmWZB0ywiBrbC3vogbwQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.27.1" + } + }, + "@babel/template": { + "version": "7.27.2", + "resolved": "https://bnpm.byted.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + } + }, + "@babel/traverse": { + "version": "7.28.3", + "resolved": "https://bnpm.byted.org/@babel/traverse/-/traverse-7.28.3.tgz", + "integrity": "sha512-7w4kZYHneL3A6NP2nxzHvT3HCZ7puDZZjFMqDpBPECub79sTtSO5CGXDkKrTQq8ksAwfD/XI2MRFX23njdDaIQ==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.27.1", + "@babel/generator": "^7.28.3", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.28.3", + "@babel/template": "^7.27.2", + "@babel/types": "^7.28.2", + "debug": "^4.3.1" + } + }, + "@babel/types": { + "version": "7.28.2", + "resolved": "https://bnpm.byted.org/@babel/types/-/types-7.28.2.tgz", + "integrity": "sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://bnpm.byted.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://bnpm.byted.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" + } + }, + "@jest/core": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + } + }, + "@jest/environment": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "requires": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + } + }, + "@jest/expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "requires": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + } + }, + "@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "requires": { + "jest-get-type": "^29.6.3" + } + }, + "@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "@jest/globals": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" + } + }, + "@jest/reporters": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + } + }, + "@jest/schemas": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "requires": { + "@sinclair/typebox": "^0.27.8" + } + }, + "@jest/source-map": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + } + }, + "@jest/test-result": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "requires": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + } + }, + "@jest/transform": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + } + }, + "@jest/types": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://bnpm.byted.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://bnpm.byted.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.30", + "resolved": "https://bnpm.byted.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.30.tgz", + "integrity": "sha512-GQ7Nw5G2lTu/BtHTKfXhKHok2WGetd4XYcVKGx00SjAk8GMwgJM3zr6zORiPGuOE+/vkc90KtTosSSvaCjKb2Q==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "@nodelib/fs.scandir": { + "version": "2.1.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", + "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==", + "requires": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + } + }, + "@nodelib/fs.stat": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz", + "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==" + }, + "@nodelib/fs.walk": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz", + "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==", + "requires": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + } + }, + "@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://bnpm.byted.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://bnpm.byted.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^3.0.0" + } + }, + "@ts-morph/common": { + "version": "0.24.0", + "resolved": "https://bnpm.byted.org/@ts-morph/common/-/common-0.24.0.tgz", + "integrity": "sha512-c1xMmNHWpNselmpIqursHeOHHBTIsJLbB+NuovbTTRCNiTLEr/U9dbJ8qy0jd/O2x5pc3seWuOUN5R2IoOTp8A==", + "requires": { + "fast-glob": "^3.3.2", + "minimatch": "^9.0.4", + "mkdirp": "^3.0.1", + "path-browserify": "^1.0.1" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "9.0.5", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "requires": { + "brace-expansion": "^2.0.1" + } + } + } + }, + "@types/babel__core": { + "version": "7.20.5", + "resolved": "https://bnpm.byted.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.27.0", + "resolved": "https://bnpm.byted.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } + }, + "@types/babel__template": { + "version": "7.4.4", + "resolved": "https://bnpm.byted.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "@types/babel__traverse": { + "version": "7.28.0", + "resolved": "https://bnpm.byted.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", + "dev": true, + "requires": { + "@babel/types": "^7.28.2" + } + }, + "@types/graceful-fs": { + "version": "4.1.9", + "resolved": "https://bnpm.byted.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", + "dev": true, + "requires": { + "@types/node": "*" + } + }, + "@types/istanbul-lib-coverage": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } + }, + "@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://bnpm.byted.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } + }, + "@types/jest": { + "version": "29.5.14", + "resolved": "https://bnpm.byted.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "requires": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } + }, + "@types/node": { + "version": "20.19.11", + "resolved": "https://bnpm.byted.org/@types/node/-/node-20.19.11.tgz", + "integrity": "sha512-uug3FEEGv0r+jrecvUUpbY8lLisvIjg6AAic6a2bSP5OEOLeJsDSnvhCDov7ipFFMXS3orMpzlmi0ZcuGkBbow==", + "dev": true, + "requires": { + "undici-types": "~6.21.0" + } + }, + "@types/stack-utils": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true + }, + "@types/yargs": { + "version": "17.0.33", + "resolved": "https://bnpm.byted.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, + "@types/yargs-parser": { + "version": "21.0.3", + "resolved": "https://bnpm.byted.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", + "dev": true + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://bnpm.byted.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + }, + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://bnpm.byted.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://bnpm.byted.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "babel-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", + "dev": true, + "requires": { + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://bnpm.byted.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + } + } + }, + "babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-preset-current-node-syntax": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" + } + }, + "babel-preset-jest": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + }, + "brace-expansion": { + "version": "1.1.12", + "resolved": "https://bnpm.byted.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "requires": { + "fill-range": "^7.1.1" + } + }, + "browserslist": { + "version": "4.25.3", + "resolved": "https://bnpm.byted.org/browserslist/-/browserslist-4.25.3.tgz", + "integrity": "sha512-cDGv1kkDI4/0e5yON9yM5G/0A5u8sf5TnmdX5C9qHzI9PPu++sQ9zjm1k9NiOrf3riY4OkK0zSGqfvJyJsgCBQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001735", + "electron-to-chromium": "^1.5.204", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.3" + } + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://bnpm.byted.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001737", + "resolved": "https://bnpm.byted.org/caniuse-lite/-/caniuse-lite-1.0.30001737.tgz", + "integrity": "sha512-BiloLiXtQNrY5UyF0+1nSJLXUENuhka2pzy2Fx5pGxqavdrxSCW4U6Pn/PoG3Efspi2frRbHpBV2XsrPE6EDlw==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "3.9.0", + "resolved": "https://bnpm.byted.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true + }, + "cjs-module-lexer": { + "version": "1.4.3", + "resolved": "https://bnpm.byted.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://bnpm.byted.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://bnpm.byted.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true + }, + "code-block-writer": { + "version": "13.0.3", + "resolved": "https://bnpm.byted.org/code-block-writer/-/code-block-writer-13.0.3.tgz", + "integrity": "sha512-Oofo0pq3IKnsFtuHqSF7TqBfr71aeyZDVJ0HpmqB7FBM2qEigL0iPONSCZSO9pE9dZTAxANe5XHG9Uy0YMv8cg==" + }, + "collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://bnpm.byted.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "concat-map": { + "version": "0.0.1", + "resolved": "https://bnpm.byted.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "dev": true + }, + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "create-jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + } + }, + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://bnpm.byted.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } + }, + "debug": { + "version": "4.4.1", + "resolved": "https://bnpm.byted.org/debug/-/debug-4.4.1.tgz", + "integrity": "sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==", + "dev": true, + "requires": { + "ms": "^2.1.3" + } + }, + "dedent": { + "version": "1.6.0", + "resolved": "https://bnpm.byted.org/dedent/-/dedent-1.6.0.tgz", + "integrity": "sha512-F1Z+5UCFpmQUzJa11agbyPVMbpgT/qA3/SKyJ1jyBgm7dUcUEa8v9JwDkerSQXfakBwFljIxhOJqGkjUwZ9FSA==", + "dev": true, + "requires": {} + }, + "deepmerge": { + "version": "4.3.1", + "resolved": "https://bnpm.byted.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", + "dev": true + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "diff-sequences": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", + "dev": true + }, + "electron-to-chromium": { + "version": "1.5.208", + "resolved": "https://bnpm.byted.org/electron-to-chromium/-/electron-to-chromium-1.5.208.tgz", + "integrity": "sha512-ozZyibehoe7tOhNaf16lKmljVf+3npZcJIEbJRVftVsmAg5TeA1mGS9dVCZzOwr2xT7xK15V0p7+GZqSPgkuPg==", + "dev": true + }, + "emittery": { + "version": "0.13.1", + "resolved": "https://bnpm.byted.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true + }, + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://bnpm.byted.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://bnpm.byted.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, + "escalade": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true + }, + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + }, + "esprima": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } + }, + "exit": { + "version": "0.1.2", + "resolved": "https://bnpm.byted.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, + "expect": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", + "dev": true, + "requires": { + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "fast-glob": { + "version": "3.3.3", + "resolved": "https://bnpm.byted.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", + "requires": { + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" + } + }, + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fastq": { + "version": "1.19.1", + "resolved": "https://bnpm.byted.org/fastq/-/fastq-1.19.1.tgz", + "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==", + "requires": { + "reusify": "^1.0.4" + } + }, + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "requires": { + "bser": "2.1.1" + } + }, + "fill-range": { + "version": "7.1.1", + "resolved": "https://bnpm.byted.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "requires": { + "to-regex-range": "^5.0.1" + } + }, + "find-up": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } + }, + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "dev": true + }, + "fsevents": { + "version": "2.3.3", + "resolved": "https://bnpm.byted.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://bnpm.byted.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "dev": true + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://bnpm.byted.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://bnpm.byted.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-package-type": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-stream": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true + }, + "glob": { + "version": "7.2.3", + "resolved": "https://bnpm.byted.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/glob-parent/-/glob-parent-5.1.2.tgz", + "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", + "requires": { + "is-glob": "^4.0.1" + } + }, + "graceful-fs": { + "version": "4.2.11", + "resolved": "https://bnpm.byted.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true + }, + "handlebars": { + "version": "4.7.8", + "resolved": "https://bnpm.byted.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "requires": { + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "hasown": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "requires": { + "function-bind": "^1.1.2" + } + }, + "html-escaper": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "human-signals": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "import-local": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://bnpm.byted.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://bnpm.byted.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "resolved": "https://bnpm.byted.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://bnpm.byted.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-core-module": { + "version": "2.16.1", + "resolved": "https://bnpm.byted.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "requires": { + "hasown": "^2.0.2" + } + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==" + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-glob": { + "version": "4.0.3", + "resolved": "https://bnpm.byted.org/is-glob/-/is-glob-4.0.3.tgz", + "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" + }, + "is-stream": { + "version": "2.0.1", + "resolved": "https://bnpm.byted.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.2.2", + "resolved": "https://bnpm.byted.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "6.0.3", + "resolved": "https://bnpm.byted.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", + "dev": true, + "requires": { + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "istanbul-lib-report": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^4.0.0", + "supports-color": "^7.1.0" + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "3.2.0", + "resolved": "https://bnpm.byted.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jest": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", + "dev": true, + "requires": { + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", + "import-local": "^3.0.2", + "jest-cli": "^29.7.0" + } + }, + "jest-changed-files": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", + "dev": true, + "requires": { + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" + } + }, + "jest-circus": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-cli": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", + "dev": true, + "requires": { + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" + } + }, + "jest-config": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + } + }, + "jest-diff": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-docblock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" + } + }, + "jest-environment-node": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "jest-get-type": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", + "dev": true + }, + "jest-haste-map": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } + }, + "jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", + "dev": true, + "requires": { + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" + } + }, + "jest-message-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + } + }, + "jest-mock": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + } + }, + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "requires": {} + }, + "jest-regex-util": { + "version": "29.6.3", + "resolved": "https://bnpm.byted.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", + "dev": true + }, + "jest-resolve": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + } + }, + "jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", + "dev": true, + "requires": { + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" + } + }, + "jest-runner": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", + "dev": true, + "requires": { + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + } + }, + "jest-runtime": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + } + }, + "jest-snapshot": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "jest-util": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + } + }, + "jest-validate": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" + }, + "dependencies": { + "camelcase": { + "version": "6.3.0", + "resolved": "https://bnpm.byted.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + } + } + }, + "jest-watcher": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", + "dev": true, + "requires": { + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" + } + }, + "jest-worker": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", + "dev": true, + "requires": { + "@types/node": "*", + "jest-util": "^29.7.0", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "supports-color": { + "version": "8.1.1", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "js-tokens": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.1", + "resolved": "https://bnpm.byted.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } + }, + "jsesc": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://bnpm.byted.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "kleur": { + "version": "3.0.3", + "resolved": "https://bnpm.byted.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://bnpm.byted.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "locate-path": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://bnpm.byted.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, + "lru-cache": { + "version": "5.1.1", + "resolved": "https://bnpm.byted.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } + }, + "make-dir": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "requires": { + "semver": "^7.5.3" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + } + } + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://bnpm.byted.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://bnpm.byted.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "merge2": { + "version": "1.4.1", + "resolved": "https://bnpm.byted.org/merge2/-/merge2-1.4.1.tgz", + "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" + }, + "micromatch": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "requires": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + } + }, + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://bnpm.byted.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true + }, + "minimatch": { + "version": "3.1.2", + "resolved": "https://bnpm.byted.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://bnpm.byted.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "mkdirp": { + "version": "3.0.1", + "resolved": "https://bnpm.byted.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==" + }, + "ms": { + "version": "2.1.3", + "resolved": "https://bnpm.byted.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "neo-async": { + "version": "2.6.2", + "resolved": "https://bnpm.byted.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://bnpm.byted.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node-releases": { + "version": "2.0.19", + "resolved": "https://bnpm.byted.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "dev": true + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://bnpm.byted.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://bnpm.byted.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://bnpm.byted.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://bnpm.byted.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + }, + "dependencies": { + "p-limit": { + "version": "2.3.0", + "resolved": "https://bnpm.byted.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + } + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://bnpm.byted.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "path-browserify": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-browserify/-/path-browserify-1.0.1.tgz", + "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==" + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://bnpm.byted.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://bnpm.byted.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://bnpm.byted.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://bnpm.byted.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==" + }, + "pirates": { + "version": "4.0.7", + "resolved": "https://bnpm.byted.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://bnpm.byted.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "pretty-format": { + "version": "29.7.0", + "resolved": "https://bnpm.byted.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://bnpm.byted.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://bnpm.byted.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "pure-rand": { + "version": "6.1.0", + "resolved": "https://bnpm.byted.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true + }, + "queue-microtask": { + "version": "1.2.3", + "resolved": "https://bnpm.byted.org/queue-microtask/-/queue-microtask-1.2.3.tgz", + "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==" + }, + "react-is": { + "version": "18.3.1", + "resolved": "https://bnpm.byted.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://bnpm.byted.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "resolve": { + "version": "1.22.10", + "resolved": "https://bnpm.byted.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", + "dev": true, + "requires": { + "is-core-module": "^2.16.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } + }, + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } + }, + "resolve-from": { + "version": "5.0.0", + "resolved": "https://bnpm.byted.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "resolve.exports": { + "version": "2.0.3", + "resolved": "https://bnpm.byted.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true + }, + "reusify": { + "version": "1.1.0", + "resolved": "https://bnpm.byted.org/reusify/-/reusify-1.1.0.tgz", + "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==" + }, + "run-parallel": { + "version": "1.2.0", + "resolved": "https://bnpm.byted.org/run-parallel/-/run-parallel-1.2.0.tgz", + "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", + "requires": { + "queue-microtask": "^1.2.2" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://bnpm.byted.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://bnpm.byted.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://bnpm.byted.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://bnpm.byted.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + }, + "source-map-support": { + "version": "0.5.13", + "resolved": "https://bnpm.byted.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://bnpm.byted.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "stack-utils": { + "version": "2.0.6", + "resolved": "https://bnpm.byted.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + } + }, + "string-length": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } + }, + "string-width": { + "version": "4.2.3", + "resolved": "https://bnpm.byted.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://bnpm.byted.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-bom": { + "version": "4.0.0", + "resolved": "https://bnpm.byted.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true + }, + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://bnpm.byted.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://bnpm.byted.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://bnpm.byted.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } + }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://bnpm.byted.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://bnpm.byted.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "requires": { + "is-number": "^7.0.0" + } + }, + "ts-jest": { + "version": "29.4.1", + "resolved": "https://bnpm.byted.org/ts-jest/-/ts-jest-29.4.1.tgz", + "integrity": "sha512-SaeUtjfpg9Uqu8IbeDKtdaS0g8lS6FT6OzM3ezrDfErPJPHNDo/Ey+VFGP1bQIDfagYDLyRpd7O15XpG1Es2Uw==", + "dev": true, + "requires": { + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.2", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" + }, + "dependencies": { + "semver": { + "version": "7.7.2", + "resolved": "https://bnpm.byted.org/semver/-/semver-7.7.2.tgz", + "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==", + "dev": true + }, + "type-fest": { + "version": "4.41.0", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true + } + } + }, + "ts-morph": { + "version": "23.0.0", + "resolved": "https://bnpm.byted.org/ts-morph/-/ts-morph-23.0.0.tgz", + "integrity": "sha512-FcvFx7a9E8TUe6T3ShihXJLiJOiqyafzFKUO4aqIHDUCIvADdGNShcbc2W5PMr3LerXRv7mafvFZ9lRENxJmug==", + "requires": { + "@ts-morph/common": "~0.24.0", + "code-block-writer": "^13.0.1" + } + }, + "type-detect": { + "version": "4.0.8", + "resolved": "https://bnpm.byted.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://bnpm.byted.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + }, + "typescript": { + "version": "5.9.2", + "resolved": "https://bnpm.byted.org/typescript/-/typescript-5.9.2.tgz", + "integrity": "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==", + "dev": true + }, + "uglify-js": { + "version": "3.19.3", + "resolved": "https://bnpm.byted.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true + }, + "undici-types": { + "version": "6.21.0", + "resolved": "https://bnpm.byted.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.1.3", + "resolved": "https://bnpm.byted.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", + "dev": true, + "requires": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + } + }, + "v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://bnpm.byted.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" + } + }, + "walker": { + "version": "1.0.8", + "resolved": "https://bnpm.byted.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } + }, + "which": { + "version": "2.0.2", + "resolved": "https://bnpm.byted.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "wordwrap": { + "version": "1.0.0", + "resolved": "https://bnpm.byted.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", + "dev": true + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://bnpm.byted.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://bnpm.byted.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "dev": true + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://bnpm.byted.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://bnpm.byted.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true + }, + "yallist": { + "version": "3.1.1", + "resolved": "https://bnpm.byted.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://bnpm.byted.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } + }, + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://bnpm.byted.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://bnpm.byted.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true + } + } +} diff --git a/ts-parser/src/utils/test/package.json b/ts-parser/src/utils/test/package.json new file mode 100644 index 0000000..0b370da --- /dev/null +++ b/ts-parser/src/utils/test/package.json @@ -0,0 +1,49 @@ +{ + "name": "ts-parser-utils-test", + "version": "1.0.0", + "description": "Test suite for TypeScript parser utilities", + "main": "index.js", + "scripts": { + "test": "jest", + "test:watch": "jest --watch", + "test:coverage": "jest --coverage", + "test:verbose": "jest --verbose" + }, + "keywords": ["typescript", "parser", "testing"], + "author": "", + "license": "MIT", + "devDependencies": { + "@jest/globals": "^29.7.0", + "@types/jest": "^29.5.5", + "@types/node": "^20.6.0", + "jest": "^29.7.0", + "ts-jest": "^29.1.1", + "typescript": "^5.2.2" + }, + "dependencies": { + "ts-morph": "^23.0.0" + }, + "jest": { + "preset": "ts-jest", + "testEnvironment": "node", + "roots": [""], + "testMatch": ["**/*.test.ts"], + "collectCoverageFrom": [ + "**/*.ts", + "!**/*.d.ts", + "!**/node_modules/**", + "!**/dist/**", + "!**/temp/**" + ], + "coverageDirectory": "coverage", + "coverageReporters": ["text", "lcov", "html"], + "setupFilesAfterEnv": ["/setup.ts"], + "moduleFileExtensions": ["ts", "js", "json"], + "testPathIgnorePatterns": ["/node_modules/", "/dist/", "/temp/"], + "transform": { + "^.+\\.ts$": "ts-jest" + }, + "maxWorkers": 1, + "maxConcurrency": 1 + } +} \ No newline at end of file diff --git a/ts-parser/src/utils/test/setup.ts b/ts-parser/src/utils/test/setup.ts new file mode 100644 index 0000000..ab4c1c3 --- /dev/null +++ b/ts-parser/src/utils/test/setup.ts @@ -0,0 +1,24 @@ +import * as fs from 'fs'; +import * as path from 'path'; +import { afterEach, beforeEach, beforeAll, jest } from '@jest/globals'; + +// Global test setup +beforeAll(() => { + // Clean up any existing temp directories + const tempBaseDir = path.join(__dirname, 'temp'); + if (fs.existsSync(tempBaseDir)) { + fs.rmSync(tempBaseDir, { recursive: true, force: true }); + } +}); + +beforeEach(() => { + jest.spyOn(console, 'warn').mockImplementation(() => {}); + jest.spyOn(console, 'error').mockImplementation(() => {}); +}); + +afterEach(() => { + jest.restoreAllMocks(); +}); + +// Increase timeout for complex parsing operations +jest.setTimeout(30000); \ No newline at end of file diff --git a/ts-parser/src/utils/test/symbol-resolver.test.ts b/ts-parser/src/utils/test/symbol-resolver.test.ts new file mode 100644 index 0000000..7ec839e --- /dev/null +++ b/ts-parser/src/utils/test/symbol-resolver.test.ts @@ -0,0 +1,499 @@ +import { describe, it, expect, beforeEach, afterEach, jest } from '@jest/globals'; +import { Project, SyntaxKind } from 'ts-morph'; +import * as path from 'path'; +import * as fs from 'fs'; +import { SymbolResolver, assignSymbolName } from '../symbol-resolver'; +import { createTestProject } from './test-utils'; + +describe('SymbolResolver', () => { + let symbolResolver: SymbolResolver; + let project: Project; + + beforeEach(() => { + project = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + symbolResolver = new SymbolResolver(project, process.cwd()); + }); + + afterEach(() => { + jest.clearAllMocks(); + }); + + describe('resolveSymbol', () => { + it('should resolve simple variable declarations', () => { + const { sourceFile, cleanup } = createTestProject(` + const myVariable = 42; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('myVariable'); + expect(variableDeclaration).toBeDefined(); + + const symbol = variableDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('myVariable'); + expect(resolvedSymbol?.isExternal).toBe(false); + } finally { + cleanup(); + } + }); + + it('should resolve function declarations', () => { + const { sourceFile, cleanup } = createTestProject(` + function myFunction(param: string): number { + return 42; + } + `); + + try { + const functionDeclaration = sourceFile.getFunction('myFunction'); + expect(functionDeclaration).toBeDefined(); + + const symbol = functionDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('myFunction'); + } finally { + cleanup(); + } + }); + + it('should resolve class declarations', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + class MyClass { + myMethod(): void {} + } + `); + + try { + const classDeclaration = sourceFile.getClass('MyClass'); + expect(classDeclaration).toBeDefined(); + + const symbol = classDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyClass'); + } finally { + cleanup(); + } + }); + + it('should resolve interface declarations', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + interface MyInterface { + prop: string; + } + `); + + try { + const interfaceDeclaration = sourceFile.getInterface('MyInterface'); + expect(interfaceDeclaration).toBeDefined(); + + const symbol = interfaceDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyInterface'); + } finally { + cleanup(); + } + }); + + it('should resolve type alias declarations', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + type MyType = string | number; + `); + + try { + const typeAlias = sourceFile.getTypeAlias('MyType'); + expect(typeAlias).toBeDefined(); + + const symbol = typeAlias?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyType'); + } finally { + cleanup(); + } + }); + + it('should resolve enum declarations', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + enum MyEnum { + A, + B + } + `); + + try { + const enumDeclaration = sourceFile.getEnum('MyEnum'); + expect(enumDeclaration).toBeDefined(); + + const symbol = enumDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyEnum'); + } finally { + cleanup(); + } + }); + + it('should resolve class methods with proper naming', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + class MyClass { + myMethod(): void {} + } + `); + + try { + const classDeclaration = sourceFile.getClass('MyClass'); + const method = classDeclaration?.getMethod('myMethod'); + expect(method).toBeDefined(); + + const symbol = method?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyClass.myMethod'); + } finally { + cleanup(); + } + }); + + it('should resolve enum members with proper naming', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + enum MyEnum { + VALUE_A, + VALUE_B + } + `); + + try { + const enumDeclaration = sourceFile.getEnum('MyEnum'); + const member = enumDeclaration?.getMember('VALUE_A'); + expect(member).toBeDefined(); + + const symbol = member?.getSymbol(); + expect(symbol).toBeDefined(); + + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('MyEnum.VALUE_A'); + } finally { + cleanup(); + } + }); + + it('should handle imports correctly', () => { + const tempDir = path.join(__dirname, 'temp', 'import-test'); + fs.mkdirSync(tempDir, { recursive: true }); + + const moduleContent = ` + export const exportedValue = 42; + `; + const mainContent = ` + import { exportedValue } from './module'; + const localValue = exportedValue; + `; + + fs.writeFileSync(path.join(tempDir, 'module.ts'), moduleContent); + fs.writeFileSync(path.join(tempDir, 'main.ts'), mainContent); + + try { + const testProject = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + + testProject.addSourceFilesAtPaths(path.join(tempDir, '*.ts')); + const sourceFile = testProject.getSourceFile('main.ts'); + expect(sourceFile).toBeDefined(); + + const variableDeclaration = sourceFile?.getVariableDeclaration('localValue'); + expect(variableDeclaration).toBeDefined(); + + const identifiers = sourceFile?.getDescendantsOfKind(SyntaxKind.Identifier); + const importedIdentifier = identifiers?.find(id => id.getText() === 'exportedValue'); + expect(importedIdentifier).toBeDefined(); + + const symbol = importedIdentifier?.getSymbol(); + if (symbol) { + const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('exportedValue'); + } + } finally { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + } + }); + + it('should handle default exports', () => { + const tempDir = path.join(__dirname, 'temp', 'default-export-test'); + fs.mkdirSync(tempDir, { recursive: true }); + + const moduleContent = ` + const defaultExport = { value: 42 }; + export default defaultExport; + `; + const mainContent = ` + import myDefault from './module'; + const localValue = myDefault.value; + `; + + fs.writeFileSync(path.join(tempDir, 'module.ts'), moduleContent); + fs.writeFileSync(path.join(tempDir, 'main.ts'), mainContent); + + try { + const testProject = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + + testProject.addSourceFilesAtPaths(path.join(tempDir, '*.ts')); + const sourceFile = testProject.getSourceFile('main.ts'); + expect(sourceFile).toBeDefined(); + + const identifiers = sourceFile?.getDescendantsOfKind(SyntaxKind.Identifier); + const importedIdentifier = identifiers?.find(id => id.getText() === 'myDefault'); + expect(importedIdentifier).toBeDefined(); + + const symbol = importedIdentifier?.getSymbol(); + if (symbol) { + const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('defaultExport'); + } + } finally { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + } + }); + + it('should handle circular imports gracefully', () => { + const tempDir = path.join(__dirname, 'temp', 'circular-test'); + fs.mkdirSync(tempDir, { recursive: true }); + + const moduleAContent = ` + import { b } from './moduleB'; + export const a = 42; + `; + const moduleBContent = ` + import { a } from './moduleA'; + export const b = a + 1; + `; + + fs.writeFileSync(path.join(tempDir, 'moduleA.ts'), moduleAContent); + fs.writeFileSync(path.join(tempDir, 'moduleB.ts'), moduleBContent); + + try { + const testProject = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + + testProject.addSourceFilesAtPaths(path.join(tempDir, '*.ts')); + const sourceFile = testProject.getSourceFile('moduleB.ts'); + expect(sourceFile).toBeDefined(); + + const identifiers = sourceFile?.getDescendantsOfKind(SyntaxKind.Identifier); + const importedIdentifier = identifiers?.find(id => id.getText() === 'a'); + expect(importedIdentifier).toBeDefined(); + + const symbol = importedIdentifier?.getSymbol(); + if (symbol) { + const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('a'); + } + } finally { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + } + }); + }); + + describe('extractModuleInfo', () => { + it('should extract module info for internal files', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + const test = 42; + `); + + try { + const filePath = sourceFile.getFilePath(); + const moduleInfo = (symbolResolver as any).extractModuleInfo(filePath, false); + expect(moduleInfo).toBeDefined(); + expect(typeof moduleInfo.name).toBe('string'); + } finally { + cleanup(); + } + }); + }); + + describe('extractPackageInfo', () => { + it('should extract package info for internal files', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + const test = 42; + `); + + try { + const filePath = sourceFile.getFilePath(); + const packageInfo = (symbolResolver as any).extractPackageInfo(filePath, false); + expect(packageInfo).toBeDefined(); + expect(typeof packageInfo.path).toBe('string'); + } finally { + cleanup(); + } + }); + }); + + describe('clearCache', () => { + it('should clear the resolution cache', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + const test = 42; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('test'); + const symbol = variableDeclaration?.getSymbol(); + + if (symbol) { + // First resolution + const resolved1 = symbolResolver.resolveSymbol(symbol); + expect(resolved1).toBeDefined(); + + // Clear cache + symbolResolver.clearCache(); + + // Second resolution should work the same + const resolved2 = symbolResolver.resolveSymbol(symbol); + expect(resolved2).toBeDefined(); + expect(resolved2?.name).toBe(resolved1?.name); + } + } finally { + cleanup(); + } + }); + }); + + describe('assignSymbolName', () => { + it('should handle simple variable names', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + const simpleVar = 42; + `); + + try { + const variableDeclaration = sourceFile.getVariableDeclaration('simpleVar'); + const symbol = variableDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + if (symbol) { + const name = assignSymbolName(symbol); + expect(name).toBe('simpleVar'); + } + } finally { + cleanup(); + } + }); + + it('should handle class methods with parent prefix', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + class MyClass { + myMethod(): void {} + } + `); + + try { + const classDeclaration = sourceFile.getClass('MyClass'); + const method = classDeclaration?.getMethod('myMethod'); + const symbol = method?.getSymbol(); + expect(symbol).toBeDefined(); + + if (symbol) { + const name = assignSymbolName(symbol); + expect(name).toBe('MyClass.myMethod'); + } + } finally { + cleanup(); + } + }); + + it('should handle enum members with enum prefix', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + enum MyEnum { + VALUE_A, + VALUE_B + } + `); + + try { + const enumDeclaration = sourceFile.getEnum('MyEnum'); + const member = enumDeclaration?.getMember('VALUE_A'); + const symbol = member?.getSymbol(); + expect(symbol).toBeDefined(); + + if (symbol) { + const name = assignSymbolName(symbol); + expect(name).toBe('MyEnum.VALUE_A'); + } + } finally { + cleanup(); + } + }); + + it('should handle default export functions', () => { + const { project: testProject, sourceFile, cleanup } = createTestProject(` + export default function myDefaultFunction() { + return 42; + } + `); + + try { + const functionDeclaration = sourceFile.getFunction('myDefaultFunction'); + const symbol = functionDeclaration?.getSymbol(); + expect(symbol).toBeDefined(); + + if (symbol) { + const name = assignSymbolName(symbol); + expect(name).toBe('myDefaultFunction'); + } + } finally { + cleanup(); + } + }); + }); +}); \ No newline at end of file diff --git a/ts-parser/src/utils/test/test-utils.ts b/ts-parser/src/utils/test/test-utils.ts new file mode 100644 index 0000000..8ea0626 --- /dev/null +++ b/ts-parser/src/utils/test/test-utils.ts @@ -0,0 +1,80 @@ +import { Project, SourceFile } from 'ts-morph'; +import * as path from 'path'; +import * as fs from 'fs'; + +export interface TestProject { + project: Project; + sourceFile: SourceFile; + cleanup: () => void; +} + +export function createTestProject(code: string, fileName: string = 'test.ts'): TestProject { + const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(2, 15); + const tempDir = path.join(__dirname, 'temp', uniqueId); + + fs.mkdirSync(tempDir, { recursive: true }); + + const filePath = path.join(tempDir, fileName); + fs.writeFileSync(filePath, code); + + const project = new Project({ + compilerOptions: { + target: 99, + module: 1, + allowJs: true, + skipLibCheck: true + } + }); + + const sourceFile = project.addSourceFileAtPath(filePath); + + const cleanup = () => { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + }; + + return { project, sourceFile, cleanup }; +} + +export function createTestProjectWithTsConfig(code: string, tsConfig: any, fileName: string = 'test.ts'): TestProject { + const uniqueId = Date.now() + '_' + Math.random().toString(36).substring(2, 15); + const tempDir = path.join(__dirname, 'temp', uniqueId); + + fs.mkdirSync(tempDir, { recursive: true }); + + const tsConfigPath = path.join(tempDir, 'tsconfig.json'); + fs.writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2)); + + const filePath = path.join(tempDir, fileName); + fs.writeFileSync(filePath, code); + + const project = new Project({ + tsConfigFilePath: tsConfigPath + }); + + const sourceFile = project.addSourceFileAtPath(filePath); + + const cleanup = () => { + if (fs.existsSync(tempDir)) { + fs.rmSync(tempDir, { recursive: true, force: true }); + } + }; + + return { project, sourceFile, cleanup }; +} + +export function expectToBeDefined(value: T | undefined | null): T { + if (value === undefined || value === null) { + throw new Error('Expected value to be defined'); + } + return value; +} + +export function expectArrayToContain(array: T[], predicate: (item: T) => boolean): T { + const found = array.find(predicate); + if (!found) { + throw new Error('Expected array to contain matching item'); + } + return found; +} \ No newline at end of file diff --git a/ts-parser/src/utils/test/tsconfig.json b/ts-parser/src/utils/test/tsconfig.json new file mode 100644 index 0000000..fc33ab4 --- /dev/null +++ b/ts-parser/src/utils/test/tsconfig.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "lib": ["ES2020"], + "outDir": "./dist", + "rootDir": ".", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "resolveJsonModule": true, + "allowSyntheticDefaultImports": true, + "experimentalDecorators": true, + "emitDecoratorMetadata": true, + "types": ["jest", "node"] + }, + "include": [ + "**/*.ts" + ], + "exclude": [ + "node_modules", + "dist", + "temp", + "**/*.test.ts" + ] +} \ No newline at end of file diff --git a/ts-parser/test-repo/src/utils/Validation.ts b/ts-parser/test-repo/src/utils/Validation.ts index 6d723a6..c785d19 100644 --- a/ts-parser/test-repo/src/utils/Validation.ts +++ b/ts-parser/test-repo/src/utils/Validation.ts @@ -1,5 +1,9 @@ import { Request, Response, NextFunction } from 'express'; +const ABCED = 123321 + +const [aaaaa, bbbbb] = (() => { const a = 123; const b = 345; return [a * b * ABCED * Math.random(), a * b * ABCED * Math.random()] })() + export interface ValidationError { field: string; message: string; From e847221a493d269616b08e8b9aadfab7d8b3178f Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 02:56:03 +0800 Subject: [PATCH 06/17] fix default export problem --- .../src/parser/test/FunctionParser.test.ts | 32 +++++++++++++++++++ ts-parser/src/parser/test/VarParser.test.ts | 15 +++++++++ 2 files changed, 47 insertions(+) diff --git a/ts-parser/src/parser/test/FunctionParser.test.ts b/ts-parser/src/parser/test/FunctionParser.test.ts index 19a7ff3..38f0399 100644 --- a/ts-parser/src/parser/test/FunctionParser.test.ts +++ b/ts-parser/src/parser/test/FunctionParser.test.ts @@ -4,6 +4,38 @@ import { createTestProject, expectToBeDefined } from './test-utils'; describe('FunctionParser', () => { describe('parseFunctions', () => { it('should parse function declarations', () => { + const { project, sourceFile, cleanup } = createTestProject(` + function simpleFunction() { + return 'hello'; + } + + export function exportedFunction(param: string): number { + return param.length; + } + + function defaultFunction() { + return 'default'; + } + + export default defaultFunction + `); + + const parser = new FunctionParser(project, process.cwd()); + const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + + + expect(functions['simpleFunction']).toBeDefined(); + expect(functions['exportedFunction']).toBeDefined(); + expect(functions['defaultFunction']).toBeDefined(); + + expect(functions['simpleFunction']?.Exported).toBe(false); + expect(functions['exportedFunction']?.Exported).toBe(true); + expect(functions['defaultFunction']?.Exported).toBe(true); + + cleanup(); + }); + + it('should parse function declarations 2', () => { const { project, sourceFile, cleanup } = createTestProject(` function simpleFunction() { return 'hello'; diff --git a/ts-parser/src/parser/test/VarParser.test.ts b/ts-parser/src/parser/test/VarParser.test.ts index e11259e..e8804c9 100644 --- a/ts-parser/src/parser/test/VarParser.test.ts +++ b/ts-parser/src/parser/test/VarParser.test.ts @@ -31,6 +31,21 @@ describe('VarParser', () => { cleanup(); }); + it('should parse export default at different point', () => { + const { project, sourceFile, cleanup } = createTestProject(` + const defaultExport = 'default'; + export default defaultExport + `); + + const parser = new VarParser(project, process.cwd()); + const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + + expect(vars['defaultExport']).toBeDefined(); + expect(vars['defaultExport'].IsExported).toBe(true); + + cleanup(); + }); + it('should parse enum members', () => { const { project, sourceFile, cleanup } = createTestProject(` enum Color { From d9b7374a4b847a8d79b70690ebc2fed6d762ac5a Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 02:57:03 +0800 Subject: [PATCH 07/17] fix default export --- ts-parser/src/parser/FunctionParser.ts | 16 +++++++++++----- ts-parser/src/parser/TypeParser.ts | 13 ++++++++----- ts-parser/src/parser/VarParser.ts | 13 ++++++++----- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts index 377fe94..bf2c690 100644 --- a/ts-parser/src/parser/FunctionParser.ts +++ b/ts-parser/src/parser/FunctionParser.ts @@ -11,7 +11,8 @@ import { SyntaxKind, ParameterDeclaration, PropertyAccessExpression, - VariableDeclaration + VariableDeclaration, + Symbol } from 'ts-morph'; import { Function as UniFunction, Dependency, Receiver } from '../types/uniast'; import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; @@ -25,6 +26,7 @@ export class FunctionParser { private projectRoot: string; private pathUtils: PathUtils; private dependencyUtils: DependencyUtils; + private defaultExportSymbol: Symbol | undefined; constructor(project: Project, projectRoot: string) { this.project = project; @@ -37,6 +39,8 @@ export class FunctionParser { parseFunctions(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { const functions: Record = {}; + this.defaultExportSymbol = sourceFile.getDefaultExportSymbol()?.getAliasedSymbol() + // Parse function declarations const functionDeclarations = sourceFile.getFunctions(); for (const func of functionDeclarations) { @@ -118,7 +122,7 @@ export class FunctionParser { const endOffset = func.getEnd(); const content = func.getFullText(); const signature = this.extractSignature(func); - const isExported = func.isExported() || func.isDefaultExport(); + const isExported = func.isExported() || func.isDefaultExport() || (this.defaultExportSymbol === symbol && symbol !== undefined); // Parse parameters const params = this.parseParameters(func.getParameters(), moduleName, packagePath, sourceFile); @@ -172,9 +176,10 @@ export class FunctionParser { const signature = this.extractSignature(method); const parent = method.getParent(); + const parentSym = parent.getSymbol() let isExported = false; if (Node.isClassDeclaration(parent)) { - isExported = parent.isExported() || parent.isDefaultExport(); + isExported = parent.isExported() || parent.isDefaultExport() || (this.defaultExportSymbol === parentSym && parentSym !== undefined); } // Parse receiver @@ -274,7 +279,8 @@ export class FunctionParser { const parent = ctor.getParent(); let isExported = false; if (Node.isClassDeclaration(parent)) { - isExported = parent.isExported() || parent.isDefaultExport(); + const parentSym = parent.getSymbol() + isExported = parent.isExported() || parent.isDefaultExport() || (this.defaultExportSymbol === parentSym && parentSym !== undefined); } // Parse parameters @@ -328,7 +334,7 @@ export class FunctionParser { // Determine export status from the variable declaration const parent = varDecl.getVariableStatement(); - const isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + const isExported = parent ? (parent.isExported() || parent.isDefaultExport() || (this.defaultExportSymbol === arrowFunc.getSymbol() && this.defaultExportSymbol !== undefined)) : false; return { ModPath: moduleName, diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index df3608c..19044b4 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -7,7 +7,8 @@ import { SyntaxKind, TypeNode, SymbolFlags, - ClassExpression + ClassExpression, + Symbol } from 'ts-morph'; import { Type as UniType, Dependency } from '../types/uniast'; import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; @@ -17,6 +18,7 @@ import { TypeUtils } from '../utils/type-utils'; export class TypeParser { private symbolResolver: SymbolResolver; private pathUtils: PathUtils; + private defaultExported: Symbol | undefined constructor(projectRoot: string) { this.symbolResolver = new SymbolResolver(null as any, projectRoot); @@ -25,6 +27,7 @@ export class TypeParser { parseTypes(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { const types: Record = {}; + this.defaultExported = sourceFile.getDefaultExportSymbol()?.getAliasedSymbol() // Parse class declarations const classes = sourceFile.getClasses(); @@ -76,7 +79,7 @@ export class TypeParser { const startOffset = cls.getStart(); const endOffset = cls.getEnd(); const content = cls.getFullText(); - const isExported = cls.isExported() || cls.isDefaultExport(); + const isExported = cls.isExported() || cls.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); // Parse methods const methods: Record = {}; @@ -151,7 +154,7 @@ export class TypeParser { const startOffset = iface.getStart(); const endOffset = iface.getEnd(); const content = iface.getFullText(); - const isExported = iface.isExported() || iface.isDefaultExport(); + const isExported = iface.isExported() || iface.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); // Parse methods const methods: Record = {}; @@ -241,7 +244,7 @@ export class TypeParser { const startOffset = typeAlias.getStart(); const endOffset = typeAlias.getEnd(); const content = typeAlias.getFullText(); - const isExported = typeAlias.isExported() || typeAlias.isDefaultExport(); + const isExported = typeAlias.isExported() || typeAlias.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); // Extract type dependencies from the type alias const typeDependencies: Dependency[] = []; @@ -279,7 +282,7 @@ export class TypeParser { const startOffset = enumDecl.getStart(); const endOffset = enumDecl.getEnd(); const content = enumDecl.getFullText(); - const isExported = enumDecl.isExported() || enumDecl.isDefaultExport(); + const isExported = enumDecl.isExported() || enumDecl.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); return { ModPath: moduleName, diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts index 6ec5fce..a13f922 100644 --- a/ts-parser/src/parser/VarParser.ts +++ b/ts-parser/src/parser/VarParser.ts @@ -7,6 +7,7 @@ import { SyntaxKind, Project, Identifier, + Symbol, } from 'ts-morph'; import { Var as UniVar, Dependency } from '../types/uniast'; import { assignSymbolName, ResolvedSymbol, SymbolResolver } from '../utils/symbol-resolver'; @@ -15,6 +16,7 @@ import { PathUtils } from '../utils/path-utils'; export class VarParser { private symbolResolver: SymbolResolver; private pathUtils: PathUtils; + private defaultExportedSym: Symbol | undefined constructor(project: Project, projectRoot: string) { this.symbolResolver = new SymbolResolver(project, projectRoot); @@ -23,6 +25,7 @@ export class VarParser { parseVars(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { const vars: Record = {}; + this.defaultExportedSym = sourceFile.getDefaultExportSymbol()?.getAliasedSymbol() // Parse variable declarations - only file-level (not inside any scope) const variableDeclarations = sourceFile.getVariableDeclarations(); @@ -118,7 +121,7 @@ export class VarParser { const content = varDecl.getFullText(); const parent = varDecl.getVariableStatement(); - const isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + const isExported = parent ? (parent.isExported() || parent.isDefaultExport() || (sym === this.defaultExportedSym && sym !== undefined)) : false; const isConst = parent ? parent.getDeclarationKind() === 'const' : false; const isPointer = this.isPointerType(varDecl); @@ -190,7 +193,7 @@ export class VarParser { const parent = prop.getParent(); let isExported = false; if (Node.isClassDeclaration(parent)) { - isExported = parent.isExported() || parent.isDefaultExport(); + isExported = parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined); } const isConst = false; @@ -255,7 +258,7 @@ export class VarParser { const parent = member.getParent(); let isExported = false; if (Node.isEnumDeclaration(parent)) { - isExported = parent.isExported() || parent.isDefaultExport(); + isExported = parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined); } const isConst = true; @@ -353,12 +356,12 @@ export class VarParser { if (Node.isVariableDeclaration(parentNode)) { const parent = parentNode.getVariableStatement(); - isExported = parent ? (parent.isExported() || parent.isDefaultExport()) : false; + isExported = parent ? (parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined)) : false; isConst = parent ? parent.getDeclarationKind() === 'const' : false; } else if (Node.isPropertyDeclaration(parentNode)) { const parent = parentNode.getParent(); if (Node.isClassDeclaration(parent)) { - isExported = parent.isExported() || parent.isDefaultExport(); + isExported = parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined); } } From 952d3bfb7f35bc7d2fd179493aa311d032cdc32a Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 03:09:22 +0800 Subject: [PATCH 08/17] enrich test cases --- .../src/utils/test/symbol-resolver.test.ts | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/ts-parser/src/utils/test/symbol-resolver.test.ts b/ts-parser/src/utils/test/symbol-resolver.test.ts index 7ec839e..6bebae4 100644 --- a/ts-parser/src/utils/test/symbol-resolver.test.ts +++ b/ts-parser/src/utils/test/symbol-resolver.test.ts @@ -38,7 +38,7 @@ describe('SymbolResolver', () => { const symbol = variableDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('myVariable'); expect(resolvedSymbol?.isExternal).toBe(false); @@ -61,7 +61,7 @@ describe('SymbolResolver', () => { const symbol = functionDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, functionDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('myFunction'); } finally { @@ -83,7 +83,7 @@ describe('SymbolResolver', () => { const symbol = classDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, classDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyClass'); } finally { @@ -105,7 +105,7 @@ describe('SymbolResolver', () => { const symbol = interfaceDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, interfaceDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyInterface'); } finally { @@ -125,7 +125,7 @@ describe('SymbolResolver', () => { const symbol = typeAlias?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, typeAlias!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyType'); } finally { @@ -148,7 +148,7 @@ describe('SymbolResolver', () => { const symbol = enumDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, enumDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyEnum'); } finally { @@ -171,7 +171,7 @@ describe('SymbolResolver', () => { const symbol = method?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, method!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyClass.myMethod'); } finally { @@ -195,7 +195,7 @@ describe('SymbolResolver', () => { const symbol = member?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, member!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyEnum.VALUE_A'); } finally { @@ -241,7 +241,7 @@ describe('SymbolResolver', () => { const symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('exportedValue'); } @@ -258,11 +258,14 @@ describe('SymbolResolver', () => { const moduleContent = ` const defaultExport = { value: 42 }; + export const namedExport = defaultExport; export default defaultExport; `; const mainContent = ` import myDefault from './module'; + import { namedExport as namedExportAlias } from './module'; const localValue = myDefault.value; + const localNamedValue = namedExportAlias.value; `; fs.writeFileSync(path.join(tempDir, 'module.ts'), moduleContent); @@ -286,12 +289,22 @@ describe('SymbolResolver', () => { const importedIdentifier = identifiers?.find(id => id.getText() === 'myDefault'); expect(importedIdentifier).toBeDefined(); - const symbol = importedIdentifier?.getSymbol(); + let symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('defaultExport'); } + + const namedImportIdentifier = identifiers?.find(id => id.getText() === 'namedExportAlias'); + expect(namedImportIdentifier).toBeDefined(); + + symbol = namedImportIdentifier?.getSymbol(); + if (symbol) { + const resolvedSymbol = symbolResolver.resolveSymbol(symbol, namedImportIdentifier!); + expect(resolvedSymbol).toBeDefined(); + expect(resolvedSymbol?.name).toBe('namedExport'); + } } finally { if (fs.existsSync(tempDir)) { fs.rmSync(tempDir, { recursive: true, force: true }); @@ -335,7 +348,7 @@ describe('SymbolResolver', () => { const symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol); + const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('a'); } @@ -393,14 +406,14 @@ describe('SymbolResolver', () => { if (symbol) { // First resolution - const resolved1 = symbolResolver.resolveSymbol(symbol); + const resolved1 = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolved1).toBeDefined(); // Clear cache symbolResolver.clearCache(); // Second resolution should work the same - const resolved2 = symbolResolver.resolveSymbol(symbol); + const resolved2 = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolved2).toBeDefined(); expect(resolved2?.name).toBe(resolved1?.name); } From dfbae98211219fcd97600a6a58ab6aeee22d5a0c Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 17:03:07 +0800 Subject: [PATCH 09/17] fix dependency variable inference --- ts-parser/src/parser/FunctionParser.ts | 349 +++++++++++++----- ts-parser/src/parser/TypeParser.ts | 55 +-- ts-parser/src/parser/VarParser.ts | 87 +++-- .../src/parser/test/FunctionParser.test.ts | 113 +++++- ts-parser/src/parser/test/TypeParser.test.ts | 97 ++++- ts-parser/src/parser/test/VarParser.test.ts | 78 +++- ts-parser/src/utils/dependency-utils.ts | 66 ---- ts-parser/src/utils/symbol-resolver.ts | 40 +- .../src/utils/test/dependency-utils.test.ts | 113 ------ .../src/utils/test/symbol-resolver.test.ts | 28 +- ts-parser/test-repo/src/utils/calculator.ts | 7 + 11 files changed, 602 insertions(+), 431 deletions(-) diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts index bf2c690..16e0201 100644 --- a/ts-parser/src/parser/FunctionParser.ts +++ b/ts-parser/src/parser/FunctionParser.ts @@ -12,7 +12,9 @@ import { ParameterDeclaration, PropertyAccessExpression, VariableDeclaration, - Symbol + Symbol, + NewExpression, + Identifier } from 'ts-morph'; import { Function as UniFunction, Dependency, Receiver } from '../types/uniast'; import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; @@ -162,7 +164,6 @@ export class FunctionParser { private parseMethod(method: MethodDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, className: string): UniFunction { let symbol = method.getSymbol(); - let methodName = "" if (symbol) { methodName = assignSymbolName(symbol) @@ -383,34 +384,56 @@ export class FunctionParser { for (const callExpr of callExpressions) { const expression = callExpr.getExpression(); - if (Node.isIdentifier(expression)) { - const symbol = expression.getSymbol(); - if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, expression); - if (resolvedSymbol) { - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; - if (!visited.has(key)) { - visited.add(key); - let dep: Dependency = { - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - } - if ( - dep.ModPath === moduleName && - dep.PkgPath === packagePath && - resolvedSymbol.endOffset <= node.getEnd() && - resolvedSymbol.startOffset >= node.getStart() - ) continue - calls.push(dep); - } - } - } + if (!Node.isIdentifier(expression)) { + continue; + } + const symbol = expression.getSymbol(); + if (!symbol) { + continue + } + + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, expression); + if (!resolvedSymbol || !resolvedRealSymbol) { + continue; + } + + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (visited.has(key)) { + continue + } + + visited.add(key); + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + } + + // External function could not find decls. + if(resolvedSymbol.isExternal) { + calls.push(dep); + continue; + } + + const decls = resolvedRealSymbol.getDeclarations() + if (decls.length === 0) { + continue; + } + const defStartOffset = decls[0].getStart() + const defEndOffset = decls[0].getEnd() + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defEndOffset <= node.getEnd() && + defStartOffset >= node.getStart() + ) { + continue } + calls.push(dep); } return calls; } @@ -426,6 +449,7 @@ export class FunctionParser { // Extract property access expressions const propertyAccesses = node.getDescendantsOfKind(SyntaxKind.PropertyAccessExpression); + const newCalls = node.getDescendantsOfKind(SyntaxKind.NewExpression); for (const propAccess of propertyAccesses) { // Check if this property access is part of a method call @@ -435,9 +459,82 @@ export class FunctionParser { } } + // Deal new call expression + for (const newCall of newCalls) { + const expr = newCall.getExpression(); + let lastIdentifier: Identifier | undefined; + + if (Node.isIdentifier(expr)) { + lastIdentifier = expr; + } else if (Node.isPropertyAccessExpression(expr)) { + lastIdentifier = expr.getNameNode(); + } + + if(lastIdentifier) { + this.processNewCall(node, lastIdentifier, moduleName, packagePath, sourceFile, calls, visited); + } + } + return calls; } + private processNewCall( + callerNode: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, + newExpr: Identifier, + moduleName: string, + packagePath: string, + sourceFile: SourceFile, + calls: Dependency[], + visited: Set + ): void { + const methodSymbol = newExpr.getSymbol(); + + if (!methodSymbol) return; + + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(methodSymbol, newExpr); + if (!resolvedSymbol) return; + + // Handle method names like 'getX' -> 'getX' + let nameFormat = resolvedSymbol.name; + + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${nameFormat}`; + + if (visited.has(key)) { + return + } + visited.add(key); + + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: nameFormat, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + } + + if(resolvedSymbol.isExternal) { + calls.push(dep); + return; + } + + const decls = resolvedRealSymbol.getDeclarations() + if (decls.length === 0) { + return; + } + const defStartOffset = decls[0].getStart() + const defEndOffset = decls[0].getEnd() + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defEndOffset <= callerNode.getEnd() && + defStartOffset >= callerNode.getStart() + ) return + + calls.push(dep); + } + private processMethodCall( callerNode: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, propAccess: PropertyAccessExpression, @@ -451,7 +548,7 @@ export class FunctionParser { if (!methodSymbol) return; - const resolvedSymbol = this.symbolResolver.resolveSymbol(methodSymbol, propAccess); + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(methodSymbol, propAccess); if (!resolvedSymbol) return; // Handle method names like 'getX' -> 'getX' @@ -459,27 +556,40 @@ export class FunctionParser { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${nameFormat}`; - if (!visited.has(key)) { - visited.add(key); - - let dep: Dependency = { - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: nameFormat, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - } - if ( - dep.ModPath === moduleName && - dep.PkgPath === packagePath && - resolvedSymbol.endOffset <= callerNode.getEnd() && - resolvedSymbol.startOffset >= callerNode.getStart() - ) return + if (visited.has(key)) { + return + } + visited.add(key); + + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: nameFormat, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + } + if(resolvedSymbol.isExternal) { calls.push(dep); + return; } + + const decls = resolvedRealSymbol.getDeclarations() + if (decls.length === 0) { + return; + } + const defStartOffset = decls[0].getStart() + const defEndOffset = decls[0].getEnd() + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defEndOffset <= callerNode.getEnd() && + defStartOffset >= callerNode.getStart() + ) return + + calls.push(dep); } @@ -501,36 +611,54 @@ export class FunctionParser { for (const typeRef of typeReferences) { let typeName = typeRef.getText(); - if (this.isPrimitiveType(typeName)) continue; + if (this.isPrimitiveType(typeName)) { + continue; + } const symbol = typeRef.getSymbol(); + if (!symbol) { + continue; + } + + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, typeNode); + if (!resolvedSymbol || resolvedSymbol.isExternal) { + continue + } - if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, typeNode); - if (resolvedSymbol && !resolvedSymbol.isExternal) { - typeName = resolvedSymbol.name - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${typeName}`; - if (!visited.has(key)) { - visited.add(key); - let dep: Dependency = { - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - }; - if ( - dep.ModPath === moduleName && - dep.PkgPath === packagePath && - resolvedSymbol.endOffset <= node.getEnd() && - resolvedSymbol.startOffset >= node.getStart() - ) continue - types.push(dep); - } - } + const decls = resolvedRealSymbol.getDeclarations() + if (decls.length === 0) { + continue; } + + const defStartOffset = decls[0].getStart() + const defEndOffset = decls[0].getEnd() + + typeName = resolvedSymbol.name + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${typeName}`; + if (visited.has(key)) { + continue + } + + visited.add(key); + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defEndOffset <= node.getEnd() && + defStartOffset >= node.getStart() + ) { + continue; + } + types.push(dep); } } @@ -553,7 +681,7 @@ export class FunctionParser { for (const identifier of identifiers) { - // Skip function calls / constructor calls / property names + // Skip function calls / constructor calls / property names / Namespace import const parent = identifier.getParent(); if ( // Function calls / constructor calls / property names @@ -580,13 +708,14 @@ export class FunctionParser { if (declarations.length === 0) continue; // if all declarations are in the current function scope, then it's a local variable (including closure capture), skip - const isLocal = declarations.every(d => { + const isLocalOrModule = declarations.every(d => { return ( d.getFirstAncestor(a => a === node) !== undefined || - Node.isCatchClause(d.getParent()) + Node.isCatchClause(d.getParent()) || + Node.isNamespaceImport(d) ); }); - if (isLocal) continue; + if (isLocalOrModule) continue; // Skip built-in symbols const isBuiltIn = declarations.some(d => { @@ -599,30 +728,47 @@ export class FunctionParser { if (this.isPrimitiveType(varName)) continue; // Use symbol resolver - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); - if (resolvedSymbol && !resolvedSymbol.isExternal) { - varName = resolvedSymbol.name - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${varName}`; - if (!visited.has(key)) { - visited.add(key); - let dep: Dependency = { - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset, - }; - if ( - dep.ModPath === moduleName && - dep.PkgPath === packagePath && - resolvedSymbol.endOffset <= node.getEnd() && - resolvedSymbol.startOffset >= node.getStart() - ) continue - globalVars.push(dep); - } + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, identifier); + if (!resolvedSymbol || resolvedSymbol.isExternal) { + continue; + } + + + const decls = resolvedRealSymbol.getDeclarations() + if (decls.length === 0) { + continue; + } + + const defStartOffset = decls[0].getStart() + const defEndOffset = decls[0].getEnd() + + + varName = resolvedSymbol.name + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${varName}`; + if (visited.has(key)) { + continue; + } + + visited.add(key); + + let dep: Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset, + }; + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defEndOffset <= node.getEnd() && + defStartOffset >= node.getStart() + ) { + continue; } + globalVars.push(dep); } return globalVars; } @@ -657,5 +803,4 @@ export class FunctionParser { const length = body.getStart() - node.getStart(); return node.getText().substring(0, length).trim(); } - } \ No newline at end of file diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index 19044b4..cc03038 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -323,30 +323,41 @@ export class TypeParser { const typeName = identifier.getText(); if (this.isPrimitiveType(typeName)) continue; - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, identifier); // if symbol is not external, add it to dependencies - if (resolvedSymbol && !resolvedSymbol.isExternal) { - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; - if (!visited.has(key)) { - visited.add(key); - let dep : Dependency = { - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - }; - if ( - dep.ModPath === moduleName && - dep.PkgPath === packagePath && - typeNode.getStart() <= resolvedSymbol.startOffset && - resolvedSymbol.endOffset <= typeNode.getEnd() - ) continue; - dependencies.push(dep); - } + if (!resolvedSymbol || resolvedSymbol.isExternal) { + continue; } + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (visited.has(key)) { + continue; + } + + const decls = resolvedRealSymbol.getDeclarations(); + if (decls.length === 0) { + continue; + } + + const defStartOffset = decls[0].getStart(); + const defEndOffset = decls[0].getEnd(); + + visited.add(key); + let dep : Dependency = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }; + if ( + dep.ModPath === moduleName && + dep.PkgPath === packagePath && + defStartOffset <= resolvedSymbol.startOffset && + resolvedSymbol.endOffset <= defEndOffset + ) continue; + dependencies.push(dep); } return dependencies; diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts index a13f922..b2da0c1 100644 --- a/ts-parser/src/parser/VarParser.ts +++ b/ts-parser/src/parser/VarParser.ts @@ -131,7 +131,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol, varDecl); + const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(typeSymbol, varDecl); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -205,7 +205,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(typeSymbol, prop); + const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(typeSymbol, prop); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -390,35 +390,42 @@ export class VarParser { const initializer = node.getInitializer(); if (!initializer) return dependencies; - // Get the variable declaration's position range - const varStart = node.getStart(); - const varEnd = node.getEnd(); - // Extract the source object/array that the destructuring is from + // Extract single symbol const sourceSymbol = initializer.getSymbol(); if (sourceSymbol) { - const [resolvedSymbol, filePath] = this.symbolResolver.resolveSymbolWithSource(sourceSymbol, node); - if (resolvedSymbol && !resolvedSymbol.isExternal) { + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(sourceSymbol, node); + if (resolvedSymbol && !resolvedSymbol.isExternal && resolvedRealSymbol) { // Check if the dependency is defined outside this variable declaration - if (!this.isDependencyDefinedWithinVariable(resolvedSymbol, varStart, varEnd, this.pathUtils.getRelativePath(filePath))) { - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; - if (!visited.has(key)) { - visited.add(key); - dependencies.push({ - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - }); + const decls = resolvedRealSymbol.getDeclarations() + if(decls.length > 0) { + const defStart = decls[0].getStart(); + const defEnd = decls[0].getEnd(); + if ( + moduleName !== resolvedSymbol.moduleName || + packagePath !== resolvedSymbol.packagePath || + defEnd > node.getEnd() || + defStart < node.getStart() + ) { + const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; + if (!visited.has(key)) { + visited.add(key); + dependencies.push({ + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset + }); + } } } } } - // Extract identifiers that are defined outside this variable declaration + // Extract identifiers if it's a expression const identifiers = initializer.getDescendantsOfKind(SyntaxKind.Identifier); for (const identifier of identifiers) { // Skip if this identifier is part of a property access (struct field access) @@ -444,37 +451,29 @@ export class VarParser { continue } - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, node); + const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(symbol, node); if (resolvedSymbol && !resolvedSymbol.isExternal) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; - if (!visited.has(key)) { - visited.add(key); - dependencies.push({ - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - }); + if (visited.has(key)) { + continue + } + visited.add(key); + const dep = { + ModPath: resolvedSymbol.moduleName || moduleName, + PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), + Name: resolvedSymbol.name, + File: resolvedSymbol.filePath, + Line: resolvedSymbol.line, + StartOffset: resolvedSymbol.startOffset, + EndOffset: resolvedSymbol.endOffset } + dependencies.push(dep); } } return dependencies; } - private isDependencyDefinedWithinVariable(resolvedSymbol: ResolvedSymbol, varStart: number, varEnd: number, sourceFilePath: string): boolean { - // resolvedSymbol.filePath -> symbol where is been used - if (resolvedSymbol.filePath !== sourceFilePath) return false; - // Check if the dependency's declaration is within the variable declaration's range - if (resolvedSymbol.startOffset !== undefined && resolvedSymbol.endOffset !== undefined) { - return resolvedSymbol.startOffset >= varStart && resolvedSymbol.endOffset <= varEnd; - } - return false; - } - private isPointerType(_: any): boolean { return false; } diff --git a/ts-parser/src/parser/test/FunctionParser.test.ts b/ts-parser/src/parser/test/FunctionParser.test.ts index 38f0399..d957130 100644 --- a/ts-parser/src/parser/test/FunctionParser.test.ts +++ b/ts-parser/src/parser/test/FunctionParser.test.ts @@ -1,3 +1,4 @@ +import path from 'path'; import { FunctionParser } from '../FunctionParser'; import { createTestProject, expectToBeDefined } from './test-utils'; @@ -21,7 +22,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['simpleFunction']).toBeDefined(); @@ -51,7 +57,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['simpleFunction']).toBeDefined(); @@ -93,7 +104,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['TestClass.method1']).toBeDefined(); @@ -120,7 +136,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['arrowFunc']).toBeDefined(); @@ -146,7 +167,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['TestInterface.method1']).toBeDefined(); expect(functions['TestInterface.method2']).toBeDefined(); @@ -174,7 +200,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['withParams']?.Signature).toContain('function withParams'); expect(functions['arrowWithTypes']?.Signature).toContain('=>'); @@ -199,7 +230,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const caller = expectToBeDefined(functions['caller']); expect(caller.FunctionCalls).toBeDefined(); @@ -223,7 +259,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const usesExternal = expectToBeDefined(functions['usesExternal']); expect(usesExternal.FunctionCalls).toBeDefined(); @@ -248,7 +289,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const user = expectToBeDefined(functions['user']); expect(user.MethodCalls).toBeDefined(); @@ -270,7 +316,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const chainUser = expectToBeDefined(functions['chainUser']); expect(chainUser.MethodCalls).toBeDefined(); @@ -291,7 +342,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const usesTypes = expectToBeDefined(functions['usesTypes']); expect(usesTypes.Types).toBeDefined(); @@ -323,7 +379,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const usesGlobals = expectToBeDefined(functions['usesGlobals']); expect(usesGlobals.GlobalVars).toBeDefined(); @@ -348,7 +409,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); const usesBuiltins = expectToBeDefined(functions['usesBuiltins']); const globalNames = expectToBeDefined(usesBuiltins.GlobalVars).map(gv => gv.Name); @@ -376,7 +442,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(Object.keys(functions)).toHaveLength(1); @@ -395,7 +466,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['destructuredParams']).toBeDefined(); expect(functions['arrayParams']).toBeDefined(); @@ -417,7 +493,12 @@ describe('FunctionParser', () => { `); const parser = new FunctionParser(project, process.cwd()); - const functions = parser.parseFunctions(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const functions = parser.parseFunctions(sourceFile, 'parser-tests', pkgPath); expect(functions['genericFunction']).toBeDefined(); expect(functions['GenericClass.method']).toBeDefined(); diff --git a/ts-parser/src/parser/test/TypeParser.test.ts b/ts-parser/src/parser/test/TypeParser.test.ts index 547390c..7b33cac 100644 --- a/ts-parser/src/parser/test/TypeParser.test.ts +++ b/ts-parser/src/parser/test/TypeParser.test.ts @@ -1,3 +1,4 @@ +import path from 'path'; import { TypeParser } from '../TypeParser'; import { createTestProject, expectToBeDefined } from './test-utils'; @@ -25,7 +26,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['SimpleClass']).toBeDefined(); expect(types['ExportedClass']).toBeDefined(); @@ -60,7 +65,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['SimpleInterface']).toBeDefined(); expect(types['ExportedInterface']).toBeDefined(); @@ -93,7 +102,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['StringAlias']).toBeDefined(); expect(types['ObjectAlias']).toBeDefined(); @@ -129,7 +142,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['Color']).toBeDefined(); expect(types['Status']).toBeDefined(); @@ -159,7 +176,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const derived = expectToBeDefined(types['DerivedClass']); @@ -189,7 +210,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const extended = expectToBeDefined(types['ExtendedInterface']); const multi = expectToBeDefined(types['MultiLevel']); @@ -222,7 +247,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const implementing = expectToBeDefined(types['ImplementingClass']); expect(expectToBeDefined(implementing.Implements).length).toBeGreaterThan(0); @@ -251,7 +280,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const complex = expectToBeDefined(types['ComplexClass']); expect(expectToBeDefined(complex.Implements).length).toBeGreaterThan(0); @@ -277,7 +310,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const propertyTypes = expectToBeDefined(types['PropertyTypes']); expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); @@ -305,7 +342,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const propertyTypes = expectToBeDefined(types['PropertyTypes']); expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); @@ -337,7 +378,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const simpleAlias = expectToBeDefined(types['SimpleAlias']); const complexAlias = expectToBeDefined(types['ComplexAlias']); @@ -381,7 +426,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); const primitiveTypes = expectToBeDefined(types['PrimitiveTypes']); const primitiveNames = expectToBeDefined(primitiveTypes.Implements).map(dep => dep.Name); @@ -415,7 +464,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(Object.keys(types).length).toBeGreaterThan(0); @@ -445,7 +498,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['GenericClass']).toBeDefined(); expect(types['GenericInterface']).toBeDefined(); @@ -484,7 +541,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['Level1']).toBeDefined(); expect(types['NestedType']).toBeDefined(); @@ -509,7 +570,11 @@ describe('TypeParser', () => { `); const parser = new TypeParser(process.cwd()); - const types = parser.parseTypes(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); expect(types['FunctionType']).toBeDefined(); expect(types['MethodType']).toBeDefined(); diff --git a/ts-parser/src/parser/test/VarParser.test.ts b/ts-parser/src/parser/test/VarParser.test.ts index e8804c9..a912ef4 100644 --- a/ts-parser/src/parser/test/VarParser.test.ts +++ b/ts-parser/src/parser/test/VarParser.test.ts @@ -1,3 +1,4 @@ +import path from 'path'; import { VarParser } from '../VarParser'; import { createTestProject, expectToBeDefined } from './test-utils'; @@ -14,7 +15,11 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); @@ -38,7 +43,11 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars['defaultExport']).toBeDefined(); expect(vars['defaultExport'].IsExported).toBe(true); @@ -67,7 +76,12 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars['Color.Red']).toBeDefined(); expect(vars['Color.Green']).toBeDefined(); @@ -100,7 +114,12 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars['a']).toBeDefined(); expect(vars['b']).toBeDefined(); @@ -126,7 +145,12 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars['first']).toBeDefined(); expect(vars['second']).toBeDefined(); @@ -154,7 +178,12 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars['name']).toBeDefined(); @@ -187,10 +216,25 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); const usesDeps = expectToBeDefined(vars['usesDeps']); expect(usesDeps.Dependencies).toBeDefined(); + expect(usesDeps.Dependencies!.length).toBe(2); + + const objDeps = expectToBeDefined(vars['objDeps']); + expect(objDeps.Dependencies!.length).toBe(2); + + const arrDeps = expectToBeDefined(vars['arrDeps']); + expect(arrDeps.Dependencies!.length).toBe(2); + + const funcDep = expectToBeDefined(vars['funcDep']); + expect(funcDep.Dependencies!.length).toBe(1); cleanup(); }); @@ -205,17 +249,21 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); const aVar = expectToBeDefined(vars['a']); const bVar = expectToBeDefined(vars['b']); const xVar = expectToBeDefined(vars['x']); const yVar = expectToBeDefined(vars['y']); - expect(aVar.Dependencies).toBeDefined(); - expect(bVar.Dependencies).toBeDefined(); - expect(xVar.Dependencies).toBeDefined(); - expect(yVar.Dependencies).toBeDefined(); + expect(aVar.Dependencies!.length).toBe(1); + expect(bVar.Dependencies!.length).toBe(1); + expect(xVar.Dependencies!.length).toBe(1); + expect(yVar.Dependencies!.length).toBe(1); cleanup(); }); @@ -229,7 +277,11 @@ describe('VarParser', () => { `); const parser = new VarParser(project, process.cwd()); - const vars = parser.parseVars(sourceFile, 'test-module', 'test-package'); + let pkgPathAbsFile : string = sourceFile.getFilePath() + pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') + const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) + + const vars = parser.parseVars(sourceFile, 'parser-tests', pkgPath); expect(vars).toBeDefined(); diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts index 40a1e6e..8ccc8e4 100644 --- a/ts-parser/src/utils/dependency-utils.ts +++ b/ts-parser/src/utils/dependency-utils.ts @@ -12,72 +12,6 @@ export class DependencyUtils { this.projectRoot = projectRoot; } - /** - * Extract dependencies from identifiers in a node - */ - extractDependenciesFromIdentifiers( - node: VariableDeclaration | Identifier, - moduleName: string, - packagePath: string - ): Dependency[] { - const dependencies: Dependency[] = []; - const visited = new Set(); - - // If this is a variable declaration, get the initializer - let targetNode: Node = node; - if (Node.isVariableDeclaration(node)) { - const initializer = node.getInitializer(); - if (!initializer) { - return dependencies; - } - targetNode = initializer; - } - - const identifiers = targetNode.getDescendantsOfKind(SyntaxKind.Identifier); - - for (const identifier of identifiers) { - // Skip the variable name itself - if (Node.isVariableDeclaration(node) && identifier === node.getNameNode()) { - continue; - } - - // Skip function calls, constructors, property names, etc. - const parent = identifier.getParent(); - if ( - (Node.isCallExpression(parent) && parent.getExpression() === identifier) || - (Node.isNewExpression(parent) && parent.getExpression() === identifier) || - (Node.isPropertyAccessExpression(parent) && parent.getNameNode() === identifier) || - (Node.isBindingElement(parent) && parent.getPropertyNameNode() === identifier) || - (Node.isPropertyAssignment(parent) && parent.getNameNode() === identifier) || - (Node.isShorthandPropertyAssignment(parent) && parent.getNameNode() === identifier) - ) { - continue; - } - - const symbol = identifier.getSymbol(); - if (symbol) { - const resolvedSymbol = this.symbolResolver.resolveSymbol(symbol, identifier); - if (resolvedSymbol && !resolvedSymbol.isExternal) { - const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; - if (!visited.has(key)) { - visited.add(key); - dependencies.push({ - ModPath: resolvedSymbol.moduleName || moduleName, - PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), - Name: resolvedSymbol.name, - File: resolvedSymbol.filePath, - Line: resolvedSymbol.line, - StartOffset: resolvedSymbol.startOffset, - EndOffset: resolvedSymbol.endOffset - }); - } - } - } - } - - return dependencies; - } - /** * Extract atomic type references from complex type expressions */ diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts index 01e78d5..00702c0 100644 --- a/ts-parser/src/utils/symbol-resolver.ts +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -20,6 +20,7 @@ export class SymbolResolver { private project: Project; private projectRoot: string; private resolutionCache = new Map(); + private resolutionSymbolCache = new Map(); private packageJsonCache = new Map(); private mainPackageName: string; private cannotResolveSymbolNames: Set = new Set(); @@ -48,14 +49,14 @@ export class SymbolResolver { /** * Resolve a symbol to its actual definition point, following imports and exports. */ - resolveSymbol(symbol: Symbol, expression: T): ResolvedSymbol | null { + resolveSymbol(symbol: Symbol, expression: T): [ResolvedSymbol, Symbol] | [null, null] { const declarations = symbol.getDeclarations(); if (!declarations || declarations.length === 0) { - return null; + return [null, null]; } - const cacheKey = `${declarations[0].getSourceFile().getFilePath()}#${symbol.getEscapedName()}`; - if (this.resolutionCache.has(cacheKey)) { - return this.resolutionCache.get(cacheKey)!; + const cacheKey = `${declarations[0].getSourceFile().getFilePath()}#${symbol.getEscapedName()}_${symbol.getDeclarations()?.[0].getStart()}`; + if (this.resolutionCache.has(cacheKey) && this.resolutionSymbolCache.has(cacheKey)) { + return [this.resolutionCache.get(cacheKey)!, this.resolutionSymbolCache.get(cacheKey)!]; } const definitionNode = this.findActualDefinition(symbol); @@ -67,8 +68,9 @@ export class SymbolResolver { this.cannotResolveSymbolNames.add(symbol.getName()); console.warn(`Symbol not found: ${symbol.getName()}.`) } + this.resolutionSymbolCache.set(cacheKey, null); this.resolutionCache.set(cacheKey, null); - return null; + return [null, null]; } const sourceFile = definitionNode.getSourceFile(); @@ -92,21 +94,9 @@ export class SymbolResolver { packagePath: packageInfo.path, }; + this.resolutionSymbolCache.set(cacheKey, definitionSymbol); this.resolutionCache.set(cacheKey, resolved); - return resolved; - } - - resolveSymbolWithSource(symbol: Symbol, expression: T): [ResolvedSymbol, string] | [null, null] { - this.resolveSymbol(symbol, expression) - const declarations = symbol.getDeclarations(); - if (!declarations || declarations.length === 0) { - return [null, null]; - } - const cacheKey = `${declarations[0].getSourceFile().getFilePath()}#${symbol.getEscapedName()}`; - if (this.resolutionCache.has(cacheKey)) { - return [this.resolutionCache.get(cacheKey)!, declarations[0].getSourceFile().getFilePath()]; - } - return [null, null]; + return [resolved, definitionSymbol]; } /** @@ -118,10 +108,10 @@ export class SymbolResolver { let lastCurrent: Symbol | null = null; - for (let i = 0; i < 50; i++) { // 加个安全上限 + for (let i = 0; i < 50; i++) { // Utmost 50 iterations if (!current) return null; if (visited.has(current)) { - console.warn("循环别名:", current.getName()); + console.warn("SymbolResolver: Circular alias detected:", current.getName()); break; } visited.add(current); @@ -168,7 +158,7 @@ export class SymbolResolver { if (lastCurrent && !this.cannotResolveSymbolNames.has(lastCurrent.getName())) { // Log unresolved symbols only once this.cannotResolveSymbolNames.add(lastCurrent.getName()); - console.log("Can't parse: " + lastCurrent.getName(), ". Possibly this library has no .d.ts") + console.warn("Can't parse: " + lastCurrent.getName(), ". Possibly this library has no .d.ts") } return null; } @@ -291,12 +281,12 @@ const symbolNameCache = new Map(); export function assignSymbolName(symbol: Symbol): string { let decls = symbol.getDeclarations() if(decls.length === 0) { - return symbol.getEscapedName() + return symbol.getName() } const declFile = decls[0].getSourceFile().getFilePath() - let rawName = symbol.getEscapedName() + let rawName = symbol.getName() // Handle methods, properties, constructors, and functions with proper naming const firstDecl = decls[0]; diff --git a/ts-parser/src/utils/test/dependency-utils.test.ts b/ts-parser/src/utils/test/dependency-utils.test.ts index c30e9c5..ab94d4b 100644 --- a/ts-parser/src/utils/test/dependency-utils.test.ts +++ b/ts-parser/src/utils/test/dependency-utils.test.ts @@ -26,119 +26,6 @@ describe('DependencyUtils', () => { jest.clearAllMocks(); }); - describe('extractDependenciesFromIdentifiers', () => { - it('should extract dependencies from simple variable usage', () => { - const { sourceFile, cleanup } = createTestProject(` - const helper = { value: 42 }; - const result = helper.value; - `); - - try { - const variableDeclaration = sourceFile.getVariableDeclaration('result'); - expect(variableDeclaration).toBeDefined(); - - const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( - variableDeclaration! as unknown as Identifier, - 'test', - '.' - ); - - expect(dependencies).toHaveLength(1); - expect(dependencies[0].Name).toBe('helper'); - expect(dependencies[0].ModPath).toBe('ts-parser-utils-test'); - } finally { - cleanup(); - } - }); - - it('should skip function calls and property access', () => { - const { sourceFile, cleanup } = createTestProject(` - function myFunction() { return 42; } - const obj = { prop: myFunction() }; - `); - - try { - const variableDeclaration = sourceFile.getVariableDeclaration('obj'); - const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( - variableDeclaration! as unknown as Identifier, - 'test', - '.' - ); - - // Should not include myFunction as a dependency since it's a function call - expect(dependencies).toHaveLength(0); - } finally { - cleanup(); - } - }); - - it('should extract dependencies from class usage', () => { - const { sourceFile, cleanup } = createTestProject(` - class MyClass { - static staticProp = 42; - } - const instance = MyClass.staticProp; - `); - - try { - const variableDeclaration = sourceFile.getVariableDeclaration('instance'); - const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( - variableDeclaration! as unknown as Identifier, - 'test', - '.' - ); - - expect(dependencies).toHaveLength(1); - expect(dependencies[0].Name).toBe('MyClass'); - } finally { - cleanup(); - } - }); - - it('should handle nested dependencies', () => { - const { sourceFile, cleanup } = createTestProject(` - const config = { db: { host: 'localhost' } }; - const host = config.db.host; - `); - - try { - const variableDeclaration = sourceFile.getVariableDeclaration('host'); - const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( - variableDeclaration! as unknown as Identifier, - 'test', - '.' - ); - - expect(dependencies).toHaveLength(1); - expect(dependencies[0].Name).toBe('config'); - } finally { - cleanup(); - } - }); - - it('should deduplicate dependencies', () => { - const { sourceFile, cleanup } = createTestProject(` - const shared = { a: 1, b: 2 }; - const result = shared.a + shared.b; - `); - - try { - const variableDeclaration = sourceFile.getVariableDeclaration('result'); - const dependencies = dependencyUtils.extractDependenciesFromIdentifiers( - variableDeclaration! as unknown as Identifier, - 'test', - '.' - ); - - // Should only have one dependency for 'shared' despite multiple usages - expect(dependencies).toHaveLength(1); - expect(dependencies[0].Name).toBe('shared'); - } finally { - cleanup(); - } - }); - }); - describe('extractAtomicTypeReferences', () => { it('should extract simple type references', () => { const { sourceFile, cleanup } = createTestProject(` diff --git a/ts-parser/src/utils/test/symbol-resolver.test.ts b/ts-parser/src/utils/test/symbol-resolver.test.ts index 6bebae4..d4303c2 100644 --- a/ts-parser/src/utils/test/symbol-resolver.test.ts +++ b/ts-parser/src/utils/test/symbol-resolver.test.ts @@ -38,7 +38,7 @@ describe('SymbolResolver', () => { const symbol = variableDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('myVariable'); expect(resolvedSymbol?.isExternal).toBe(false); @@ -61,7 +61,7 @@ describe('SymbolResolver', () => { const symbol = functionDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, functionDeclaration!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, functionDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('myFunction'); } finally { @@ -83,7 +83,7 @@ describe('SymbolResolver', () => { const symbol = classDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, classDeclaration!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, classDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyClass'); } finally { @@ -105,7 +105,7 @@ describe('SymbolResolver', () => { const symbol = interfaceDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, interfaceDeclaration!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, interfaceDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyInterface'); } finally { @@ -125,7 +125,7 @@ describe('SymbolResolver', () => { const symbol = typeAlias?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, typeAlias!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, typeAlias!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyType'); } finally { @@ -148,7 +148,7 @@ describe('SymbolResolver', () => { const symbol = enumDeclaration?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, enumDeclaration!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, enumDeclaration!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyEnum'); } finally { @@ -171,7 +171,7 @@ describe('SymbolResolver', () => { const symbol = method?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, method!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, method!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyClass.myMethod'); } finally { @@ -195,7 +195,7 @@ describe('SymbolResolver', () => { const symbol = member?.getSymbol(); expect(symbol).toBeDefined(); - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, member!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, member!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('MyEnum.VALUE_A'); } finally { @@ -241,7 +241,7 @@ describe('SymbolResolver', () => { const symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol, importedIdentifier!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('exportedValue'); } @@ -291,7 +291,7 @@ describe('SymbolResolver', () => { let symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol, importedIdentifier!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('defaultExport'); } @@ -301,7 +301,7 @@ describe('SymbolResolver', () => { symbol = namedImportIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol, namedImportIdentifier!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol, namedImportIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('namedExport'); } @@ -348,7 +348,7 @@ describe('SymbolResolver', () => { const symbol = importedIdentifier?.getSymbol(); if (symbol) { - const resolvedSymbol = symbolResolver.resolveSymbol(symbol!, importedIdentifier!); + const [resolvedSymbol, _] = symbolResolver.resolveSymbol(symbol!, importedIdentifier!); expect(resolvedSymbol).toBeDefined(); expect(resolvedSymbol?.name).toBe('a'); } @@ -406,14 +406,14 @@ describe('SymbolResolver', () => { if (symbol) { // First resolution - const resolved1 = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); + const [resolved1, _] = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolved1).toBeDefined(); // Clear cache symbolResolver.clearCache(); // Second resolution should work the same - const resolved2 = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); + const [resolved2, __] = symbolResolver.resolveSymbol(symbol!, variableDeclaration!); expect(resolved2).toBeDefined(); expect(resolved2?.name).toBe(resolved1?.name); } diff --git a/ts-parser/test-repo/src/utils/calculator.ts b/ts-parser/test-repo/src/utils/calculator.ts index 1546e99..d9edf02 100644 --- a/ts-parser/test-repo/src/utils/calculator.ts +++ b/ts-parser/test-repo/src/utils/calculator.ts @@ -3,6 +3,7 @@ import * as fs from 'fs'; import * as path from 'path'; import * as JSON5 from 'json5'; +const MagicNumber = 1e9 + 7; export class Calculator { private history: Array<{ operation: string; result: number; timestamp: Date }> = []; @@ -13,6 +14,12 @@ export class Calculator { return result; } + addMagicNumber(a: number): number { + const result = a + MagicNumber; + this.logOperation('addMagicNumber', result, [a]); + return result; + } + subtract(a: number, b: number): number { const result = a - b; this.logOperation('subtract', result, [a, b]); From f45e3a6a39a4d58d8374557be63ef0cbda06ffa1 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 19:03:51 +0800 Subject: [PATCH 10/17] change type dependency append rules --- ts-parser/src/parser/FunctionParser.ts | 86 +++++++++--- ts-parser/src/parser/TypeParser.ts | 74 ++++++---- ts-parser/src/parser/VarParser.ts | 127 ++++++++++-------- ts-parser/src/utils/dependency-utils.ts | 80 ++++++----- .../src/utils/test/dependency-utils.test.ts | 16 --- ts-parser/test-repo/src/utils/calculator.ts | 2 + 6 files changed, 230 insertions(+), 155 deletions(-) diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts index 16e0201..3cc1e05 100644 --- a/ts-parser/src/parser/FunctionParser.ts +++ b/ts-parser/src/parser/FunctionParser.ts @@ -13,8 +13,8 @@ import { PropertyAccessExpression, VariableDeclaration, Symbol, - NewExpression, - Identifier + Identifier, + TypeNode } from 'ts-morph'; import { Function as UniFunction, Dependency, Receiver } from '../types/uniast'; import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; @@ -46,8 +46,13 @@ export class FunctionParser { // Parse function declarations const functionDeclarations = sourceFile.getFunctions(); for (const func of functionDeclarations) { - const funcObj = this.parseFunction(func, moduleName, packagePath, sourceFile); - functions[funcObj.Name] = funcObj; + try { + const funcObj = this.parseFunction(func, moduleName, packagePath, sourceFile); + functions[funcObj.Name] = funcObj; + } catch (error) { + console.error('Error processing function:', func, error); + } + } // Parse method declarations in classes @@ -63,22 +68,34 @@ export class FunctionParser { const methods = cls.getMethods(); for (const method of methods) { - const methodObj = this.parseMethod(method, moduleName, packagePath, sourceFile, className); - functions[methodObj.Name] = methodObj; + try { + const methodObj = this.parseMethod(method, moduleName, packagePath, sourceFile, className); + functions[methodObj.Name] = methodObj; + } catch (error) { + console.error('Error processing method:', method, error); + } } // Parse constructors const constructors = cls.getConstructors(); for (const ctor of constructors) { - const ctorObj = this.parseConstructor(ctor, moduleName, packagePath, sourceFile, className); - functions[ctorObj.Name] = ctorObj; + try { + const ctorObj = this.parseConstructor(ctor, moduleName, packagePath, sourceFile, className); + functions[ctorObj.Name] = ctorObj; + } catch (error) { + console.error('Error processing constructor:', ctor, error); + } } // Parse static methods const staticMethods = cls.getStaticMethods(); for (const staticMethod of staticMethods) { - const methodObj = this.parseMethod(staticMethod, moduleName, packagePath, sourceFile, className); - functions[methodObj.Name] = methodObj; + try { + const methodObj = this.parseMethod(staticMethod, moduleName, packagePath, sourceFile, className); + functions[methodObj.Name] = methodObj; + } catch (error) { + console.error('Error processing static method:', staticMethod, error); + } } } @@ -94,8 +111,13 @@ export class FunctionParser { } else { funcName = "anonymous_" + varDecl.getStart() } - const funcObj = this.parseArrowFunction(initializer, funcName, moduleName, packagePath, sourceFile, varDecl); - functions[funcObj.Name] = funcObj; + try { + const funcObj = this.parseArrowFunction(initializer, funcName, moduleName, packagePath, sourceFile, varDecl); + functions[funcObj.Name] = funcObj; + } catch (error) { + console.error('Error processing arrow function:', initializer, error); + } + } } @@ -105,8 +127,12 @@ export class FunctionParser { const methods = iface.getMethods(); for (const method of methods) { - const methodObj = this.parseInterfaceMethod(method, moduleName, packagePath, sourceFile); - functions[methodObj.Name] = methodObj; + try { + const methodObj = this.parseInterfaceMethod(method, moduleName, packagePath, sourceFile); + functions[methodObj.Name] = methodObj; + } catch (error) { + console.error('Error processing interface method:', method, error); + } } } @@ -414,7 +440,7 @@ export class FunctionParser { } // External function could not find decls. - if(resolvedSymbol.isExternal) { + if (resolvedSymbol.isExternal) { calls.push(dep); continue; } @@ -467,10 +493,10 @@ export class FunctionParser { if (Node.isIdentifier(expr)) { lastIdentifier = expr; } else if (Node.isPropertyAccessExpression(expr)) { - lastIdentifier = expr.getNameNode(); + lastIdentifier = expr.getNameNode(); } - if(lastIdentifier) { + if (lastIdentifier) { this.processNewCall(node, lastIdentifier, moduleName, packagePath, sourceFile, calls, visited); } } @@ -514,7 +540,7 @@ export class FunctionParser { EndOffset: resolvedSymbol.endOffset } - if(resolvedSymbol.isExternal) { + if (resolvedSymbol.isExternal) { calls.push(dep); return; } @@ -571,7 +597,7 @@ export class FunctionParser { EndOffset: resolvedSymbol.endOffset } - if(resolvedSymbol.isExternal) { + if (resolvedSymbol.isExternal) { calls.push(dep); return; } @@ -603,7 +629,24 @@ export class FunctionParser { const visited = new Set(); // Extract from type references and find their definitions - const typeNodes = node.getDescendantsOfKind(SyntaxKind.Identifier); + const typeNodes: TypeNode[] = node.getDescendantsOfKind(SyntaxKind.TypeReference) + + for (const param of node.getParameters()) { + const t = param.getTypeNode() + if (t) { + typeNodes.push(t) + } + } + + const returnTypeNode = node.getReturnTypeNode(); + if (returnTypeNode) typeNodes.push(returnTypeNode); + + for (const typeParam of node.getTypeParameters()) { + const constraint = typeParam.getConstraint(); + if (constraint) typeNodes.push(constraint); + const def = typeParam.getDefault(); + if (def) typeNodes.push(def); + } for (const typeNode of typeNodes) { // Handle union and intersection types by extracting individual type references @@ -696,7 +739,8 @@ export class FunctionParser { // Global variable assignments (Node.isPropertyAssignment(parent) && parent.getNameNode() === identifier) || - (Node.isShorthandPropertyAssignment(parent) && parent.getNameNode() === identifier) + (Node.isShorthandPropertyAssignment(parent) && parent.getNameNode() === identifier) || + Node.isTypeReference(parent) ) { continue; } diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index cc03038..228ee25 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -1,9 +1,9 @@ -import { - SourceFile, - ClassDeclaration, - InterfaceDeclaration, - TypeAliasDeclaration, - EnumDeclaration, +import { + SourceFile, + ClassDeclaration, + InterfaceDeclaration, + TypeAliasDeclaration, + EnumDeclaration, SyntaxKind, TypeNode, SymbolFlags, @@ -32,37 +32,57 @@ export class TypeParser { // Parse class declarations const classes = sourceFile.getClasses(); for (const cls of classes) { - const typeObj = this.parseClass(cls, moduleName, packagePath, sourceFile); - types[typeObj.Name] = typeObj; + try { + const typeObj = this.parseClass(cls, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } catch (error) { + console.error('Error processing class:', cls, error); + } } // Parse class expressions (anonymous classes) const classExpressions = sourceFile.getDescendantsOfKind(SyntaxKind.ClassExpression); for (let i = 0; i < classExpressions.length; i++) { const classExpr = classExpressions[i]; - const typeObj = this.parseClassExpression(classExpr, moduleName, packagePath, sourceFile, i); - types[typeObj.Name] = typeObj; + try { + const typeObj = this.parseClassExpression(classExpr, moduleName, packagePath, sourceFile, i); + types[typeObj.Name] = typeObj; + } catch (error) { + console.error('Error processing class expression:', classExpr, error); + } } // Parse interface declarations const interfaces = sourceFile.getInterfaces(); for (const iface of interfaces) { - const typeObj = this.parseInterface(iface, moduleName, packagePath, sourceFile); - types[typeObj.Name] = typeObj; + try { + const typeObj = this.parseInterface(iface, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } catch (error) { + console.error('Error processing interface:', iface, error); + } } // Parse type alias declarations const typeAliases = sourceFile.getTypeAliases(); for (const typeAlias of typeAliases) { - const typeObj = this.parseTypeAlias(typeAlias, moduleName, packagePath, sourceFile); - types[typeObj.Name] = typeObj; + try { + const typeObj = this.parseTypeAlias(typeAlias, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } catch (error) { + console.error('Error processing type alias:', typeAlias, error); + } } // Parse enum declarations const enums = sourceFile.getEnums(); for (const enumDecl of enums) { - const typeObj = this.parseEnum(enumDecl, moduleName, packagePath, sourceFile); - types[typeObj.Name] = typeObj; + try { + const typeObj = this.parseEnum(enumDecl, moduleName, packagePath, sourceFile); + types[typeObj.Name] = typeObj; + } catch (error) { + console.error('Error processing enum:', enumDecl, error); + } } return types; @@ -96,12 +116,12 @@ export class TypeParser { // Parse implemented interfaces and extended classes const implementsInterfaces: Dependency[] = []; const extendsClasses: Dependency[] = []; - + const heritageClauses = cls.getHeritageClauses(); for (const clause of heritageClauses) { const clauseType = clause.getToken(); const typeNodes = clause.getTypeNodes(); - + for (const typeNode of typeNodes) { const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); if (clauseType === SyntaxKind.ImplementsKeyword) { @@ -125,7 +145,7 @@ export class TypeParser { // Combine implements and extends into Implements, but filter out external symbols const allImplements = [...implementsInterfaces, ...extendsClasses, ...propertyTypes]; - + return { ModPath: moduleName, PkgPath: this.getPkgPath(packagePath), @@ -214,7 +234,7 @@ export class TypeParser { // Combine extends interfaces and other dependencies into Implements, but filter out external symbols const allImplements = [...extendsInterfaces, ...propertyTypes, ...methodTypes]; - + return { ModPath: moduleName, PkgPath: this.getPkgPath(packagePath), @@ -313,7 +333,7 @@ export class TypeParser { // Extract from identifiers and find their definitions const identifiers = typeNode.getDescendantsOfKind(SyntaxKind.Identifier); - + for (const identifier of identifiers) { const symbol = identifier.getSymbol(); if (!symbol || (symbol.getFlags() & (SymbolFlags.Type | SymbolFlags.TypeAlias | SymbolFlags.TypeLiteral)) === 0) { @@ -342,7 +362,7 @@ export class TypeParser { const defEndOffset = decls[0].getEnd(); visited.add(key); - let dep : Dependency = { + let dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: resolvedSymbol.name, @@ -385,12 +405,12 @@ export class TypeParser { name = symbolName; } } - + const startLine = classExpr.getStartLineNumber(); const startOffset = classExpr.getStart(); const endOffset = classExpr.getEnd(); const content = classExpr.getFullText(); - + // Parse methods const methods: Record = {}; const classMethods = classExpr.getMethods(); @@ -406,15 +426,15 @@ export class TypeParser { // Parse implemented interfaces and extended classes const implementsInterfaces: Dependency[] = []; const extendsClasses: Dependency[] = []; - + const heritageClauses = classExpr.getHeritageClauses(); for (const clause of heritageClauses) { const clauseType = clause.getToken(); const typeNodes = clause.getTypeNodes(); - + for (const typeNode of typeNodes) { const dependencies = this.extractTypeDependencies(typeNode, moduleName, packagePath); - + if (clauseType === SyntaxKind.ImplementsKeyword) { implementsInterfaces.push(...dependencies); } else if (clauseType === SyntaxKind.ExtendsKeyword) { diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts index b2da0c1..b9d0d84 100644 --- a/ts-parser/src/parser/VarParser.ts +++ b/ts-parser/src/parser/VarParser.ts @@ -1,9 +1,9 @@ -import { - SourceFile, - VariableDeclaration, - PropertyDeclaration, - EnumMember, - Node, +import { + SourceFile, + VariableDeclaration, + PropertyDeclaration, + EnumMember, + Node, SyntaxKind, Project, Identifier, @@ -34,19 +34,22 @@ export class VarParser { if (!this.isAtFileLevel(varDecl)) { continue; } - + // Skip if this variable declares a function (arrow function or function expression) const initializer = varDecl.getInitializer(); if (initializer) { - if (initializer.getKind() === SyntaxKind.ArrowFunction || - initializer.getKind() === SyntaxKind.FunctionExpression) { + if (initializer.getKind() === SyntaxKind.ArrowFunction || + initializer.getKind() === SyntaxKind.FunctionExpression) { continue; } } - - const varObjs = this.parseVariableDestructuring(varDecl, moduleName, packagePath, sourceFile); - for (const varObj of varObjs) { - vars[varObj.Name] = varObj; + try { + const varObjs = this.parseVariableDestructuring(varDecl, moduleName, packagePath, sourceFile); + for (const varObj of varObjs) { + vars[varObj.Name] = varObj; + } + } catch (error) { + console.error('Error processing variable:', varDecl, error); } } @@ -57,27 +60,31 @@ export class VarParser { if (!this.isAtFileLevel(cls)) { continue; } - + const properties = cls.getProperties(); for (const prop of properties) { // Skip if this property is not at file level if (!this.isAtFileLevel(prop)) { continue; } - + // Skip if this property declares a function (arrow function or function expression) const initializer = prop.getInitializer(); if (initializer) { - if (initializer.getKind() === SyntaxKind.ArrowFunction || - initializer.getKind() === SyntaxKind.FunctionExpression) { + if (initializer.getKind() === SyntaxKind.ArrowFunction || + initializer.getKind() === SyntaxKind.FunctionExpression) { continue; } } - - const varObjs = this.parsePropertyDestructuring(prop, moduleName, packagePath, sourceFile); - for (const varObj of varObjs) { - vars[varObj.Name] = varObj; + try { + const varObjs = this.parsePropertyDestructuring(prop, moduleName, packagePath, sourceFile); + for (const varObj of varObjs) { + vars[varObj.Name] = varObj; + } + } catch (error) { + console.error('Error processing property:', prop, error); } + } } @@ -88,11 +95,15 @@ export class VarParser { if (!this.isAtFileLevel(enumDecl)) { continue; } - + const members = enumDecl.getMembers(); for (const member of members) { - const memberObj = this.parseEnumMember(member, moduleName, packagePath, sourceFile); - vars[memberObj.Name] = memberObj; + try { + const memberObj = this.parseEnumMember(member, moduleName, packagePath, sourceFile); + vars[memberObj.Name] = memberObj; + } catch (error) { + console.error('Error processing enum member:', member, error); + } } } @@ -101,25 +112,25 @@ export class VarParser { private parseVariableDestructuring(varDecl: VariableDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { const results: UniVar[] = []; - + // Handle destructuring patterns - if (varDecl.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || - varDecl.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { + if (varDecl.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || + varDecl.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { return this.extractDestructuredVariables(varDecl, moduleName, packagePath, sourceFile); } - + // Handle regular variable declarations let name = varDecl.getName(); const sym = varDecl.getSymbol(); if (sym) { name = assignSymbolName(sym); } - + const startLine = varDecl.getStartLineNumber(); const startOffset = varDecl.getStart(); const endOffset = varDecl.getEnd(); const content = varDecl.getFullText(); - + const parent = varDecl.getVariableStatement(); const isExported = parent ? (parent.isExported() || parent.isDefaultExport() || (sym === this.defaultExportedSym && sym !== undefined)) : false; const isConst = parent ? parent.getDeclarationKind() === 'const' : false; @@ -171,31 +182,31 @@ export class VarParser { private parsePropertyDestructuring(prop: PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { const results: UniVar[] = []; - + // Handle destructuring patterns in property declarations - if (prop.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || - prop.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { + if (prop.getNameNode().getKind() === SyntaxKind.ObjectBindingPattern || + prop.getNameNode().getKind() === SyntaxKind.ArrayBindingPattern) { return this.extractDestructuredVariables(prop, moduleName, packagePath, sourceFile); } - + // Handle regular property declarations let name = prop.getName(); const sym = prop.getSymbol(); if (sym) { name = assignSymbolName(sym); } - + const startLine = prop.getStartLineNumber(); const startOffset = prop.getStart(); const endOffset = prop.getEnd(); const content = prop.getFullText(); - + const parent = prop.getParent(); let isExported = false; if (Node.isClassDeclaration(parent)) { isExported = parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined); } - + const isConst = false; const isPointer = this.isPointerType(prop); @@ -249,18 +260,18 @@ export class VarParser { if (sym) { name = assignSymbolName(sym); } - + const startLine = member.getStartLineNumber(); const startOffset = member.getStart(); const endOffset = member.getEnd(); const content = member.getFullText(); - + const parent = member.getParent(); let isExported = false; if (Node.isEnumDeclaration(parent)) { isExported = parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined); } - + const isConst = true; const isPointer = false; @@ -285,13 +296,13 @@ export class VarParser { private extractDestructuredVariables(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniVar[] { const results: UniVar[] = []; const nameNode = node.getNameNode(); - + // Get the initializer for dependency extraction const dependencies = this.extractInitializerDependencies(node, moduleName, packagePath, sourceFile); - + // Recursively extract all identifiers from destructuring patterns this.extractIdentifiersFromPattern(nameNode, node, moduleName, packagePath, sourceFile, dependencies, results, node); - + return results; } @@ -346,14 +357,14 @@ export class VarParser { const startLine = element.getStartLineNumber(); const startOffset = element.getStart(); const endOffset = element.getEnd(); - + let isExported = false; let isConst = false; const symbol = element.getSymbol() if (!symbol) { return null } - + if (Node.isVariableDeclaration(parentNode)) { const parent = parentNode.getVariableStatement(); isExported = parent ? (parent.isExported() || parent.isDefaultExport() || (parent.getSymbol() === this.defaultExportedSym && this.defaultExportedSym !== undefined)) : false; @@ -386,11 +397,11 @@ export class VarParser { private extractInitializerDependencies(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { const dependencies: Dependency[] = []; const visited = new Set(); - + const initializer = node.getInitializer(); if (!initializer) return dependencies; - - + + // Extract single symbol const sourceSymbol = initializer.getSymbol(); if (sourceSymbol) { @@ -398,7 +409,7 @@ export class VarParser { if (resolvedSymbol && !resolvedSymbol.isExternal && resolvedRealSymbol) { // Check if the dependency is defined outside this variable declaration const decls = resolvedRealSymbol.getDeclarations() - if(decls.length > 0) { + if (decls.length > 0) { const defStart = decls[0].getStart(); const defEnd = decls[0].getEnd(); if ( @@ -424,7 +435,7 @@ export class VarParser { } } } - + // Extract identifiers if it's a expression const identifiers = initializer.getDescendantsOfKind(SyntaxKind.Identifier); for (const identifier of identifiers) { @@ -433,21 +444,21 @@ export class VarParser { if (parent && Node.isPropertyAccessExpression(parent) && parent.getNameNode() === identifier) { continue; } - + const symbol = identifier.getSymbol(); if (!symbol) { continue; } const decls = symbol.getDeclarations() - if(decls.length === 0) { + if (decls.length === 0) { continue; } - const isLocal = decls.some(decl => + const isLocal = decls.some(decl => decl.getAncestors().includes(initializer) ); - if(isLocal) { + if (isLocal) { continue } @@ -470,7 +481,7 @@ export class VarParser { dependencies.push(dep); } } - + return dependencies; } @@ -489,7 +500,7 @@ export class VarParser { private isAtFileLevel(node: any): boolean { let parent = node.getParent(); - + while (parent) { const kind = parent.getKind(); // Check if this is a file-level declaration (direct child of SourceFile) @@ -512,10 +523,10 @@ export class VarParser { ) { return false; } - + parent = parent.getParent(); } - + return false; } } \ No newline at end of file diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts index 8ccc8e4..ad460bc 100644 --- a/ts-parser/src/utils/dependency-utils.ts +++ b/ts-parser/src/utils/dependency-utils.ts @@ -15,51 +15,65 @@ export class DependencyUtils { /** * Extract atomic type references from complex type expressions */ - extractAtomicTypeReferences(typeNode: Identifier): Type[] { - - // Make sure it's a type identifier - const symbol = typeNode.getSymbol(); - if (!symbol || (symbol.getFlags() & (SymbolFlags.Type | SymbolFlags.TypeParameter | SymbolFlags.TypeAlias | SymbolFlags.TypeLiteral)) === 0) { - return []; - } + extractAtomicTypeReferences(typeNode: TypeNode): Type[] { const type = typeNode.getType(); const results: Type[] = []; const visited = new Set(); + let avoidUnlimitedRecursion = 0; function visit(t: Type) { - // Make sure it's not visited - if(visited.has(t)) { - return; - } - // If it's a generic type parameter (e.g. T, K, V), skip it - if (t.isTypeParameter()) { - return; - } - visited.add(t); + try { + // avoid unlimited recursion + if(avoidUnlimitedRecursion > 1000) { + return; + } + avoidUnlimitedRecursion++; + // Make sure it's not visited + if(visited.has(t)) { + return; + } + visited.add(t); + // If it's a generic type parameter (e.g. T, K, V), skip it + if (t.isTypeParameter()) { + return; + } + + if(t.isUnion()) { + t.getUnionTypes().forEach(visit); + return; + } + + if (t.isIntersection()) { + t.getIntersectionTypes().forEach(visit); + return; + } - if (t.isUnion && t.isUnion()) { - t.getUnionTypes().forEach(visit); - } else if (t.isIntersection && t.isIntersection()) { - t.getIntersectionTypes().forEach(visit); - } else if (t.isArray && t.isArray()) { - visit(t.getArrayElementTypeOrThrow()); - } else if (t.getAliasTypeArguments && t.getAliasTypeArguments().length > 0) { - t.getAliasTypeArguments().forEach(visit); - } else if (t.getTypeArguments && t.getTypeArguments().length > 0) { - t.getTypeArguments().forEach(visit); - } else { + if (t.isArray()) { + const elem = t.getArrayElementType(); + if (elem) visit(elem); + return; + } + + if (t.isTuple()) { + t.getTupleElements().forEach(visit); + return; + } + + if (t.isObject() && (t.getSymbol()?.getFlags() ?? 0) & SymbolFlags.TypeLiteral) { + t.getProperties().forEach(prop => { + const propType = prop.getTypeAtLocation(typeNode); + visit(propType); + }); + return; + } results.push(t); + } catch (error) { + console.error('Error processing type:', t, error); } } visit(type); return results; } - - private getPkgPath(packagePath: string): string { - const pathUtils = new PathUtils(this.projectRoot); - return pathUtils.getPkgPath(packagePath); - } - } \ No newline at end of file diff --git a/ts-parser/src/utils/test/dependency-utils.test.ts b/ts-parser/src/utils/test/dependency-utils.test.ts index ab94d4b..99b1585 100644 --- a/ts-parser/src/utils/test/dependency-utils.test.ts +++ b/ts-parser/src/utils/test/dependency-utils.test.ts @@ -111,20 +111,4 @@ describe('DependencyUtils', () => { } }); }); - - describe('getPkgPath', () => { - it('should return correct package path', () => { - const { cleanup } = createTestProject(` - const test = 42; - `); - - try { - // Test the private method through public interface - const result = (dependencyUtils as any).getPkgPath('src/utils'); - expect(typeof result).toBe('string'); - } finally { - cleanup(); - } - }); - }); }); \ No newline at end of file diff --git a/ts-parser/test-repo/src/utils/calculator.ts b/ts-parser/test-repo/src/utils/calculator.ts index d9edf02..3469b5f 100644 --- a/ts-parser/test-repo/src/utils/calculator.ts +++ b/ts-parser/test-repo/src/utils/calculator.ts @@ -5,6 +5,8 @@ import * as JSON5 from 'json5'; const MagicNumber = 1e9 + 7; +type ABC = ABC[] + export class Calculator { private history: Array<{ operation: string; result: number; timestamp: Date }> = []; From 745c5e7781194a716bbf06b007b72f948d014209 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sat, 23 Aug 2025 21:01:09 +0800 Subject: [PATCH 11/17] stop collecting property type --- ts-parser/src/parser/TypeParser.ts | 76 +++----------------- ts-parser/src/parser/test/TypeParser.test.ts | 64 ----------------- 2 files changed, 11 insertions(+), 129 deletions(-) diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index 228ee25..e2b0bf8 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -14,15 +14,18 @@ import { Type as UniType, Dependency } from '../types/uniast'; import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; import { PathUtils } from '../utils/path-utils'; import { TypeUtils } from '../utils/type-utils'; +import { DependencyUtils } from '../utils/dependency-utils'; export class TypeParser { private symbolResolver: SymbolResolver; private pathUtils: PathUtils; private defaultExported: Symbol | undefined + private dependencyUtils: DependencyUtils; constructor(projectRoot: string) { this.symbolResolver = new SymbolResolver(null as any, projectRoot); this.pathUtils = new PathUtils(projectRoot); + this.dependencyUtils = new DependencyUtils(this.symbolResolver, projectRoot); } parseTypes(sourceFile: SourceFile, moduleName: string, packagePath: string): Record { @@ -132,19 +135,8 @@ export class TypeParser { } } - // Parse property types - const propertyTypes: Dependency[] = []; - const properties = cls.getProperties(); - for (const prop of properties) { - const propType = prop.getTypeNode(); - if (propType) { - const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); - propertyTypes.push(...typeDependencies); - } - } - // Combine implements and extends into Implements, but filter out external symbols - const allImplements = [...implementsInterfaces, ...extendsClasses, ...propertyTypes]; + const allImplements = [...implementsInterfaces, ...extendsClasses]; return { ModPath: moduleName, @@ -200,40 +192,8 @@ export class TypeParser { } } } - - // Parse property types - const propertyTypes: Dependency[] = []; - const properties = iface.getProperties(); - for (const prop of properties) { - const propType = prop.getTypeNode(); - if (propType) { - const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); - propertyTypes.push(...typeDependencies); - } - } - - // Parse method signatures - const methodTypes: Dependency[] = []; - const methodSignatures = iface.getMethods(); - for (const method of methodSignatures) { - const returnType = method.getReturnTypeNode(); - if (returnType) { - const typeDependencies = this.extractTypeDependencies(returnType, moduleName, packagePath); - methodTypes.push(...typeDependencies); - } - - const parameters = method.getParameters(); - for (const param of parameters) { - const paramType = param.getTypeNode(); - if (paramType) { - const typeDependencies = this.extractTypeDependencies(paramType, moduleName, packagePath); - methodTypes.push(...typeDependencies); - } - } - } - // Combine extends interfaces and other dependencies into Implements, but filter out external symbols - const allImplements = [...extendsInterfaces, ...propertyTypes, ...methodTypes]; + const allImplements = [...extendsInterfaces]; return { ModPath: moduleName, @@ -332,18 +292,14 @@ export class TypeParser { const visited = new Set(); // Extract from identifiers and find their definitions - const identifiers = typeNode.getDescendantsOfKind(SyntaxKind.Identifier); + const types = this.dependencyUtils.extractAtomicTypeReferences(typeNode); - for (const identifier of identifiers) { - const symbol = identifier.getSymbol(); - if (!symbol || (symbol.getFlags() & (SymbolFlags.Type | SymbolFlags.TypeAlias | SymbolFlags.TypeLiteral)) === 0) { + for (const t of types) { + const symbol = t.getSymbol(); + if (!symbol) { continue; } - - const typeName = identifier.getText(); - if (this.isPrimitiveType(typeName)) continue; - - const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, identifier); + const [resolvedSymbol, resolvedRealSymbol] = this.symbolResolver.resolveSymbol(symbol, typeNode); // if symbol is not external, add it to dependencies if (!resolvedSymbol || resolvedSymbol.isExternal) { continue; @@ -443,16 +399,6 @@ export class TypeParser { } } - // Parse property types - const propertyTypes: Dependency[] = []; - const properties = classExpr.getProperties(); - for (const prop of properties) { - const propType = prop.getTypeNode(); - if (propType) { - const typeDependencies = this.extractTypeDependencies(propType, moduleName, packagePath); - propertyTypes.push(...typeDependencies); - } - } return { ModPath: moduleName, @@ -466,7 +412,7 @@ export class TypeParser { TypeKind: 'struct', Content: content, Methods: methods, - Implements: [...implementsInterfaces, ...extendsClasses, ...propertyTypes], + Implements: [...implementsInterfaces, ...extendsClasses], SubStruct: [], InlineStruct: [] }; diff --git a/ts-parser/src/parser/test/TypeParser.test.ts b/ts-parser/src/parser/test/TypeParser.test.ts index 7b33cac..4d2c8ad 100644 --- a/ts-parser/src/parser/test/TypeParser.test.ts +++ b/ts-parser/src/parser/test/TypeParser.test.ts @@ -294,70 +294,6 @@ describe('TypeParser', () => { }); describe('type dependencies', () => { - it('should extract type dependencies from class properties', () => { - const { project, sourceFile, cleanup } = createTestProject(` - class CustomType {} - interface CustomInterface {} - - class PropertyTypes { - customType: CustomType; - customInterface: CustomInterface; - primitive: string; - arrayType: string[]; - unionType: string | number; - genericType: Array; - } - `); - - const parser = new TypeParser(process.cwd()); - let pkgPathAbsFile : string = sourceFile.getFilePath() - pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') - const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) - - const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); - - const propertyTypes = expectToBeDefined(types['PropertyTypes']); - expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); - - const typeNames = expectToBeDefined(propertyTypes.Implements).map(dep => dep.Name); - expect(typeNames).toContain('CustomType'); - expect(typeNames).toContain('CustomInterface'); - - cleanup(); - }); - - it('should extract type dependencies from interface properties', () => { - const { project, sourceFile, cleanup } = createTestProject(` - class CustomType {} - interface CustomInterface {} - - interface PropertyTypes { - customType: CustomType; - customInterface: CustomInterface; - primitive: string; - arrayType: string[]; - unionType: string | number; - genericType: Array; - } - `); - - const parser = new TypeParser(process.cwd()); - let pkgPathAbsFile : string = sourceFile.getFilePath() - pkgPathAbsFile = pkgPathAbsFile.split('/').slice(0, -1).join('/') - const pkgPath = path.relative(process.cwd(), pkgPathAbsFile) - - const types = parser.parseTypes(sourceFile, 'parser-tests', pkgPath); - - const propertyTypes = expectToBeDefined(types['PropertyTypes']); - expect(expectToBeDefined(propertyTypes.Implements).length).toBeGreaterThan(0); - - const typeNames = expectToBeDefined(propertyTypes.Implements).map(dep => dep.Name); - expect(typeNames).toContain('CustomType'); - expect(typeNames).toContain('CustomInterface'); - - cleanup(); - }); - it('should extract type dependencies from type aliases', () => { const { project, sourceFile, cleanup } = createTestProject(` class CustomType {} From bc4d2a2b732f8cc64804e2c4bc053177f00a50db Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sun, 24 Aug 2025 17:59:54 +0800 Subject: [PATCH 12/17] add eslint rules for ts parser --- ts-parser/.eslintrc.json | 34 ++++++++++++++++++ ts-parser/.prettierignore | 33 +++++++++++++++++ ts-parser/.prettierrc | 10 ++++++ ts-parser/src/parser/FunctionParser.ts | 40 ++++++++++----------- ts-parser/src/parser/ModuleParser.ts | 21 +++++------ ts-parser/src/parser/RepositoryParser.ts | 36 +++++++++---------- ts-parser/src/parser/TypeParser.ts | 7 ++-- ts-parser/src/parser/VarParser.ts | 14 ++++---- ts-parser/src/utils/dependency-utils.ts | 4 +-- ts-parser/src/utils/symbol-resolver.ts | 19 +++++----- ts-parser/src/utils/tsconfig-cache.ts | 2 ++ ts-parser/src/utils/typescript-structure.ts | 2 +- 12 files changed, 151 insertions(+), 71 deletions(-) create mode 100644 ts-parser/.eslintrc.json create mode 100644 ts-parser/.prettierignore create mode 100644 ts-parser/.prettierrc diff --git a/ts-parser/.eslintrc.json b/ts-parser/.eslintrc.json new file mode 100644 index 0000000..79d8005 --- /dev/null +++ b/ts-parser/.eslintrc.json @@ -0,0 +1,34 @@ +{ + "root": true, + "parser": "@typescript-eslint/parser", + "plugins": ["@typescript-eslint"], + "extends": [ + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "prettier" + ], + "parserOptions": { + "ecmaVersion": 2022, + "sourceType": "module" + }, + "rules": { + "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], + "@typescript-eslint/no-explicit-any": "warn", + "prefer-const": "error", + "no-var": "error", + "object-shorthand": "error", + "prefer-arrow-callback": "error", + "@typescript-eslint/ban-types": "off" + }, + "env": { + "node": true, + "es2022": true + }, + "ignorePatterns": [ + "dist/", + "node_modules/", + "**/*.js", + "**/*.d.ts", + "coverage/" + ] +} \ No newline at end of file diff --git a/ts-parser/.prettierignore b/ts-parser/.prettierignore new file mode 100644 index 0000000..fb8ff8f --- /dev/null +++ b/ts-parser/.prettierignore @@ -0,0 +1,33 @@ +# Dependencies +node_modules/ + +# Build outputs +dist/ +build/ + +# Test coverage +coverage/ + +# Logs +*.log + +# Environment files +.env* + +# Package files +package-lock.json +yarn.lock + +# Generated files +*.d.ts +*.js.map +*.ts.map + +# Temporary files +*.tmp +*.temp +.DS_Store + +# IDE +.vscode/ +.idea/ \ No newline at end of file diff --git a/ts-parser/.prettierrc b/ts-parser/.prettierrc new file mode 100644 index 0000000..c2ca384 --- /dev/null +++ b/ts-parser/.prettierrc @@ -0,0 +1,10 @@ +{ + "semi": true, + "trailingComma": "es5", + "singleQuote": true, + "printWidth": 100, + "tabWidth": 2, + "useTabs": false, + "bracketSpacing": true, + "arrowParens": "avoid" +} \ No newline at end of file diff --git a/ts-parser/src/parser/FunctionParser.ts b/ts-parser/src/parser/FunctionParser.ts index 3cc1e05..0f6c039 100644 --- a/ts-parser/src/parser/FunctionParser.ts +++ b/ts-parser/src/parser/FunctionParser.ts @@ -58,7 +58,7 @@ export class FunctionParser { // Parse method declarations in classes const classes = sourceFile.getClasses(); for (const cls of classes) { - let sym = cls.getSymbol(); + const sym = cls.getSymbol(); let className = "" if (sym) { className = assignSymbolName(sym) @@ -104,7 +104,7 @@ export class FunctionParser { for (const varDecl of variableDeclarations) { const initializer = varDecl.getInitializer(); if (initializer && (Node.isArrowFunction(initializer) || Node.isFunctionExpression(initializer))) { - let sym = varDecl.getSymbol() + const sym = varDecl.getSymbol() let funcName = "" if (sym) { funcName = assignSymbolName(sym) @@ -140,7 +140,7 @@ export class FunctionParser { } private parseFunction(func: FunctionDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): UniFunction { - let symbol = func.getSymbol(); + const symbol = func.getSymbol(); let name = 'anonymous_' + func.getStart(); if (symbol) { name = assignSymbolName(symbol) @@ -189,7 +189,7 @@ export class FunctionParser { } private parseMethod(method: MethodDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, className: string): UniFunction { - let symbol = method.getSymbol(); + const symbol = method.getSymbol(); let methodName = "" if (symbol) { methodName = assignSymbolName(symbol) @@ -254,7 +254,7 @@ export class FunctionParser { } private parseInterfaceMethod(method: MethodSignature, moduleName: string, packagePath: string, sourceFile: SourceFile): UniFunction { - let symbol = method.getSymbol(); + const symbol = method.getSymbol(); let methodName = "" if (symbol) { methodName = assignSymbolName(symbol) @@ -290,7 +290,7 @@ export class FunctionParser { } private parseConstructor(ctor: ConstructorDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile, className: string): UniFunction { - let symbol = ctor.getSymbol(); + const symbol = ctor.getSymbol(); let name = "" if (symbol) { name = assignSymbolName(symbol) @@ -386,14 +386,14 @@ export class FunctionParser { } // TODO: parse parameters - private parseParameters(parameters: ParameterDeclaration[], moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + private parseParameters(_parameters: ParameterDeclaration[], _moduleName: string, _packagePath: string, _sourceFile: SourceFile): Dependency[] { const dependencies: Dependency[] = []; return dependencies; } // TODO: parse return types - private parseReturnTypes(func: FunctionDeclaration | MethodSignature, moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + private parseReturnTypes(_func: FunctionDeclaration | MethodSignature, _moduleName: string, _packagePath: string, _sourceFile: SourceFile): Dependency[] { const results: Dependency[] = []; return results; } @@ -402,7 +402,7 @@ export class FunctionParser { node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, moduleName: string, packagePath: string, - sourceFile: SourceFile + _sourceFile: SourceFile ): Dependency[] { const calls: Dependency[] = []; const visited = new Set(); @@ -429,7 +429,7 @@ export class FunctionParser { } visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: resolvedSymbol.name, @@ -509,7 +509,7 @@ export class FunctionParser { newExpr: Identifier, moduleName: string, packagePath: string, - sourceFile: SourceFile, + _sourceFile: SourceFile, calls: Dependency[], visited: Set ): void { @@ -521,7 +521,7 @@ export class FunctionParser { if (!resolvedSymbol) return; // Handle method names like 'getX' -> 'getX' - let nameFormat = resolvedSymbol.name; + const nameFormat = resolvedSymbol.name; const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${nameFormat}`; @@ -530,7 +530,7 @@ export class FunctionParser { } visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: nameFormat, @@ -566,7 +566,7 @@ export class FunctionParser { propAccess: PropertyAccessExpression, moduleName: string, packagePath: string, - sourceFile: SourceFile, + _sourceFile: SourceFile, calls: Dependency[], visited: Set ): void { @@ -578,7 +578,7 @@ export class FunctionParser { if (!resolvedSymbol) return; // Handle method names like 'getX' -> 'getX' - let nameFormat = resolvedSymbol.name; + const nameFormat = resolvedSymbol.name; const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${nameFormat}`; @@ -587,7 +587,7 @@ export class FunctionParser { } visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: nameFormat, @@ -623,7 +623,7 @@ export class FunctionParser { node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, moduleName: string, packagePath: string, - sourceFile: SourceFile + _sourceFile: SourceFile ): Dependency[] { const types: Dependency[] = []; const visited = new Set(); @@ -683,7 +683,7 @@ export class FunctionParser { } visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: resolvedSymbol.name, @@ -712,7 +712,7 @@ export class FunctionParser { node: FunctionDeclaration | MethodDeclaration | ConstructorDeclaration | ArrowFunction | FunctionExpression, moduleName: string, packagePath: string, - sourceFile: SourceFile + _sourceFile: SourceFile ): Dependency[] { const body = node.getBody(); if (!body) return []; @@ -795,7 +795,7 @@ export class FunctionParser { visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: resolvedSymbol.name, diff --git a/ts-parser/src/parser/ModuleParser.ts b/ts-parser/src/parser/ModuleParser.ts index 936125a..81d8410 100644 --- a/ts-parser/src/parser/ModuleParser.ts +++ b/ts-parser/src/parser/ModuleParser.ts @@ -1,7 +1,7 @@ import * as path from 'path'; import * as fs from 'fs'; -import { Project, SourceFile, SyntaxKind } from 'ts-morph'; -import { Module, Package, Import } from '../types/uniast'; +import { Project, SourceFile } from 'ts-morph'; +import { Module, Package } from '../types/uniast'; import { PackageParser } from './PackageParser'; import { TypeScriptStructureAnalyzer } from '../utils/typescript-structure'; import { TsConfigCache } from '../utils/tsconfig-cache'; @@ -72,7 +72,7 @@ export class ModuleParser { Object.assign(dependencies, packageJson.peerDependencies); } - let pathUitl = new PathUtils(this.projectRoot) + const pathUitl = new PathUtils(this.projectRoot) // Build files map with detailed import analysis const files: Record = {}; @@ -99,12 +99,8 @@ export class ModuleParser { }; } - private extractImports(sourceFile: SourceFile, modulePath: string): Array<{ Path: string }> { + private extractImports(sourceFile: SourceFile, _modulePath: string): Array<{ Path: string }> { const imports: Array<{ Path: string }> = []; - const sourceFilePath = sourceFile.getFilePath(); - - // Cache path aliases for this module - const pathAliases = this.tsConfigCache.getPathAliases(modulePath); // Track unique import paths to avoid duplicates const uniquePaths = new Set(); @@ -115,7 +111,12 @@ export class ModuleParser { const originalPath = importDecl.getModuleSpecifierValue(); const resolvedPath = importDecl.getModuleSpecifierSourceFile()?.getFilePath(); if (resolvedPath) { - let relativePath = path.relative(this.projectRoot, resolvedPath); + const relativePath = path.relative(this.projectRoot, resolvedPath); + + if(uniquePaths.has(relativePath)) { + continue; + } + uniquePaths.add(relativePath); imports.push({ Path: relativePath }); } else { imports.push({ Path: "external:" + originalPath }); @@ -129,7 +130,7 @@ export class ModuleParser { if (originalPath) { const resolvedPath = exportDecl.getModuleSpecifierSourceFile()?.getFilePath(); if (resolvedPath) { - let relativePath = path.relative(this.projectRoot, resolvedPath); + const relativePath = path.relative(this.projectRoot, resolvedPath); imports.push({ Path: relativePath }); } else { imports.push({ Path: "external:" + originalPath }); diff --git a/ts-parser/src/parser/RepositoryParser.ts b/ts-parser/src/parser/RepositoryParser.ts index 81f7986..ae74076 100644 --- a/ts-parser/src/parser/RepositoryParser.ts +++ b/ts-parser/src/parser/RepositoryParser.ts @@ -1,7 +1,7 @@ import { Project, ts } from 'ts-morph'; import * as path from 'path'; import * as fs from 'fs'; -import { Repository, Node, Relation, Identity, Function, Type, Var } from '../types/uniast'; +import { Repository, Node, Relation, Identity, Function } from '../types/uniast'; import { ModuleParser } from './ModuleParser'; import { TsConfigCache } from '../utils/tsconfig-cache'; @@ -137,10 +137,10 @@ export class RepositoryParser { private buildGlobalGraph(repository: Repository): void { // First pass: Create all nodes from functions, types, and variables - for (const [moduleKey, module] of Object.entries(repository.Modules)) { - for (const [packageKey, pkg] of Object.entries(module.Packages)) { + for (const [, module] of Object.entries(repository.Modules)) { + for (const [, pkg] of Object.entries(module.Packages)) { // Add functions to graph - for (const [funcName, func] of Object.entries(pkg.Functions)) { + for (const [, func] of Object.entries(pkg.Functions)) { const nodeKey = this.createNodeKey(func.ModPath, func.PkgPath, func.Name); const node: Node = { ModPath: func.ModPath, @@ -157,7 +157,7 @@ export class RepositoryParser { } // Add types to graph - for (const [typeName, type] of Object.entries(pkg.Types)) { + for (const [, type] of Object.entries(pkg.Types)) { const nodeKey = this.createNodeKey(type.ModPath, type.PkgPath, type.Name); const node: Node = { ModPath: type.ModPath, @@ -175,7 +175,7 @@ export class RepositoryParser { } // Add variables to graph - for (const [varName, variable] of Object.entries(pkg.Vars)) { + for (const [, variable] of Object.entries(pkg.Vars)) { const nodeKey = this.createNodeKey(variable.ModPath, variable.PkgPath, variable.Name); const node: Node = { ModPath: variable.ModPath, @@ -216,7 +216,7 @@ export class RepositoryParser { }; } - private extractDependenciesFromFunction(func: Function, repository: Repository): Relation[] { + private extractDependenciesFromFunction(func: Function, _repository: Repository): Relation[] { const dependencies: Relation[] = []; // Extract from function calls @@ -250,7 +250,7 @@ export class RepositoryParser { return dependencies; } - private extractReferencesFromFunction(func: Function, repository: Repository): Relation[] { + private extractReferencesFromFunction(func: Function, _repository: Repository): Relation[] { const references: Relation[] = []; // Extract from parameters @@ -332,17 +332,15 @@ export class RepositoryParser { // Add references to the missing node const references: Relation[] = []; - for (const [sourceKey, relations] of referringNodes) { - for (const relation of relations) { - const sourceNode = repository.Graph[sourceKey]; - if (sourceNode) { - references.push({ - ModPath: sourceNode.ModPath, - PkgPath: sourceNode.PkgPath, - Name: sourceNode.Name, - Kind: 'Dependency' - }); - } + for (const [sourceKey, ] of referringNodes) { + const sourceNode = repository.Graph[sourceKey]; + if (sourceNode) { + references.push({ + ModPath: sourceNode.ModPath, + PkgPath: sourceNode.PkgPath, + Name: sourceNode.Name, + Kind: 'Dependency' + }); } } missingNode.References = references; diff --git a/ts-parser/src/parser/TypeParser.ts b/ts-parser/src/parser/TypeParser.ts index e2b0bf8..e257002 100644 --- a/ts-parser/src/parser/TypeParser.ts +++ b/ts-parser/src/parser/TypeParser.ts @@ -6,7 +6,6 @@ import { EnumDeclaration, SyntaxKind, TypeNode, - SymbolFlags, ClassExpression, Symbol } from 'ts-morph'; @@ -23,6 +22,7 @@ export class TypeParser { private dependencyUtils: DependencyUtils; constructor(projectRoot: string) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any this.symbolResolver = new SymbolResolver(null as any, projectRoot); this.pathUtils = new PathUtils(projectRoot); this.dependencyUtils = new DependencyUtils(this.symbolResolver, projectRoot); @@ -105,6 +105,7 @@ export class TypeParser { const isExported = cls.isExported() || cls.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); // Parse methods + // eslint-disable-next-line @typescript-eslint/no-explicit-any const methods: Record = {}; const classMethods = cls.getMethods(); for (const method of classMethods) { @@ -169,6 +170,7 @@ export class TypeParser { const isExported = iface.isExported() || iface.isDefaultExport() || (sym === this.defaultExported && sym !== undefined); // Parse methods + // eslint-disable-next-line @typescript-eslint/no-explicit-any const methods: Record = {}; const interfaceMethods = iface.getMethods(); for (const method of interfaceMethods) { @@ -318,7 +320,7 @@ export class TypeParser { const defEndOffset = decls[0].getEnd(); visited.add(key); - let dep: Dependency = { + const dep: Dependency = { ModPath: resolvedSymbol.moduleName || moduleName, PkgPath: this.getPkgPath(resolvedSymbol.packagePath || packagePath), Name: resolvedSymbol.name, @@ -368,6 +370,7 @@ export class TypeParser { const content = classExpr.getFullText(); // Parse methods + // eslint-disable-next-line @typescript-eslint/no-explicit-any const methods: Record = {}; const classMethods = classExpr.getMethods(); for (const method of classMethods) { diff --git a/ts-parser/src/parser/VarParser.ts b/ts-parser/src/parser/VarParser.ts index b9d0d84..e2b82ff 100644 --- a/ts-parser/src/parser/VarParser.ts +++ b/ts-parser/src/parser/VarParser.ts @@ -10,7 +10,7 @@ import { Symbol, } from 'ts-morph'; import { Var as UniVar, Dependency } from '../types/uniast'; -import { assignSymbolName, ResolvedSymbol, SymbolResolver } from '../utils/symbol-resolver'; +import { assignSymbolName, SymbolResolver } from '../utils/symbol-resolver'; import { PathUtils } from '../utils/path-utils'; export class VarParser { @@ -142,7 +142,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(typeSymbol, varDecl); + const [resolvedSymbol, ] = this.symbolResolver.resolveSymbol(typeSymbol, varDecl); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -216,7 +216,7 @@ export class VarParser { if (typeNode) { const typeSymbol = typeNode.getSymbol(); if (typeSymbol) { - const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(typeSymbol, prop); + const [resolvedSymbol, ] = this.symbolResolver.resolveSymbol(typeSymbol, prop); if (resolvedSymbol && !resolvedSymbol.isExternal) { type = { ModPath: resolvedSymbol.moduleName || moduleName, @@ -394,7 +394,7 @@ export class VarParser { }; } - private extractInitializerDependencies(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, sourceFile: SourceFile): Dependency[] { + private extractInitializerDependencies(node: VariableDeclaration | PropertyDeclaration, moduleName: string, packagePath: string, _sourceFile: SourceFile): Dependency[] { const dependencies: Dependency[] = []; const visited = new Set(); @@ -462,7 +462,7 @@ export class VarParser { continue } - const [resolvedSymbol, _] = this.symbolResolver.resolveSymbol(symbol, node); + const [resolvedSymbol, ] = this.symbolResolver.resolveSymbol(symbol, node); if (resolvedSymbol && !resolvedSymbol.isExternal) { const key = `${resolvedSymbol.moduleName}?${resolvedSymbol.packagePath}#${resolvedSymbol.name}`; if (visited.has(key)) { @@ -485,7 +485,7 @@ export class VarParser { return dependencies; } - private isPointerType(_: any): boolean { + private isPointerType(_: T): boolean { return false; } @@ -498,7 +498,7 @@ export class VarParser { } - private isAtFileLevel(node: any): boolean { + private isAtFileLevel(node: T): boolean { let parent = node.getParent(); while (parent) { diff --git a/ts-parser/src/utils/dependency-utils.ts b/ts-parser/src/utils/dependency-utils.ts index ad460bc..0bddc0f 100644 --- a/ts-parser/src/utils/dependency-utils.ts +++ b/ts-parser/src/utils/dependency-utils.ts @@ -1,7 +1,5 @@ -import { Identifier, Node, SymbolFlags, SyntaxKind, Type, TypeNode, TypeReferenceNode, VariableDeclaration } from 'ts-morph'; -import { Dependency } from '../types/uniast'; +import { SymbolFlags, Type, TypeNode } from 'ts-morph'; import { SymbolResolver } from './symbol-resolver'; -import { PathUtils } from './path-utils'; export class DependencyUtils { private symbolResolver: SymbolResolver; diff --git a/ts-parser/src/utils/symbol-resolver.ts b/ts-parser/src/utils/symbol-resolver.ts index 00702c0..f2483f7 100644 --- a/ts-parser/src/utils/symbol-resolver.ts +++ b/ts-parser/src/utils/symbol-resolver.ts @@ -1,4 +1,4 @@ -import { Project, Symbol, Node, SyntaxKind, SymbolFlags, Identifier, PropertyAccessExpression, VariableDeclaration, PropertyDeclaration } from 'ts-morph'; +import { Project, Symbol, Node, SyntaxKind, SymbolFlags } from 'ts-morph'; import * as path from 'path'; import * as fs from 'fs'; import * as JSON5 from 'json5'; @@ -21,6 +21,7 @@ export class SymbolResolver { private projectRoot: string; private resolutionCache = new Map(); private resolutionSymbolCache = new Map(); + // eslint-disable-next-line @typescript-eslint/no-explicit-any private packageJsonCache = new Map(); private mainPackageName: string; private cannotResolveSymbolNames: Set = new Set(); @@ -279,7 +280,7 @@ export class SymbolResolver { const symbolNameCache = new Map(); export function assignSymbolName(symbol: Symbol): string { - let decls = symbol.getDeclarations() + const decls = symbol.getDeclarations() if(decls.length === 0) { return symbol.getName() } @@ -324,9 +325,9 @@ export function assignSymbolName(symbol: Symbol): string { // Handle default export functions/classes if((Node.isFunctionDeclaration(firstDecl) || Node.isClassDeclaration(firstDecl)) && - (firstDecl as any).isDefaultExport && rawName === 'default') { + firstDecl.isDefaultExport() && rawName === 'default') { // For default exports, use the actual name if available - const actualName = (firstDecl as any).getName?.() || (firstDecl as any).name?.getText?.(); + const actualName = firstDecl.getName(); if (actualName) { rawName = actualName; } @@ -345,12 +346,12 @@ export function assignSymbolName(symbol: Symbol): string { } const getDeclsPos = (symbol: Symbol) => { - let decls_pos = [] - for (let decl of symbol.getDeclarations()) { - decls_pos.push(decl.getStart()) + const declsPos = [] + for (const decl of symbol.getDeclarations()) { + declsPos.push(decl.getStart()) } - decls_pos.sort((a, b) => a - b) - return decls_pos + declsPos.sort((a, b) => a - b) + return declsPos } const arr1 = getDeclsPos(symbol) diff --git a/ts-parser/src/utils/tsconfig-cache.ts b/ts-parser/src/utils/tsconfig-cache.ts index 9b537a2..249fd77 100644 --- a/ts-parser/src/utils/tsconfig-cache.ts +++ b/ts-parser/src/utils/tsconfig-cache.ts @@ -5,11 +5,13 @@ import { ts } from 'ts-morph'; export interface TsConfigData { + // eslint-disable-next-line @typescript-eslint/no-explicit-any compilerOptions?: any; paths?: Record; rootDir?: string; outDir?: string; fileNames?: string[]; + // eslint-disable-next-line @typescript-eslint/no-explicit-any [key: string]: any; } diff --git a/ts-parser/src/utils/typescript-structure.ts b/ts-parser/src/utils/typescript-structure.ts index 7dabe18..2ade3a3 100644 --- a/ts-parser/src/utils/typescript-structure.ts +++ b/ts-parser/src/utils/typescript-structure.ts @@ -14,6 +14,7 @@ export interface ModuleInfo { name: string; version: string; path: string; + // eslint-disable-next-line @typescript-eslint/no-explicit-any packageJson: any; isExternal: boolean; } @@ -121,7 +122,6 @@ export class TypeScriptStructureAnalyzer { // Original behavior when no srcPatterns provided const dirs: string[] = []; - const packageJson = module.packageJson; // Get tsconfig.json configuration const config = this.tsConfigCache.getTsConfig(module.path); From 8559b97d22153a71fe75e9ba22487f34e77b11a7 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sun, 24 Aug 2025 22:24:04 +0800 Subject: [PATCH 13/17] update node dependency --- ts-parser/package-lock.json | 13 +++++++++++++ ts-parser/package.json | 1 + 2 files changed, 14 insertions(+) diff --git a/ts-parser/package-lock.json b/ts-parser/package-lock.json index f7461ec..0fb367b 100644 --- a/ts-parser/package-lock.json +++ b/ts-parser/package-lock.json @@ -20,6 +20,7 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.0.0", + "eslint-config-prettier": "^10.1.8", "jest": "^29.0.0", "ts-jest": "^29.0.0", "ts-node": "^10.9.0", @@ -2452,6 +2453,18 @@ "url": "https://opencollective.com/eslint" } }, + "node_modules/eslint-config-prettier": { + "version": "10.1.8", + "resolved": "https://bnpm.byted.org/eslint-config-prettier/-/eslint-config-prettier-10.1.8.tgz", + "integrity": "sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==", + "dev": true, + "bin": { + "eslint-config-prettier": "bin/cli.js" + }, + "peerDependencies": { + "eslint": ">=7.0.0" + } + }, "node_modules/eslint-scope": { "version": "7.2.2", "resolved": "https://bnpm.byted.org/eslint-scope/-/eslint-scope-7.2.2.tgz", diff --git a/ts-parser/package.json b/ts-parser/package.json index b85e0c2..b4471fd 100644 --- a/ts-parser/package.json +++ b/ts-parser/package.json @@ -34,6 +34,7 @@ "@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/parser": "^6.0.0", "eslint": "^8.0.0", + "eslint-config-prettier": "^10.1.8", "jest": "^29.0.0", "ts-jest": "^29.0.0", "ts-node": "^10.9.0", From 61b5f93299235757a8a8f9f87298eef5d52bcdea Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sun, 24 Aug 2025 22:25:55 +0800 Subject: [PATCH 14/17] suppress lint any warning --- ts-parser/src/parser/ModuleParser.ts | 2 ++ ts-parser/src/parser/PackageParser.ts | 3 +++ 2 files changed, 5 insertions(+) diff --git a/ts-parser/src/parser/ModuleParser.ts b/ts-parser/src/parser/ModuleParser.ts index 81d8410..d35acdf 100644 --- a/ts-parser/src/parser/ModuleParser.ts +++ b/ts-parser/src/parser/ModuleParser.ts @@ -24,6 +24,7 @@ export class ModuleParser { async parseModule(modulePath: string, relativeDir: string, options: { loadExternalSymbols?: boolean, noDist?: boolean, srcPatterns?: string[] } = {}): Promise { const packageJsonPath = path.join(modulePath, 'package.json'); + // eslint-disable-next-line @typescript-eslint/no-explicit-any let packageJson: any = {}; if (fs.existsSync(packageJsonPath)) { @@ -75,6 +76,7 @@ export class ModuleParser { const pathUitl = new PathUtils(this.projectRoot) // Build files map with detailed import analysis + // eslint-disable-next-line @typescript-eslint/no-explicit-any const files: Record = {}; for (const [filePath, fileInfo] of structure.files) { const sourceFile = this.project.addSourceFileAtPath(filePath); diff --git a/ts-parser/src/parser/PackageParser.ts b/ts-parser/src/parser/PackageParser.ts index ce30efb..e436783 100644 --- a/ts-parser/src/parser/PackageParser.ts +++ b/ts-parser/src/parser/PackageParser.ts @@ -22,8 +22,11 @@ export class PackageParser { isMain: boolean, isTest: boolean ): Promise { + // eslint-disable-next-line @typescript-eslint/no-explicit-any const functions: Record = {}; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const types: Record = {}; + // eslint-disable-next-line @typescript-eslint/no-explicit-any const vars: Record = {}; for (const sourceFile of sourceFiles) { From ab581a23c0bb256114d765cb56a8624c9e19eead Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Sun, 24 Aug 2025 22:34:17 +0800 Subject: [PATCH 15/17] configure prettier ignore file --- ts-parser/.prettierignore | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/ts-parser/.prettierignore b/ts-parser/.prettierignore index fb8ff8f..508a90c 100644 --- a/ts-parser/.prettierignore +++ b/ts-parser/.prettierignore @@ -3,10 +3,15 @@ node_modules/ # Build outputs dist/ -build/ -# Test coverage -coverage/ +# Test files and directories +**/*.test.ts +**/*.test.js +**/*.spec.ts +**/*.spec.js +**/test/ +**/tests/ +test-repo/ # Logs *.log From 03850786e5ecb995d85e24b7e22e97d7a0f23386 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Wed, 27 Aug 2025 22:07:22 +0800 Subject: [PATCH 16/17] add parse logic for abcoder parser, depend on ts-parser package --- lang/parse.go | 11 +++++++++ lang/uniast/ast.go | 13 +++++++---- main.go | 53 ++++++++++++++++++++++++++++++++++++++++++ ts-parser/package.json | 9 ++++--- 4 files changed, 78 insertions(+), 8 deletions(-) diff --git a/lang/parse.go b/lang/parse.go index 9ef9530..0afa5be 100644 --- a/lang/parse.go +++ b/lang/parse.go @@ -44,6 +44,17 @@ type ParseOptions struct { collect.CollectOption // specify the repo id RepoID string + + // TS options + // tsconfig string + TSParseOptions +} + +type TSParseOptions struct { + // tsconfig path + TSConfig string + // srcDir path + TSSrcDir []string } func Parse(ctx context.Context, uri string, args ParseOptions) ([]byte, error) { diff --git a/lang/uniast/ast.go b/lang/uniast/ast.go index 394acea..158aa2e 100644 --- a/lang/uniast/ast.go +++ b/lang/uniast/ast.go @@ -27,11 +27,12 @@ import ( type Language string const ( - Golang Language = "go" - Rust Language = "rust" - Cxx Language = "cxx" - Python Language = "python" - Unknown Language = "" + Golang Language = "go" + Rust Language = "rust" + Cxx Language = "cxx" + Python Language = "python" + TypeScript Language = "typescript" + Unknown Language = "" ) func (l Language) String() string { @@ -64,6 +65,8 @@ func NewLanguage(lang string) (l Language) { return Cxx case "python": return Python + case "ts", "typescript", "javascript", "js": + return TypeScript default: return Unknown } diff --git a/main.go b/main.go index 555ba07..740c706 100644 --- a/main.go +++ b/main.go @@ -35,6 +35,7 @@ import ( "flag" "fmt" "os" + "os/exec" "path/filepath" "strings" @@ -77,6 +78,8 @@ func main() { flags.BoolVar(&opts.LoadByPackages, "load-by-packages", false, "load by packages (only works for Go now)") flags.Var((*StringArray)(&opts.Excludes), "exclude", "exclude files or directories, support multiple values") flags.StringVar(&opts.RepoID, "repo-id", "", "specify the repo id") + flags.StringVar(&opts.TSConfig, "tsconfig", "", "tsconfig path (only works for TS now)") + flags.Var((*StringArray)(&opts.TSSrcDir), "ts-src-dir", "src-dir path (only works for TS now)") var wopts lang.WriteOptions flags.StringVar(&wopts.Compiler, "compiler", "", "destination compiler path.") @@ -110,6 +113,15 @@ func main() { } opts.Language = language + + if language == uniast.TypeScript { + if err := parseTSProject(context.Background(), uri, opts, flagOutput); err != nil { + log.Error("Failed to parse: %v\n", err) + os.Exit(1) + } + return + } + if flagLsp != nil { opts.LSP = *flagLsp } @@ -252,3 +264,44 @@ func (s *StringArray) Set(value string) error { func (s *StringArray) String() string { return strings.Join(*s, ",") } + +func parseTSProject(ctx context.Context, repoPath string, opts lang.ParseOptions, outputFlag *string) error { + if outputFlag == nil { + return fmt.Errorf("output path is required") + } + + parserPath, err := exec.LookPath("abcoder-ts-parser") + if err != nil { + log.Info("abcoder-ts-parser not found, installing...") + cmd := exec.Command("npm", "install", "-g", "abcoder-ts-parser") + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + if err := cmd.Run(); err != nil { + return fmt.Errorf("failed to install abcoder-ts-parser: %v", err) + } + parserPath, err = exec.LookPath("abcoder-ts-parser") + if err != nil { + return fmt.Errorf("failed to find abcoder-ts-parser after installation: %v", err) + } + } + + args := []string{"parse", repoPath} + if len(opts.TSSrcDir) > 0 { + args = append(args, "--src", strings.Join(opts.TSSrcDir, ",")) + } + if opts.TSConfig != "" { + args = append(args, "--tsconfig", opts.TSConfig) + } + if *outputFlag != "" { + args = append(args, "--output", *outputFlag) + } + + cmd := exec.CommandContext(ctx, parserPath, args...) + cmd.Env = append(os.Environ(), "NODE_OPTIONS=--max-old-space-size=65536") + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + + log.Info("Running abcoder-ts-parser with args: %v", args) + + return cmd.Run() +} diff --git a/ts-parser/package.json b/ts-parser/package.json index b4471fd..31189a7 100644 --- a/ts-parser/package.json +++ b/ts-parser/package.json @@ -1,9 +1,12 @@ { "name": "abcoder-ts-parser", - "version": "1.0.0", + "version": "0.0.2", "description": "TypeScript AST parser for UNIAST v0.1.3 specification", "main": "dist/index.js", "types": "dist/index.d.ts", + "bin": { + "abcoder-ts-parser": "dist/index.js" + }, "scripts": { "build": "tsc", "dev": "ts-node src/index.ts", @@ -20,8 +23,8 @@ "parser", "uniast" ], - "author": "", - "license": "MIT", + "author": "angrychow", + "license": "ALv2", "dependencies": { "commander": "^11.0.0", "json5": "^2.2.3", From f1f7c24f736f6efaedd4c97820fa83a4d0272047 Mon Sep 17 00:00:00 2001 From: Pu Junsong Date: Fri, 29 Aug 2025 11:28:19 +0800 Subject: [PATCH 17/17] skip unstable unit test --- .github/workflows/go-test.yml | 2 +- ts-parser/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go-test.yml b/.github/workflows/go-test.yml index 8d495ba..5eda12b 100644 --- a/.github/workflows/go-test.yml +++ b/.github/workflows/go-test.yml @@ -22,7 +22,7 @@ jobs: # TestParser_NodeFieldsConsistency: # Vars.Content only includes name, not whole body SKIPPED_TESTS: >- - TestPatcher|TestCases|Test_goParser_ParseNode|TestParser_NodeFieldsConsistency + TestPatcher|TestCases|Test_goParser_ParseNode|TestParser_NodeFieldsConsistency|TestRustLSP steps: - name: Checkout code diff --git a/ts-parser/package.json b/ts-parser/package.json index 31189a7..3d19986 100644 --- a/ts-parser/package.json +++ b/ts-parser/package.json @@ -1,6 +1,6 @@ { "name": "abcoder-ts-parser", - "version": "0.0.2", + "version": "0.0.3", "description": "TypeScript AST parser for UNIAST v0.1.3 specification", "main": "dist/index.js", "types": "dist/index.d.ts",