├── .gitignore ├── .npmignore ├── .vscode └── settings.json ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── LICENSE ├── README.md ├── SECURITY.md ├── SUPPORT.md ├── package-lock.json ├── package.json ├── pipeline.yml ├── src ├── bin.mts ├── cli │ ├── args.mts │ ├── config.mts │ ├── coverage.mts │ ├── error.mts │ ├── gatherFiles.mts │ ├── platform │ │ ├── desktop.mts │ │ └── index.mts │ ├── resolver.mts │ └── util.mts ├── config.cts ├── fullJsonStreamReporter.cts ├── fullJsonStreamReporterTypes.cts ├── index.cts ├── index.mts └── runner.cts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | .pnpm-debug.log* 9 | 10 | # Diagnostic reports (https://nodejs.org/api/report.html) 11 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 12 | 13 | # Runtime data 14 | pids 15 | *.pid 16 | *.seed 17 | *.pid.lock 18 | 19 | # Directory for instrumented libs generated by jscoverage/JSCover 20 | lib-cov 21 | 22 | # Coverage directory used by tools like istanbul 23 | coverage 24 | *.lcov 25 | 26 | # nyc test coverage 27 | .nyc_output 28 | 29 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 30 | .grunt 31 | 32 | # Bower dependency directory (https://bower.io/) 33 | bower_components 34 | 35 | # node-waf configuration 36 | .lock-wscript 37 | 38 | # Compiled binary addons (https://nodejs.org/api/addons.html) 39 | build/Release 40 | 41 | # Dependency directories 42 | node_modules/ 43 | jspm_packages/ 44 | 45 | # Snowpack dependency directory (https://snowpack.dev/) 46 | web_modules/ 47 | 48 | # TypeScript cache 49 | *.tsbuildinfo 50 | 51 | # Optional npm cache directory 52 | .npm 53 | 54 | # Optional eslint cache 55 | .eslintcache 56 | 57 | # Optional stylelint cache 58 | .stylelintcache 59 | 60 | # Microbundle cache 61 | .rpt2_cache/ 62 | .rts2_cache_cjs/ 63 | .rts2_cache_es/ 64 | .rts2_cache_umd/ 65 | 66 | # Optional REPL history 67 | .node_repl_history 68 | 69 | # Output of 'npm pack' 70 | *.tgz 71 | 72 | # Yarn Integrity file 73 | .yarn-integrity 74 | 75 | # dotenv environment variable files 76 | .env 77 | .env.development.local 78 | .env.test.local 79 | .env.production.local 80 | .env.local 81 | 82 | # parcel-bundler cache (https://parceljs.org/) 83 | .cache 84 | .parcel-cache 85 | 86 | # Next.js build output 87 | .next 88 | out 89 | 90 | # Nuxt.js build / generate output 91 | .nuxt 92 | dist 93 | 94 | # Gatsby files 95 | .cache/ 96 | # Comment in the public line in if your project uses Gatsby and not Next.js 97 | # https://nextjs.org/blog/next-9-1#public-directory-support 98 | # public 99 | 100 | # vuepress build output 101 | .vuepress/dist 102 | 103 | # vuepress v2.x temp and cache directory 104 | .temp 105 | .cache 106 | 107 | # Docusaurus cache and generated files 108 | .docusaurus 109 | 110 | # Serverless directories 111 | .serverless/ 112 | 113 | # FuseBox cache 114 | .fusebox/ 115 | 116 | # DynamoDB Local files 117 | .dynamodb/ 118 | 119 | # TernJS port file 120 | .tern-port 121 | 122 | # Stores VSCode versions used for testing VSCode extensions 123 | .vscode-test 124 | 125 | # yarn v2 126 | .yarn/cache 127 | .yarn/unplugged 128 | .yarn/build-state.yml 129 | .yarn/install-state.gz 130 | .pnp.* 131 | 132 | out 133 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | /* 2 | !/out 3 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "editor.defaultFormatter": "esbenp.prettier-vscode", 3 | "editor.formatOnSave": true, 4 | "editor.codeActionsOnSave": { 5 | "source.organizeImports": "explicit" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.11 - 2024-07-05 4 | 5 | - Package version bumps 6 | 7 | ## 0.0.10 - 2024-07-05 8 | 9 | - Fix bailing multiple configs on first failure (fixes [#44](https://github.com/microsoft/vscode-test-cli/issues/44)) 10 | - Fix extension install on Windows on modern Node versions (fixes [#43](https://github.com/microsoft/vscode-test-cli/issues/43)) 11 | - Normalize casing in paths (fixes [#49](https://github.com/microsoft/vscode-test-cli/issues/49)) 12 | 13 | ## 0.0.9 - 2024-03-04 14 | 15 | - Handle relative paths in `--config 16 | - Add `engines.node` version to the package.json 17 | - Enable installing `extensionDependencies` automatically, and optional `installExtensions` config option. 18 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Microsoft Open Source Code of Conduct 2 | 3 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 4 | 5 | Resources: 6 | 7 | - [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/) 8 | - [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) 9 | - Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) Microsoft Corporation. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### @vscode/test-cli 2 | 3 | This is an configuration-driver command line runner for [VS Code extension tests](https://code.visualstudio.com/api/working-with-extensions/testing-extension). It provides a simple, configuration-driven interface for running tests, and has its own VS Code extension that allows running tests in the UI. 4 | 5 | Install with: 6 | 7 | ``` 8 | npm install --save-dev @vscode/test-cli 9 | ``` 10 | 11 | After installing the package, the runner is available as the `vscode-test` CLI. Running it will look for a `.vscode-test.(js/json/mjs)` file relative to the current working directory. You can see the configuration [here](https://github.com/microsoft/vscode-test-cli/blob/main/src/config.cts). This may be as simple as: 12 | 13 | ```js 14 | // .vscode-test.mjs 15 | import { defineConfig } from '@vscode/test-cli'; 16 | 17 | export default defineConfig({ files: 'out/test/**/*.test.js' }); 18 | ``` 19 | 20 | Or include more options. For example: 21 | 22 | ```js 23 | // .vscode-test.mjs 24 | import { defineConfig } from '@vscode/test-cli'; 25 | 26 | export default defineConfig([ 27 | { 28 | // Required: Glob of files to load (can be an array and include absolute paths). 29 | files: 'out/test/**/*.test.js', 30 | // Optional: Version to use, same as the API above, defaults to stable 31 | version: 'insiders', 32 | // Optional: Root path of your extension, same as the API above, defaults 33 | // to the directory this config file is in 34 | extensionDevelopmentPath: __dirname, 35 | // Optional: sample workspace to open 36 | workspaceFolder: `${__dirname}/sampleWorkspace`, 37 | // Optional: install additional extensions to the installation prior to testing. By 38 | //default, any `extensionDependencies` from the package.json are automatically installed. 39 | installExtensions: ['ms-vscode.js-debug-nightly'], 40 | // Optional: additional mocha options to use: 41 | mocha: { 42 | require: `./out/test-utils.js`, 43 | timeout: 20000, 44 | }, 45 | }, 46 | // you can specify additional test configurations if necessary 47 | ]); 48 | ``` 49 | 50 | Tests included with this command line are run in Mocha. You can run the tests simply by running `vscode-test` on the command line. You can view more options with `vscode-test --help`; this command line is very similar to Mocha. For example, to watch and run only tests named "addition", you can run: 51 | 52 | ```sh 53 | vscode-test --watch 'out/**/*.js' --grep 'addition' 54 | ``` 55 | 56 | #### Debugging 57 | 58 | Add or update an `extensionHost` launch-type config with the path to your test configuration: 59 | 60 | ```diff 61 | { 62 | "type": "extensionHost", 63 | "request": "launch", 64 | "name": "My extension tests", 65 | + "testConfiguration": "${workspaceFolder}/.vscode-test.js", 66 | "args": ["--extensionDevelopmentPath=${workspaceFolder}"] 67 | }, 68 | ``` 69 | 70 | ## Contributing 71 | 72 | This project welcomes contributions and suggestions. Most contributions require you to agree to a 73 | Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us 74 | the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. 75 | 76 | When you submit a pull request, a CLA bot will automatically determine whether you need to provide 77 | a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions 78 | provided by the bot. You will only need to do this once across all repos using our CLA. 79 | 80 | This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). 81 | For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or 82 | contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments. 83 | 84 | ## Trademarks 85 | 86 | This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft 87 | trademarks or logos is subject to and must follow 88 | [Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). 89 | Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. 90 | Any use of third-party trademarks or logos are subject to those third-party's policies. 91 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Security 4 | 5 | Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet) and [Xamarin](https://github.com/xamarin). 6 | 7 | If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/security.md/definition), please report it to us as described below. 8 | 9 | ## Reporting Security Issues 10 | 11 | **Please do not report security vulnerabilities through public GitHub issues.** 12 | 13 | Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/security.md/msrc/create-report). 14 | 15 | If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/security.md/msrc/pgp). 16 | 17 | You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc). 18 | 19 | Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue: 20 | 21 | * Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.) 22 | * Full paths of source file(s) related to the manifestation of the issue 23 | * The location of the affected source code (tag/branch/commit or direct URL) 24 | * Any special configuration required to reproduce the issue 25 | * Step-by-step instructions to reproduce the issue 26 | * Proof-of-concept or exploit code (if possible) 27 | * Impact of the issue, including how an attacker might exploit the issue 28 | 29 | This information will help us triage your report more quickly. 30 | 31 | If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/security.md/msrc/bounty) page for more details about our active programs. 32 | 33 | ## Preferred Languages 34 | 35 | We prefer all communications to be in English. 36 | 37 | ## Policy 38 | 39 | Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/security.md/cvd). 40 | 41 | 42 | -------------------------------------------------------------------------------- /SUPPORT.md: -------------------------------------------------------------------------------- 1 | # TODO: The maintainer of this repo has not yet edited this file 2 | 3 | **REPO OWNER**: Do you want Customer Service & Support (CSS) support for this product/project? 4 | 5 | - **No CSS support:** Fill out this template with information about how to file issues and get help. 6 | - **Yes CSS support:** Fill out an intake form at [aka.ms/onboardsupport](https://aka.ms/onboardsupport). CSS will work with/help you to determine next steps. 7 | - **Not sure?** Fill out an intake as though the answer were "Yes". CSS will help you decide. 8 | 9 | *Then remove this first heading from this SUPPORT.MD file before publishing your repo.* 10 | 11 | # Support 12 | 13 | ## How to file issues and get help 14 | 15 | This project uses GitHub Issues to track bugs and feature requests. Please search the existing 16 | issues before filing new issues to avoid duplicates. For new issues, file your bug or 17 | feature request as a new Issue. 18 | 19 | For help and questions about using this project, please **REPO MAINTAINER: INSERT INSTRUCTIONS HERE 20 | FOR HOW TO ENGAGE REPO OWNERS OR COMMUNITY FOR HELP. COULD BE A STACK OVERFLOW TAG OR OTHER 21 | CHANNEL. WHERE WILL YOU HELP PEOPLE?**. 22 | 23 | ## Microsoft Support Policy 24 | 25 | Support for this **PROJECT or PRODUCT** is limited to the resources listed above. 26 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@vscode/test-cli", 3 | "version": "0.0.11", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@vscode/test-cli", 9 | "version": "0.0.11", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@types/mocha": "^10.0.2", 13 | "c8": "^9.1.0", 14 | "chokidar": "^3.5.3", 15 | "enhanced-resolve": "^5.15.0", 16 | "glob": "^10.3.10", 17 | "minimatch": "^9.0.3", 18 | "mocha": "^11.1.0", 19 | "supports-color": "^9.4.0", 20 | "yargs": "^17.7.2" 21 | }, 22 | "bin": { 23 | "vscode-test": "out/bin.mjs" 24 | }, 25 | "devDependencies": { 26 | "@types/node": "^18.18.4", 27 | "@types/yargs": "^17.0.28", 28 | "@vscode/test-electron": "^2.4.1", 29 | "@vscode/test-web": ">=0.0.46", 30 | "prettier": "^3.0.3", 31 | "typescript": "^5.4.0-beta" 32 | }, 33 | "engines": { 34 | "node": ">=18" 35 | } 36 | }, 37 | "node_modules/@bcoe/v8-coverage": { 38 | "version": "0.2.3", 39 | "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", 40 | "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==" 41 | }, 42 | "node_modules/@isaacs/cliui": { 43 | "version": "8.0.2", 44 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 45 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 46 | "license": "ISC", 47 | "dependencies": { 48 | "string-width": "^5.1.2", 49 | "string-width-cjs": "npm:string-width@^4.2.0", 50 | "strip-ansi": "^7.0.1", 51 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 52 | "wrap-ansi": "^8.1.0", 53 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 54 | }, 55 | "engines": { 56 | "node": ">=12" 57 | } 58 | }, 59 | "node_modules/@istanbuljs/schema": { 60 | "version": "0.1.3", 61 | "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", 62 | "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", 63 | "engines": { 64 | "node": ">=8" 65 | } 66 | }, 67 | "node_modules/@jridgewell/resolve-uri": { 68 | "version": "3.1.1", 69 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz", 70 | "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==", 71 | "engines": { 72 | "node": ">=6.0.0" 73 | } 74 | }, 75 | "node_modules/@jridgewell/sourcemap-codec": { 76 | "version": "1.4.15", 77 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 78 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==" 79 | }, 80 | "node_modules/@jridgewell/trace-mapping": { 81 | "version": "0.3.22", 82 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.22.tgz", 83 | "integrity": "sha512-Wf963MzWtA2sjrNt+g18IAln9lKnlRp+K2eH4jjIoF1wYeq3aMREpG09xhlhdzS0EjwU7qmUJYangWa+151vZw==", 84 | "dependencies": { 85 | "@jridgewell/resolve-uri": "^3.1.0", 86 | "@jridgewell/sourcemap-codec": "^1.4.14" 87 | } 88 | }, 89 | "node_modules/@koa/cors": { 90 | "version": "5.0.0", 91 | "resolved": "https://registry.npmjs.org/@koa/cors/-/cors-5.0.0.tgz", 92 | "integrity": "sha512-x/iUDjcS90W69PryLDIMgFyV21YLTnG9zOpPXS7Bkt2b8AsY3zZsIpOLBkYr9fBcF3HbkKaER5hOBZLfpLgYNw==", 93 | "dev": true, 94 | "dependencies": { 95 | "vary": "^1.1.2" 96 | }, 97 | "engines": { 98 | "node": ">= 14.0.0" 99 | } 100 | }, 101 | "node_modules/@koa/router": { 102 | "version": "12.0.1", 103 | "resolved": "https://registry.npmjs.org/@koa/router/-/router-12.0.1.tgz", 104 | "integrity": "sha512-ribfPYfHb+Uw3b27Eiw6NPqjhIhTpVFzEWLwyc/1Xp+DCdwRRyIlAUODX+9bPARF6aQtUu1+/PHzdNvRzcs/+Q==", 105 | "dev": true, 106 | "dependencies": { 107 | "debug": "^4.3.4", 108 | "http-errors": "^2.0.0", 109 | "koa-compose": "^4.1.0", 110 | "methods": "^1.1.2", 111 | "path-to-regexp": "^6.2.1" 112 | }, 113 | "engines": { 114 | "node": ">= 12" 115 | } 116 | }, 117 | "node_modules/@pkgjs/parseargs": { 118 | "version": "0.11.0", 119 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 120 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 121 | "license": "MIT", 122 | "optional": true, 123 | "engines": { 124 | "node": ">=14" 125 | } 126 | }, 127 | "node_modules/@playwright/browser-chromium": { 128 | "version": "1.42.1", 129 | "resolved": "https://registry.npmjs.org/@playwright/browser-chromium/-/browser-chromium-1.42.1.tgz", 130 | "integrity": "sha512-A7pcZIZQIiiafO2UCR/OEdkvGM8Hr2gsjcK0cQ7WStF28HUpPBbJiwR9qmo+rjxaEaK7c9XD1qNXOng8Q+eI0Q==", 131 | "dev": true, 132 | "hasInstallScript": true, 133 | "dependencies": { 134 | "playwright-core": "1.42.1" 135 | }, 136 | "engines": { 137 | "node": ">=16" 138 | } 139 | }, 140 | "node_modules/@types/istanbul-lib-coverage": { 141 | "version": "2.0.6", 142 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", 143 | "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==" 144 | }, 145 | "node_modules/@types/mocha": { 146 | "version": "10.0.6", 147 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.6.tgz", 148 | "integrity": "sha512-dJvrYWxP/UcXm36Qn36fxhUKu8A/xMRXVT2cliFF1Z7UA9liG5Psj3ezNSZw+5puH2czDXRLcXQxf8JbJt0ejg==" 149 | }, 150 | "node_modules/@types/node": { 151 | "version": "18.19.14", 152 | "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.14.tgz", 153 | "integrity": "sha512-EnQ4Us2rmOS64nHDWr0XqAD8DsO6f3XR6lf9UIIrZQpUzPVdN/oPuEzfDWNHSyXLvoGgjuEm/sPwFGSSs35Wtg==", 154 | "dev": true, 155 | "dependencies": { 156 | "undici-types": "~5.26.4" 157 | } 158 | }, 159 | "node_modules/@types/yargs": { 160 | "version": "17.0.32", 161 | "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.32.tgz", 162 | "integrity": "sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog==", 163 | "dev": true, 164 | "dependencies": { 165 | "@types/yargs-parser": "*" 166 | } 167 | }, 168 | "node_modules/@types/yargs-parser": { 169 | "version": "21.0.3", 170 | "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", 171 | "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", 172 | "dev": true 173 | }, 174 | "node_modules/@vscode/test-electron": { 175 | "version": "2.4.1", 176 | "resolved": "https://registry.npmjs.org/@vscode/test-electron/-/test-electron-2.4.1.tgz", 177 | "integrity": "sha512-Gc6EdaLANdktQ1t+zozoBVRynfIsMKMc94Svu1QreOBC8y76x4tvaK32TljrLi1LI2+PK58sDVbL7ALdqf3VRQ==", 178 | "dev": true, 179 | "dependencies": { 180 | "http-proxy-agent": "^7.0.2", 181 | "https-proxy-agent": "^7.0.5", 182 | "jszip": "^3.10.1", 183 | "ora": "^7.0.1", 184 | "semver": "^7.6.2" 185 | }, 186 | "engines": { 187 | "node": ">=16" 188 | } 189 | }, 190 | "node_modules/@vscode/test-web": { 191 | "version": "0.0.52", 192 | "resolved": "https://registry.npmjs.org/@vscode/test-web/-/test-web-0.0.52.tgz", 193 | "integrity": "sha512-PEYyru1GTUgNFpICWnvz33MnZ+nIIdG6feYHebvJMyFRZFL4s35Mp/6/aa8xUvfzAz/XBHCsbLRtJ1l067f/eQ==", 194 | "dev": true, 195 | "dependencies": { 196 | "@koa/cors": "^5.0.0", 197 | "@koa/router": "^12.0.1", 198 | "@playwright/browser-chromium": "^1.41.2", 199 | "gunzip-maybe": "^1.4.2", 200 | "http-proxy-agent": "^7.0.2", 201 | "https-proxy-agent": "^7.0.4", 202 | "koa": "^2.15.0", 203 | "koa-morgan": "^1.0.1", 204 | "koa-mount": "^4.0.0", 205 | "koa-static": "^5.0.0", 206 | "minimist": "^1.2.8", 207 | "playwright": "^1.41.2", 208 | "tar-fs": "^3.0.5", 209 | "vscode-uri": "^3.0.8" 210 | }, 211 | "bin": { 212 | "vscode-test-web": "out/index.js" 213 | }, 214 | "engines": { 215 | "node": ">=16" 216 | } 217 | }, 218 | "node_modules/accepts": { 219 | "version": "1.3.8", 220 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", 221 | "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", 222 | "dev": true, 223 | "dependencies": { 224 | "mime-types": "~2.1.34", 225 | "negotiator": "0.6.3" 226 | }, 227 | "engines": { 228 | "node": ">= 0.6" 229 | } 230 | }, 231 | "node_modules/agent-base": { 232 | "version": "7.1.1", 233 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz", 234 | "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==", 235 | "dev": true, 236 | "dependencies": { 237 | "debug": "^4.3.4" 238 | }, 239 | "engines": { 240 | "node": ">= 14" 241 | } 242 | }, 243 | "node_modules/ansi-colors": { 244 | "version": "4.1.3", 245 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", 246 | "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", 247 | "engines": { 248 | "node": ">=6" 249 | } 250 | }, 251 | "node_modules/ansi-regex": { 252 | "version": "6.0.1", 253 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz", 254 | "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==", 255 | "engines": { 256 | "node": ">=12" 257 | }, 258 | "funding": { 259 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 260 | } 261 | }, 262 | "node_modules/ansi-styles": { 263 | "version": "4.3.0", 264 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 265 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 266 | "dependencies": { 267 | "color-convert": "^2.0.1" 268 | }, 269 | "engines": { 270 | "node": ">=8" 271 | }, 272 | "funding": { 273 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 274 | } 275 | }, 276 | "node_modules/anymatch": { 277 | "version": "3.1.3", 278 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 279 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 280 | "dependencies": { 281 | "normalize-path": "^3.0.0", 282 | "picomatch": "^2.0.4" 283 | }, 284 | "engines": { 285 | "node": ">= 8" 286 | } 287 | }, 288 | "node_modules/argparse": { 289 | "version": "2.0.1", 290 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 291 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" 292 | }, 293 | "node_modules/b4a": { 294 | "version": "1.6.6", 295 | "resolved": "https://registry.npmjs.org/b4a/-/b4a-1.6.6.tgz", 296 | "integrity": "sha512-5Tk1HLk6b6ctmjIkAcU/Ujv/1WqiDl0F0JdRCR80VsOcUlHcu7pWeWRlOqQLHfDEsVx9YH/aif5AG4ehoCtTmg==", 297 | "dev": true 298 | }, 299 | "node_modules/balanced-match": { 300 | "version": "1.0.2", 301 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 302 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" 303 | }, 304 | "node_modules/bare-events": { 305 | "version": "2.5.4", 306 | "resolved": "https://registry.npmjs.org/bare-events/-/bare-events-2.5.4.tgz", 307 | "integrity": "sha512-+gFfDkR8pj4/TrWCGUGWmJIkBwuxPS5F+a5yWjOHQt2hHvNZd5YLzadjmDUtFmMM4y429bnKLa8bYBMHcYdnQA==", 308 | "dev": true, 309 | "license": "Apache-2.0", 310 | "optional": true 311 | }, 312 | "node_modules/bare-fs": { 313 | "version": "4.0.2", 314 | "resolved": "https://registry.npmjs.org/bare-fs/-/bare-fs-4.0.2.tgz", 315 | "integrity": "sha512-S5mmkMesiduMqnz51Bfh0Et9EX0aTCJxhsI4bvzFFLs8Z1AV8RDHadfY5CyLwdoLHgXbNBEN1gQcbEtGwuvixw==", 316 | "dev": true, 317 | "license": "Apache-2.0", 318 | "optional": true, 319 | "dependencies": { 320 | "bare-events": "^2.5.4", 321 | "bare-path": "^3.0.0", 322 | "bare-stream": "^2.6.4" 323 | }, 324 | "engines": { 325 | "bare": ">=1.16.0" 326 | }, 327 | "peerDependencies": { 328 | "bare-buffer": "*" 329 | }, 330 | "peerDependenciesMeta": { 331 | "bare-buffer": { 332 | "optional": true 333 | } 334 | } 335 | }, 336 | "node_modules/bare-os": { 337 | "version": "3.6.1", 338 | "resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.6.1.tgz", 339 | "integrity": "sha512-uaIjxokhFidJP+bmmvKSgiMzj2sV5GPHaZVAIktcxcpCyBFFWO+YlikVAdhmUo2vYFvFhOXIAlldqV29L8126g==", 340 | "dev": true, 341 | "license": "Apache-2.0", 342 | "optional": true, 343 | "engines": { 344 | "bare": ">=1.14.0" 345 | } 346 | }, 347 | "node_modules/bare-path": { 348 | "version": "3.0.0", 349 | "resolved": "https://registry.npmjs.org/bare-path/-/bare-path-3.0.0.tgz", 350 | "integrity": "sha512-tyfW2cQcB5NN8Saijrhqn0Zh7AnFNsnczRcuWODH0eYAXBsJ5gVxAUuNr7tsHSC6IZ77cA0SitzT+s47kot8Mw==", 351 | "dev": true, 352 | "license": "Apache-2.0", 353 | "optional": true, 354 | "dependencies": { 355 | "bare-os": "^3.0.1" 356 | } 357 | }, 358 | "node_modules/bare-stream": { 359 | "version": "2.6.5", 360 | "resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.6.5.tgz", 361 | "integrity": "sha512-jSmxKJNJmHySi6hC42zlZnq00rga4jjxcgNZjY9N5WlOe/iOoGRtdwGsHzQv2RlH2KOYMwGUXhf2zXd32BA9RA==", 362 | "dev": true, 363 | "license": "Apache-2.0", 364 | "optional": true, 365 | "dependencies": { 366 | "streamx": "^2.21.0" 367 | }, 368 | "peerDependencies": { 369 | "bare-buffer": "*", 370 | "bare-events": "*" 371 | }, 372 | "peerDependenciesMeta": { 373 | "bare-buffer": { 374 | "optional": true 375 | }, 376 | "bare-events": { 377 | "optional": true 378 | } 379 | } 380 | }, 381 | "node_modules/base64-js": { 382 | "version": "1.5.1", 383 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 384 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 385 | "dev": true, 386 | "funding": [ 387 | { 388 | "type": "github", 389 | "url": "https://github.com/sponsors/feross" 390 | }, 391 | { 392 | "type": "patreon", 393 | "url": "https://www.patreon.com/feross" 394 | }, 395 | { 396 | "type": "consulting", 397 | "url": "https://feross.org/support" 398 | } 399 | ] 400 | }, 401 | "node_modules/basic-auth": { 402 | "version": "2.0.1", 403 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 404 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 405 | "dev": true, 406 | "dependencies": { 407 | "safe-buffer": "5.1.2" 408 | }, 409 | "engines": { 410 | "node": ">= 0.8" 411 | } 412 | }, 413 | "node_modules/basic-auth/node_modules/safe-buffer": { 414 | "version": "5.1.2", 415 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 416 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 417 | "dev": true 418 | }, 419 | "node_modules/binary-extensions": { 420 | "version": "2.2.0", 421 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", 422 | "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", 423 | "engines": { 424 | "node": ">=8" 425 | } 426 | }, 427 | "node_modules/bl": { 428 | "version": "5.1.0", 429 | "resolved": "https://registry.npmjs.org/bl/-/bl-5.1.0.tgz", 430 | "integrity": "sha512-tv1ZJHLfTDnXE6tMHv73YgSJaWR2AFuPwMntBe7XL/GBFHnT0CLnsHMogfk5+GzCDC5ZWarSCYaIGATZt9dNsQ==", 431 | "dev": true, 432 | "dependencies": { 433 | "buffer": "^6.0.3", 434 | "inherits": "^2.0.4", 435 | "readable-stream": "^3.4.0" 436 | } 437 | }, 438 | "node_modules/bl/node_modules/readable-stream": { 439 | "version": "3.6.2", 440 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", 441 | "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", 442 | "dev": true, 443 | "dependencies": { 444 | "inherits": "^2.0.3", 445 | "string_decoder": "^1.1.1", 446 | "util-deprecate": "^1.0.1" 447 | }, 448 | "engines": { 449 | "node": ">= 6" 450 | } 451 | }, 452 | "node_modules/brace-expansion": { 453 | "version": "2.0.1", 454 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 455 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 456 | "dependencies": { 457 | "balanced-match": "^1.0.0" 458 | } 459 | }, 460 | "node_modules/braces": { 461 | "version": "3.0.3", 462 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 463 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 464 | "dependencies": { 465 | "fill-range": "^7.1.1" 466 | }, 467 | "engines": { 468 | "node": ">=8" 469 | } 470 | }, 471 | "node_modules/browser-stdout": { 472 | "version": "1.3.1", 473 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 474 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==" 475 | }, 476 | "node_modules/browserify-zlib": { 477 | "version": "0.1.4", 478 | "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.1.4.tgz", 479 | "integrity": "sha512-19OEpq7vWgsH6WkvkBJQDFvJS1uPcbFOQ4v9CU839dO+ZZXUZO6XpE6hNCqvlIIj+4fZvRiJ6DsAQ382GwiyTQ==", 480 | "dev": true, 481 | "dependencies": { 482 | "pako": "~0.2.0" 483 | } 484 | }, 485 | "node_modules/buffer": { 486 | "version": "6.0.3", 487 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-6.0.3.tgz", 488 | "integrity": "sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==", 489 | "dev": true, 490 | "funding": [ 491 | { 492 | "type": "github", 493 | "url": "https://github.com/sponsors/feross" 494 | }, 495 | { 496 | "type": "patreon", 497 | "url": "https://www.patreon.com/feross" 498 | }, 499 | { 500 | "type": "consulting", 501 | "url": "https://feross.org/support" 502 | } 503 | ], 504 | "dependencies": { 505 | "base64-js": "^1.3.1", 506 | "ieee754": "^1.2.1" 507 | } 508 | }, 509 | "node_modules/buffer-from": { 510 | "version": "1.1.2", 511 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 512 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 513 | "dev": true 514 | }, 515 | "node_modules/c8": { 516 | "version": "9.1.0", 517 | "resolved": "https://registry.npmjs.org/c8/-/c8-9.1.0.tgz", 518 | "integrity": "sha512-mBWcT5iqNir1zIkzSPyI3NCR9EZCVI3WUD+AVO17MVWTSFNyUueXE82qTeampNtTr+ilN/5Ua3j24LgbCKjDVg==", 519 | "dependencies": { 520 | "@bcoe/v8-coverage": "^0.2.3", 521 | "@istanbuljs/schema": "^0.1.3", 522 | "find-up": "^5.0.0", 523 | "foreground-child": "^3.1.1", 524 | "istanbul-lib-coverage": "^3.2.0", 525 | "istanbul-lib-report": "^3.0.1", 526 | "istanbul-reports": "^3.1.6", 527 | "test-exclude": "^6.0.0", 528 | "v8-to-istanbul": "^9.0.0", 529 | "yargs": "^17.7.2", 530 | "yargs-parser": "^21.1.1" 531 | }, 532 | "bin": { 533 | "c8": "bin/c8.js" 534 | }, 535 | "engines": { 536 | "node": ">=14.14.0" 537 | } 538 | }, 539 | "node_modules/cache-content-type": { 540 | "version": "1.0.1", 541 | "resolved": "https://registry.npmjs.org/cache-content-type/-/cache-content-type-1.0.1.tgz", 542 | "integrity": "sha512-IKufZ1o4Ut42YUrZSo8+qnMTrFuKkvyoLXUywKz9GJ5BrhOFGhLdkx9sG4KAnVvbY6kEcSFjLQul+DVmBm2bgA==", 543 | "dev": true, 544 | "dependencies": { 545 | "mime-types": "^2.1.18", 546 | "ylru": "^1.2.0" 547 | }, 548 | "engines": { 549 | "node": ">= 6.0.0" 550 | } 551 | }, 552 | "node_modules/camelcase": { 553 | "version": "6.3.0", 554 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 555 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 556 | "engines": { 557 | "node": ">=10" 558 | }, 559 | "funding": { 560 | "url": "https://github.com/sponsors/sindresorhus" 561 | } 562 | }, 563 | "node_modules/chalk": { 564 | "version": "4.1.2", 565 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 566 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 567 | "dependencies": { 568 | "ansi-styles": "^4.1.0", 569 | "supports-color": "^7.1.0" 570 | }, 571 | "engines": { 572 | "node": ">=10" 573 | }, 574 | "funding": { 575 | "url": "https://github.com/chalk/chalk?sponsor=1" 576 | } 577 | }, 578 | "node_modules/chalk/node_modules/supports-color": { 579 | "version": "7.2.0", 580 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 581 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 582 | "dependencies": { 583 | "has-flag": "^4.0.0" 584 | }, 585 | "engines": { 586 | "node": ">=8" 587 | } 588 | }, 589 | "node_modules/chokidar": { 590 | "version": "3.5.3", 591 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", 592 | "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", 593 | "funding": [ 594 | { 595 | "type": "individual", 596 | "url": "https://paulmillr.com/funding/" 597 | } 598 | ], 599 | "dependencies": { 600 | "anymatch": "~3.1.2", 601 | "braces": "~3.0.2", 602 | "glob-parent": "~5.1.2", 603 | "is-binary-path": "~2.1.0", 604 | "is-glob": "~4.0.1", 605 | "normalize-path": "~3.0.0", 606 | "readdirp": "~3.6.0" 607 | }, 608 | "engines": { 609 | "node": ">= 8.10.0" 610 | }, 611 | "optionalDependencies": { 612 | "fsevents": "~2.3.2" 613 | } 614 | }, 615 | "node_modules/cli-cursor": { 616 | "version": "4.0.0", 617 | "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-4.0.0.tgz", 618 | "integrity": "sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg==", 619 | "dev": true, 620 | "dependencies": { 621 | "restore-cursor": "^4.0.0" 622 | }, 623 | "engines": { 624 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 625 | }, 626 | "funding": { 627 | "url": "https://github.com/sponsors/sindresorhus" 628 | } 629 | }, 630 | "node_modules/cli-spinners": { 631 | "version": "2.9.2", 632 | "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz", 633 | "integrity": "sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==", 634 | "dev": true, 635 | "engines": { 636 | "node": ">=6" 637 | }, 638 | "funding": { 639 | "url": "https://github.com/sponsors/sindresorhus" 640 | } 641 | }, 642 | "node_modules/cliui": { 643 | "version": "8.0.1", 644 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 645 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 646 | "dependencies": { 647 | "string-width": "^4.2.0", 648 | "strip-ansi": "^6.0.1", 649 | "wrap-ansi": "^7.0.0" 650 | }, 651 | "engines": { 652 | "node": ">=12" 653 | } 654 | }, 655 | "node_modules/cliui/node_modules/ansi-regex": { 656 | "version": "5.0.1", 657 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 658 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 659 | "engines": { 660 | "node": ">=8" 661 | } 662 | }, 663 | "node_modules/cliui/node_modules/emoji-regex": { 664 | "version": "8.0.0", 665 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 666 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 667 | }, 668 | "node_modules/cliui/node_modules/string-width": { 669 | "version": "4.2.3", 670 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 671 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 672 | "dependencies": { 673 | "emoji-regex": "^8.0.0", 674 | "is-fullwidth-code-point": "^3.0.0", 675 | "strip-ansi": "^6.0.1" 676 | }, 677 | "engines": { 678 | "node": ">=8" 679 | } 680 | }, 681 | "node_modules/cliui/node_modules/strip-ansi": { 682 | "version": "6.0.1", 683 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 684 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 685 | "dependencies": { 686 | "ansi-regex": "^5.0.1" 687 | }, 688 | "engines": { 689 | "node": ">=8" 690 | } 691 | }, 692 | "node_modules/cliui/node_modules/wrap-ansi": { 693 | "version": "7.0.0", 694 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 695 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 696 | "dependencies": { 697 | "ansi-styles": "^4.0.0", 698 | "string-width": "^4.1.0", 699 | "strip-ansi": "^6.0.0" 700 | }, 701 | "engines": { 702 | "node": ">=10" 703 | }, 704 | "funding": { 705 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 706 | } 707 | }, 708 | "node_modules/co": { 709 | "version": "4.6.0", 710 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 711 | "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", 712 | "dev": true, 713 | "engines": { 714 | "iojs": ">= 1.0.0", 715 | "node": ">= 0.12.0" 716 | } 717 | }, 718 | "node_modules/color-convert": { 719 | "version": "2.0.1", 720 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 721 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 722 | "dependencies": { 723 | "color-name": "~1.1.4" 724 | }, 725 | "engines": { 726 | "node": ">=7.0.0" 727 | } 728 | }, 729 | "node_modules/color-name": { 730 | "version": "1.1.4", 731 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 732 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" 733 | }, 734 | "node_modules/concat-map": { 735 | "version": "0.0.1", 736 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 737 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" 738 | }, 739 | "node_modules/content-disposition": { 740 | "version": "0.5.4", 741 | "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-0.5.4.tgz", 742 | "integrity": "sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==", 743 | "dev": true, 744 | "dependencies": { 745 | "safe-buffer": "5.2.1" 746 | }, 747 | "engines": { 748 | "node": ">= 0.6" 749 | } 750 | }, 751 | "node_modules/content-type": { 752 | "version": "1.0.5", 753 | "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", 754 | "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", 755 | "dev": true, 756 | "engines": { 757 | "node": ">= 0.6" 758 | } 759 | }, 760 | "node_modules/convert-source-map": { 761 | "version": "2.0.0", 762 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", 763 | "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==" 764 | }, 765 | "node_modules/cookies": { 766 | "version": "0.9.1", 767 | "resolved": "https://registry.npmjs.org/cookies/-/cookies-0.9.1.tgz", 768 | "integrity": "sha512-TG2hpqe4ELx54QER/S3HQ9SRVnQnGBtKUz5bLQWtYAQ+o6GpgMs6sYUvaiJjVxb+UXwhRhAEP3m7LbsIZ77Hmw==", 769 | "dev": true, 770 | "dependencies": { 771 | "depd": "~2.0.0", 772 | "keygrip": "~1.1.0" 773 | }, 774 | "engines": { 775 | "node": ">= 0.8" 776 | } 777 | }, 778 | "node_modules/core-util-is": { 779 | "version": "1.0.3", 780 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", 781 | "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", 782 | "dev": true 783 | }, 784 | "node_modules/cross-spawn": { 785 | "version": "7.0.6", 786 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 787 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 788 | "license": "MIT", 789 | "dependencies": { 790 | "path-key": "^3.1.0", 791 | "shebang-command": "^2.0.0", 792 | "which": "^2.0.1" 793 | }, 794 | "engines": { 795 | "node": ">= 8" 796 | } 797 | }, 798 | "node_modules/debug": { 799 | "version": "4.4.0", 800 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 801 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 802 | "dependencies": { 803 | "ms": "^2.1.3" 804 | }, 805 | "engines": { 806 | "node": ">=6.0" 807 | }, 808 | "peerDependenciesMeta": { 809 | "supports-color": { 810 | "optional": true 811 | } 812 | } 813 | }, 814 | "node_modules/decamelize": { 815 | "version": "4.0.0", 816 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 817 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 818 | "engines": { 819 | "node": ">=10" 820 | }, 821 | "funding": { 822 | "url": "https://github.com/sponsors/sindresorhus" 823 | } 824 | }, 825 | "node_modules/deep-equal": { 826 | "version": "1.0.1", 827 | "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-1.0.1.tgz", 828 | "integrity": "sha512-bHtC0iYvWhyaTzvV3CZgPeZQqCOBGyGsVV7v4eevpdkLHfiSrXUdBG+qAuSz4RI70sszvjQ1QSZ98An1yNwpSw==", 829 | "dev": true 830 | }, 831 | "node_modules/delegates": { 832 | "version": "1.0.0", 833 | "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", 834 | "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", 835 | "dev": true 836 | }, 837 | "node_modules/depd": { 838 | "version": "2.0.0", 839 | "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", 840 | "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", 841 | "dev": true, 842 | "engines": { 843 | "node": ">= 0.8" 844 | } 845 | }, 846 | "node_modules/destroy": { 847 | "version": "1.2.0", 848 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", 849 | "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", 850 | "dev": true, 851 | "engines": { 852 | "node": ">= 0.8", 853 | "npm": "1.2.8000 || >= 1.4.16" 854 | } 855 | }, 856 | "node_modules/diff": { 857 | "version": "5.2.0", 858 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", 859 | "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", 860 | "engines": { 861 | "node": ">=0.3.1" 862 | } 863 | }, 864 | "node_modules/duplexify": { 865 | "version": "3.7.1", 866 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", 867 | "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", 868 | "dev": true, 869 | "dependencies": { 870 | "end-of-stream": "^1.0.0", 871 | "inherits": "^2.0.1", 872 | "readable-stream": "^2.0.0", 873 | "stream-shift": "^1.0.0" 874 | } 875 | }, 876 | "node_modules/eastasianwidth": { 877 | "version": "0.2.0", 878 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 879 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==" 880 | }, 881 | "node_modules/ee-first": { 882 | "version": "1.1.1", 883 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 884 | "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", 885 | "dev": true 886 | }, 887 | "node_modules/emoji-regex": { 888 | "version": "9.2.2", 889 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 890 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 891 | "license": "MIT" 892 | }, 893 | "node_modules/encodeurl": { 894 | "version": "1.0.2", 895 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 896 | "integrity": "sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w==", 897 | "dev": true, 898 | "engines": { 899 | "node": ">= 0.8" 900 | } 901 | }, 902 | "node_modules/end-of-stream": { 903 | "version": "1.4.4", 904 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 905 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 906 | "dev": true, 907 | "dependencies": { 908 | "once": "^1.4.0" 909 | } 910 | }, 911 | "node_modules/enhanced-resolve": { 912 | "version": "5.15.0", 913 | "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.15.0.tgz", 914 | "integrity": "sha512-LXYT42KJ7lpIKECr2mAXIaMldcNCh/7E0KBKOu4KSfkHmP+mZmSs+8V5gBAqisWBy0OO4W5Oyys0GO1Y8KtdKg==", 915 | "dependencies": { 916 | "graceful-fs": "^4.2.4", 917 | "tapable": "^2.2.0" 918 | }, 919 | "engines": { 920 | "node": ">=10.13.0" 921 | } 922 | }, 923 | "node_modules/escalade": { 924 | "version": "3.1.1", 925 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", 926 | "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", 927 | "engines": { 928 | "node": ">=6" 929 | } 930 | }, 931 | "node_modules/escape-html": { 932 | "version": "1.0.3", 933 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 934 | "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", 935 | "dev": true 936 | }, 937 | "node_modules/escape-string-regexp": { 938 | "version": "4.0.0", 939 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 940 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 941 | "engines": { 942 | "node": ">=10" 943 | }, 944 | "funding": { 945 | "url": "https://github.com/sponsors/sindresorhus" 946 | } 947 | }, 948 | "node_modules/fast-fifo": { 949 | "version": "1.3.2", 950 | "resolved": "https://registry.npmjs.org/fast-fifo/-/fast-fifo-1.3.2.tgz", 951 | "integrity": "sha512-/d9sfos4yxzpwkDkuN7k2SqFKtYNmCTzgfEpz82x34IM9/zc8KGxQoXg1liNC/izpRM/MBdt44Nmx41ZWqk+FQ==", 952 | "dev": true 953 | }, 954 | "node_modules/fill-range": { 955 | "version": "7.1.1", 956 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 957 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 958 | "dependencies": { 959 | "to-regex-range": "^5.0.1" 960 | }, 961 | "engines": { 962 | "node": ">=8" 963 | } 964 | }, 965 | "node_modules/find-up": { 966 | "version": "5.0.0", 967 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 968 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 969 | "dependencies": { 970 | "locate-path": "^6.0.0", 971 | "path-exists": "^4.0.0" 972 | }, 973 | "engines": { 974 | "node": ">=10" 975 | }, 976 | "funding": { 977 | "url": "https://github.com/sponsors/sindresorhus" 978 | } 979 | }, 980 | "node_modules/flat": { 981 | "version": "5.0.2", 982 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 983 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 984 | "bin": { 985 | "flat": "cli.js" 986 | } 987 | }, 988 | "node_modules/foreground-child": { 989 | "version": "3.1.1", 990 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.1.1.tgz", 991 | "integrity": "sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg==", 992 | "dependencies": { 993 | "cross-spawn": "^7.0.0", 994 | "signal-exit": "^4.0.1" 995 | }, 996 | "engines": { 997 | "node": ">=14" 998 | }, 999 | "funding": { 1000 | "url": "https://github.com/sponsors/isaacs" 1001 | } 1002 | }, 1003 | "node_modules/fresh": { 1004 | "version": "0.5.2", 1005 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 1006 | "integrity": "sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q==", 1007 | "dev": true, 1008 | "engines": { 1009 | "node": ">= 0.6" 1010 | } 1011 | }, 1012 | "node_modules/fs.realpath": { 1013 | "version": "1.0.0", 1014 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1015 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" 1016 | }, 1017 | "node_modules/fsevents": { 1018 | "version": "2.3.3", 1019 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1020 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1021 | "hasInstallScript": true, 1022 | "optional": true, 1023 | "os": [ 1024 | "darwin" 1025 | ], 1026 | "engines": { 1027 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1028 | } 1029 | }, 1030 | "node_modules/get-caller-file": { 1031 | "version": "2.0.5", 1032 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1033 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1034 | "engines": { 1035 | "node": "6.* || 8.* || >= 10.*" 1036 | } 1037 | }, 1038 | "node_modules/glob": { 1039 | "version": "10.4.5", 1040 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 1041 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 1042 | "license": "ISC", 1043 | "dependencies": { 1044 | "foreground-child": "^3.1.0", 1045 | "jackspeak": "^3.1.2", 1046 | "minimatch": "^9.0.4", 1047 | "minipass": "^7.1.2", 1048 | "package-json-from-dist": "^1.0.0", 1049 | "path-scurry": "^1.11.1" 1050 | }, 1051 | "bin": { 1052 | "glob": "dist/esm/bin.mjs" 1053 | }, 1054 | "funding": { 1055 | "url": "https://github.com/sponsors/isaacs" 1056 | } 1057 | }, 1058 | "node_modules/glob-parent": { 1059 | "version": "5.1.2", 1060 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 1061 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 1062 | "dependencies": { 1063 | "is-glob": "^4.0.1" 1064 | }, 1065 | "engines": { 1066 | "node": ">= 6" 1067 | } 1068 | }, 1069 | "node_modules/graceful-fs": { 1070 | "version": "4.2.11", 1071 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 1072 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" 1073 | }, 1074 | "node_modules/gunzip-maybe": { 1075 | "version": "1.4.2", 1076 | "resolved": "https://registry.npmjs.org/gunzip-maybe/-/gunzip-maybe-1.4.2.tgz", 1077 | "integrity": "sha512-4haO1M4mLO91PW57BMsDFf75UmwoRX0GkdD+Faw+Lr+r/OZrOCS0pIBwOL1xCKQqnQzbNFGgK2V2CpBUPeFNTw==", 1078 | "dev": true, 1079 | "dependencies": { 1080 | "browserify-zlib": "^0.1.4", 1081 | "is-deflate": "^1.0.0", 1082 | "is-gzip": "^1.0.0", 1083 | "peek-stream": "^1.1.0", 1084 | "pumpify": "^1.3.3", 1085 | "through2": "^2.0.3" 1086 | }, 1087 | "bin": { 1088 | "gunzip-maybe": "bin.js" 1089 | } 1090 | }, 1091 | "node_modules/has-flag": { 1092 | "version": "4.0.0", 1093 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1094 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1095 | "engines": { 1096 | "node": ">=8" 1097 | } 1098 | }, 1099 | "node_modules/has-tostringtag": { 1100 | "version": "1.0.1", 1101 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.1.tgz", 1102 | "integrity": "sha512-6J4rC9ROz0UkOpjn0BRtSSqlewDTDYJNQvy8N8RSrPCduUWId1o9BQPEVII/KKBqRk/ZIQff1YbRkUDCH2N5Sg==", 1103 | "dev": true, 1104 | "engines": { 1105 | "node": ">= 0.4" 1106 | }, 1107 | "funding": { 1108 | "url": "https://github.com/sponsors/ljharb" 1109 | } 1110 | }, 1111 | "node_modules/he": { 1112 | "version": "1.2.0", 1113 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1114 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1115 | "bin": { 1116 | "he": "bin/he" 1117 | } 1118 | }, 1119 | "node_modules/html-escaper": { 1120 | "version": "2.0.2", 1121 | "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", 1122 | "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==" 1123 | }, 1124 | "node_modules/http-assert": { 1125 | "version": "1.5.0", 1126 | "resolved": "https://registry.npmjs.org/http-assert/-/http-assert-1.5.0.tgz", 1127 | "integrity": "sha512-uPpH7OKX4H25hBmU6G1jWNaqJGpTXxey+YOUizJUAgu0AjLUeC8D73hTrhvDS5D+GJN1DN1+hhc/eF/wpxtp0w==", 1128 | "dev": true, 1129 | "dependencies": { 1130 | "deep-equal": "~1.0.1", 1131 | "http-errors": "~1.8.0" 1132 | }, 1133 | "engines": { 1134 | "node": ">= 0.8" 1135 | } 1136 | }, 1137 | "node_modules/http-assert/node_modules/depd": { 1138 | "version": "1.1.2", 1139 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 1140 | "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", 1141 | "dev": true, 1142 | "engines": { 1143 | "node": ">= 0.6" 1144 | } 1145 | }, 1146 | "node_modules/http-assert/node_modules/http-errors": { 1147 | "version": "1.8.1", 1148 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", 1149 | "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", 1150 | "dev": true, 1151 | "dependencies": { 1152 | "depd": "~1.1.2", 1153 | "inherits": "2.0.4", 1154 | "setprototypeof": "1.2.0", 1155 | "statuses": ">= 1.5.0 < 2", 1156 | "toidentifier": "1.0.1" 1157 | }, 1158 | "engines": { 1159 | "node": ">= 0.6" 1160 | } 1161 | }, 1162 | "node_modules/http-assert/node_modules/statuses": { 1163 | "version": "1.5.0", 1164 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1165 | "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", 1166 | "dev": true, 1167 | "engines": { 1168 | "node": ">= 0.6" 1169 | } 1170 | }, 1171 | "node_modules/http-errors": { 1172 | "version": "2.0.0", 1173 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", 1174 | "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", 1175 | "dev": true, 1176 | "dependencies": { 1177 | "depd": "2.0.0", 1178 | "inherits": "2.0.4", 1179 | "setprototypeof": "1.2.0", 1180 | "statuses": "2.0.1", 1181 | "toidentifier": "1.0.1" 1182 | }, 1183 | "engines": { 1184 | "node": ">= 0.8" 1185 | } 1186 | }, 1187 | "node_modules/http-proxy-agent": { 1188 | "version": "7.0.2", 1189 | "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz", 1190 | "integrity": "sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig==", 1191 | "dev": true, 1192 | "dependencies": { 1193 | "agent-base": "^7.1.0", 1194 | "debug": "^4.3.4" 1195 | }, 1196 | "engines": { 1197 | "node": ">= 14" 1198 | } 1199 | }, 1200 | "node_modules/https-proxy-agent": { 1201 | "version": "7.0.5", 1202 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz", 1203 | "integrity": "sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw==", 1204 | "dev": true, 1205 | "dependencies": { 1206 | "agent-base": "^7.0.2", 1207 | "debug": "4" 1208 | }, 1209 | "engines": { 1210 | "node": ">= 14" 1211 | } 1212 | }, 1213 | "node_modules/ieee754": { 1214 | "version": "1.2.1", 1215 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 1216 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 1217 | "dev": true, 1218 | "funding": [ 1219 | { 1220 | "type": "github", 1221 | "url": "https://github.com/sponsors/feross" 1222 | }, 1223 | { 1224 | "type": "patreon", 1225 | "url": "https://www.patreon.com/feross" 1226 | }, 1227 | { 1228 | "type": "consulting", 1229 | "url": "https://feross.org/support" 1230 | } 1231 | ] 1232 | }, 1233 | "node_modules/immediate": { 1234 | "version": "3.0.6", 1235 | "resolved": "https://registry.npmjs.org/immediate/-/immediate-3.0.6.tgz", 1236 | "integrity": "sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==", 1237 | "dev": true 1238 | }, 1239 | "node_modules/inflight": { 1240 | "version": "1.0.6", 1241 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1242 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1243 | "dependencies": { 1244 | "once": "^1.3.0", 1245 | "wrappy": "1" 1246 | } 1247 | }, 1248 | "node_modules/inherits": { 1249 | "version": "2.0.4", 1250 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1251 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" 1252 | }, 1253 | "node_modules/is-binary-path": { 1254 | "version": "2.1.0", 1255 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 1256 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 1257 | "dependencies": { 1258 | "binary-extensions": "^2.0.0" 1259 | }, 1260 | "engines": { 1261 | "node": ">=8" 1262 | } 1263 | }, 1264 | "node_modules/is-deflate": { 1265 | "version": "1.0.0", 1266 | "resolved": "https://registry.npmjs.org/is-deflate/-/is-deflate-1.0.0.tgz", 1267 | "integrity": "sha512-YDoFpuZWu1VRXlsnlYMzKyVRITXj7Ej/V9gXQ2/pAe7X1J7M/RNOqaIYi6qUn+B7nGyB9pDXrv02dsB58d2ZAQ==", 1268 | "dev": true 1269 | }, 1270 | "node_modules/is-extglob": { 1271 | "version": "2.1.1", 1272 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1273 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1274 | "engines": { 1275 | "node": ">=0.10.0" 1276 | } 1277 | }, 1278 | "node_modules/is-fullwidth-code-point": { 1279 | "version": "3.0.0", 1280 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1281 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1282 | "engines": { 1283 | "node": ">=8" 1284 | } 1285 | }, 1286 | "node_modules/is-generator-function": { 1287 | "version": "1.0.10", 1288 | "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", 1289 | "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", 1290 | "dev": true, 1291 | "dependencies": { 1292 | "has-tostringtag": "^1.0.0" 1293 | }, 1294 | "engines": { 1295 | "node": ">= 0.4" 1296 | }, 1297 | "funding": { 1298 | "url": "https://github.com/sponsors/ljharb" 1299 | } 1300 | }, 1301 | "node_modules/is-glob": { 1302 | "version": "4.0.3", 1303 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1304 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1305 | "dependencies": { 1306 | "is-extglob": "^2.1.1" 1307 | }, 1308 | "engines": { 1309 | "node": ">=0.10.0" 1310 | } 1311 | }, 1312 | "node_modules/is-gzip": { 1313 | "version": "1.0.0", 1314 | "resolved": "https://registry.npmjs.org/is-gzip/-/is-gzip-1.0.0.tgz", 1315 | "integrity": "sha512-rcfALRIb1YewtnksfRIHGcIY93QnK8BIQ/2c9yDYcG/Y6+vRoJuTWBmmSEbyLLYtXm7q35pHOHbZFQBaLrhlWQ==", 1316 | "dev": true, 1317 | "engines": { 1318 | "node": ">=0.10.0" 1319 | } 1320 | }, 1321 | "node_modules/is-interactive": { 1322 | "version": "2.0.0", 1323 | "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-2.0.0.tgz", 1324 | "integrity": "sha512-qP1vozQRI+BMOPcjFzrjXuQvdak2pHNUMZoeG2eRbiSqyvbEf/wQtEOTOX1guk6E3t36RkaqiSt8A/6YElNxLQ==", 1325 | "dev": true, 1326 | "engines": { 1327 | "node": ">=12" 1328 | }, 1329 | "funding": { 1330 | "url": "https://github.com/sponsors/sindresorhus" 1331 | } 1332 | }, 1333 | "node_modules/is-number": { 1334 | "version": "7.0.0", 1335 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 1336 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 1337 | "engines": { 1338 | "node": ">=0.12.0" 1339 | } 1340 | }, 1341 | "node_modules/is-plain-obj": { 1342 | "version": "2.1.0", 1343 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 1344 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 1345 | "engines": { 1346 | "node": ">=8" 1347 | } 1348 | }, 1349 | "node_modules/is-unicode-supported": { 1350 | "version": "0.1.0", 1351 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 1352 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 1353 | "engines": { 1354 | "node": ">=10" 1355 | }, 1356 | "funding": { 1357 | "url": "https://github.com/sponsors/sindresorhus" 1358 | } 1359 | }, 1360 | "node_modules/isarray": { 1361 | "version": "1.0.0", 1362 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1363 | "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", 1364 | "dev": true 1365 | }, 1366 | "node_modules/isexe": { 1367 | "version": "2.0.0", 1368 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 1369 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" 1370 | }, 1371 | "node_modules/istanbul-lib-coverage": { 1372 | "version": "3.2.2", 1373 | "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", 1374 | "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", 1375 | "engines": { 1376 | "node": ">=8" 1377 | } 1378 | }, 1379 | "node_modules/istanbul-lib-report": { 1380 | "version": "3.0.1", 1381 | "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", 1382 | "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", 1383 | "dependencies": { 1384 | "istanbul-lib-coverage": "^3.0.0", 1385 | "make-dir": "^4.0.0", 1386 | "supports-color": "^7.1.0" 1387 | }, 1388 | "engines": { 1389 | "node": ">=10" 1390 | } 1391 | }, 1392 | "node_modules/istanbul-lib-report/node_modules/supports-color": { 1393 | "version": "7.2.0", 1394 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1395 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1396 | "dependencies": { 1397 | "has-flag": "^4.0.0" 1398 | }, 1399 | "engines": { 1400 | "node": ">=8" 1401 | } 1402 | }, 1403 | "node_modules/istanbul-reports": { 1404 | "version": "3.1.6", 1405 | "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz", 1406 | "integrity": "sha512-TLgnMkKg3iTDsQ9PbPTdpfAK2DzjF9mqUG7RMgcQl8oFjad8ob4laGxv5XV5U9MAfx8D6tSJiUyuAwzLicaxlg==", 1407 | "dependencies": { 1408 | "html-escaper": "^2.0.0", 1409 | "istanbul-lib-report": "^3.0.0" 1410 | }, 1411 | "engines": { 1412 | "node": ">=8" 1413 | } 1414 | }, 1415 | "node_modules/jackspeak": { 1416 | "version": "3.4.3", 1417 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 1418 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 1419 | "license": "BlueOak-1.0.0", 1420 | "dependencies": { 1421 | "@isaacs/cliui": "^8.0.2" 1422 | }, 1423 | "funding": { 1424 | "url": "https://github.com/sponsors/isaacs" 1425 | }, 1426 | "optionalDependencies": { 1427 | "@pkgjs/parseargs": "^0.11.0" 1428 | } 1429 | }, 1430 | "node_modules/js-yaml": { 1431 | "version": "4.1.0", 1432 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1433 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1434 | "dependencies": { 1435 | "argparse": "^2.0.1" 1436 | }, 1437 | "bin": { 1438 | "js-yaml": "bin/js-yaml.js" 1439 | } 1440 | }, 1441 | "node_modules/jszip": { 1442 | "version": "3.10.1", 1443 | "resolved": "https://registry.npmjs.org/jszip/-/jszip-3.10.1.tgz", 1444 | "integrity": "sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==", 1445 | "dev": true, 1446 | "dependencies": { 1447 | "lie": "~3.3.0", 1448 | "pako": "~1.0.2", 1449 | "readable-stream": "~2.3.6", 1450 | "setimmediate": "^1.0.5" 1451 | } 1452 | }, 1453 | "node_modules/jszip/node_modules/pako": { 1454 | "version": "1.0.11", 1455 | "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", 1456 | "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", 1457 | "dev": true 1458 | }, 1459 | "node_modules/keygrip": { 1460 | "version": "1.1.0", 1461 | "resolved": "https://registry.npmjs.org/keygrip/-/keygrip-1.1.0.tgz", 1462 | "integrity": "sha512-iYSchDJ+liQ8iwbSI2QqsQOvqv58eJCEanyJPJi+Khyu8smkcKSFUCbPwzFcL7YVtZ6eONjqRX/38caJ7QjRAQ==", 1463 | "dev": true, 1464 | "dependencies": { 1465 | "tsscmp": "1.0.6" 1466 | }, 1467 | "engines": { 1468 | "node": ">= 0.6" 1469 | } 1470 | }, 1471 | "node_modules/koa": { 1472 | "version": "2.16.1", 1473 | "resolved": "https://registry.npmjs.org/koa/-/koa-2.16.1.tgz", 1474 | "integrity": "sha512-umfX9d3iuSxTQP4pnzLOz0HKnPg0FaUUIKcye2lOiz3KPu1Y3M3xlz76dISdFPQs37P9eJz1wUpcTS6KDPn9fA==", 1475 | "dev": true, 1476 | "license": "MIT", 1477 | "dependencies": { 1478 | "accepts": "^1.3.5", 1479 | "cache-content-type": "^1.0.0", 1480 | "content-disposition": "~0.5.2", 1481 | "content-type": "^1.0.4", 1482 | "cookies": "~0.9.0", 1483 | "debug": "^4.3.2", 1484 | "delegates": "^1.0.0", 1485 | "depd": "^2.0.0", 1486 | "destroy": "^1.0.4", 1487 | "encodeurl": "^1.0.2", 1488 | "escape-html": "^1.0.3", 1489 | "fresh": "~0.5.2", 1490 | "http-assert": "^1.3.0", 1491 | "http-errors": "^1.6.3", 1492 | "is-generator-function": "^1.0.7", 1493 | "koa-compose": "^4.1.0", 1494 | "koa-convert": "^2.0.0", 1495 | "on-finished": "^2.3.0", 1496 | "only": "~0.0.2", 1497 | "parseurl": "^1.3.2", 1498 | "statuses": "^1.5.0", 1499 | "type-is": "^1.6.16", 1500 | "vary": "^1.1.2" 1501 | }, 1502 | "engines": { 1503 | "node": "^4.8.4 || ^6.10.1 || ^7.10.1 || >= 8.1.4" 1504 | } 1505 | }, 1506 | "node_modules/koa-compose": { 1507 | "version": "4.1.0", 1508 | "resolved": "https://registry.npmjs.org/koa-compose/-/koa-compose-4.1.0.tgz", 1509 | "integrity": "sha512-8ODW8TrDuMYvXRwra/Kh7/rJo9BtOfPc6qO8eAfC80CnCvSjSl0bkRM24X6/XBBEyj0v1nRUQ1LyOy3dbqOWXw==", 1510 | "dev": true 1511 | }, 1512 | "node_modules/koa-convert": { 1513 | "version": "2.0.0", 1514 | "resolved": "https://registry.npmjs.org/koa-convert/-/koa-convert-2.0.0.tgz", 1515 | "integrity": "sha512-asOvN6bFlSnxewce2e/DK3p4tltyfC4VM7ZwuTuepI7dEQVcvpyFuBcEARu1+Hxg8DIwytce2n7jrZtRlPrARA==", 1516 | "dev": true, 1517 | "dependencies": { 1518 | "co": "^4.6.0", 1519 | "koa-compose": "^4.1.0" 1520 | }, 1521 | "engines": { 1522 | "node": ">= 10" 1523 | } 1524 | }, 1525 | "node_modules/koa-morgan": { 1526 | "version": "1.0.1", 1527 | "resolved": "https://registry.npmjs.org/koa-morgan/-/koa-morgan-1.0.1.tgz", 1528 | "integrity": "sha512-JOUdCNlc21G50afBXfErUrr1RKymbgzlrO5KURY+wmDG1Uvd2jmxUJcHgylb/mYXy2SjiNZyYim/ptUBGsIi3A==", 1529 | "dev": true, 1530 | "dependencies": { 1531 | "morgan": "^1.6.1" 1532 | } 1533 | }, 1534 | "node_modules/koa-mount": { 1535 | "version": "4.0.0", 1536 | "resolved": "https://registry.npmjs.org/koa-mount/-/koa-mount-4.0.0.tgz", 1537 | "integrity": "sha512-rm71jaA/P+6HeCpoRhmCv8KVBIi0tfGuO/dMKicbQnQW/YJntJ6MnnspkodoA4QstMVEZArsCphmd0bJEtoMjQ==", 1538 | "dev": true, 1539 | "dependencies": { 1540 | "debug": "^4.0.1", 1541 | "koa-compose": "^4.1.0" 1542 | }, 1543 | "engines": { 1544 | "node": ">= 7.6.0" 1545 | } 1546 | }, 1547 | "node_modules/koa-send": { 1548 | "version": "5.0.1", 1549 | "resolved": "https://registry.npmjs.org/koa-send/-/koa-send-5.0.1.tgz", 1550 | "integrity": "sha512-tmcyQ/wXXuxpDxyNXv5yNNkdAMdFRqwtegBXUaowiQzUKqJehttS0x2j0eOZDQAyloAth5w6wwBImnFzkUz3pQ==", 1551 | "dev": true, 1552 | "dependencies": { 1553 | "debug": "^4.1.1", 1554 | "http-errors": "^1.7.3", 1555 | "resolve-path": "^1.4.0" 1556 | }, 1557 | "engines": { 1558 | "node": ">= 8" 1559 | } 1560 | }, 1561 | "node_modules/koa-send/node_modules/depd": { 1562 | "version": "1.1.2", 1563 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 1564 | "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", 1565 | "dev": true, 1566 | "engines": { 1567 | "node": ">= 0.6" 1568 | } 1569 | }, 1570 | "node_modules/koa-send/node_modules/http-errors": { 1571 | "version": "1.8.1", 1572 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", 1573 | "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", 1574 | "dev": true, 1575 | "dependencies": { 1576 | "depd": "~1.1.2", 1577 | "inherits": "2.0.4", 1578 | "setprototypeof": "1.2.0", 1579 | "statuses": ">= 1.5.0 < 2", 1580 | "toidentifier": "1.0.1" 1581 | }, 1582 | "engines": { 1583 | "node": ">= 0.6" 1584 | } 1585 | }, 1586 | "node_modules/koa-send/node_modules/statuses": { 1587 | "version": "1.5.0", 1588 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1589 | "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", 1590 | "dev": true, 1591 | "engines": { 1592 | "node": ">= 0.6" 1593 | } 1594 | }, 1595 | "node_modules/koa-static": { 1596 | "version": "5.0.0", 1597 | "resolved": "https://registry.npmjs.org/koa-static/-/koa-static-5.0.0.tgz", 1598 | "integrity": "sha512-UqyYyH5YEXaJrf9S8E23GoJFQZXkBVJ9zYYMPGz919MSX1KuvAcycIuS0ci150HCoPf4XQVhQ84Qf8xRPWxFaQ==", 1599 | "dev": true, 1600 | "dependencies": { 1601 | "debug": "^3.1.0", 1602 | "koa-send": "^5.0.0" 1603 | }, 1604 | "engines": { 1605 | "node": ">= 7.6.0" 1606 | } 1607 | }, 1608 | "node_modules/koa-static/node_modules/debug": { 1609 | "version": "3.2.7", 1610 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 1611 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 1612 | "dev": true, 1613 | "dependencies": { 1614 | "ms": "^2.1.1" 1615 | } 1616 | }, 1617 | "node_modules/koa/node_modules/http-errors": { 1618 | "version": "1.8.1", 1619 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", 1620 | "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", 1621 | "dev": true, 1622 | "dependencies": { 1623 | "depd": "~1.1.2", 1624 | "inherits": "2.0.4", 1625 | "setprototypeof": "1.2.0", 1626 | "statuses": ">= 1.5.0 < 2", 1627 | "toidentifier": "1.0.1" 1628 | }, 1629 | "engines": { 1630 | "node": ">= 0.6" 1631 | } 1632 | }, 1633 | "node_modules/koa/node_modules/http-errors/node_modules/depd": { 1634 | "version": "1.1.2", 1635 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 1636 | "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", 1637 | "dev": true, 1638 | "engines": { 1639 | "node": ">= 0.6" 1640 | } 1641 | }, 1642 | "node_modules/koa/node_modules/statuses": { 1643 | "version": "1.5.0", 1644 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 1645 | "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", 1646 | "dev": true, 1647 | "engines": { 1648 | "node": ">= 0.6" 1649 | } 1650 | }, 1651 | "node_modules/lie": { 1652 | "version": "3.3.0", 1653 | "resolved": "https://registry.npmjs.org/lie/-/lie-3.3.0.tgz", 1654 | "integrity": "sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==", 1655 | "dev": true, 1656 | "dependencies": { 1657 | "immediate": "~3.0.5" 1658 | } 1659 | }, 1660 | "node_modules/locate-path": { 1661 | "version": "6.0.0", 1662 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1663 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1664 | "dependencies": { 1665 | "p-locate": "^5.0.0" 1666 | }, 1667 | "engines": { 1668 | "node": ">=10" 1669 | }, 1670 | "funding": { 1671 | "url": "https://github.com/sponsors/sindresorhus" 1672 | } 1673 | }, 1674 | "node_modules/log-symbols": { 1675 | "version": "4.1.0", 1676 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 1677 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 1678 | "dependencies": { 1679 | "chalk": "^4.1.0", 1680 | "is-unicode-supported": "^0.1.0" 1681 | }, 1682 | "engines": { 1683 | "node": ">=10" 1684 | }, 1685 | "funding": { 1686 | "url": "https://github.com/sponsors/sindresorhus" 1687 | } 1688 | }, 1689 | "node_modules/lru-cache": { 1690 | "version": "10.4.3", 1691 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 1692 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 1693 | "license": "ISC" 1694 | }, 1695 | "node_modules/make-dir": { 1696 | "version": "4.0.0", 1697 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", 1698 | "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", 1699 | "dependencies": { 1700 | "semver": "^7.5.3" 1701 | }, 1702 | "engines": { 1703 | "node": ">=10" 1704 | }, 1705 | "funding": { 1706 | "url": "https://github.com/sponsors/sindresorhus" 1707 | } 1708 | }, 1709 | "node_modules/media-typer": { 1710 | "version": "0.3.0", 1711 | "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-0.3.0.tgz", 1712 | "integrity": "sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ==", 1713 | "dev": true, 1714 | "engines": { 1715 | "node": ">= 0.6" 1716 | } 1717 | }, 1718 | "node_modules/methods": { 1719 | "version": "1.1.2", 1720 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 1721 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 1722 | "dev": true, 1723 | "engines": { 1724 | "node": ">= 0.6" 1725 | } 1726 | }, 1727 | "node_modules/mime-db": { 1728 | "version": "1.52.0", 1729 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 1730 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 1731 | "dev": true, 1732 | "engines": { 1733 | "node": ">= 0.6" 1734 | } 1735 | }, 1736 | "node_modules/mime-types": { 1737 | "version": "2.1.35", 1738 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 1739 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 1740 | "dev": true, 1741 | "dependencies": { 1742 | "mime-db": "1.52.0" 1743 | }, 1744 | "engines": { 1745 | "node": ">= 0.6" 1746 | } 1747 | }, 1748 | "node_modules/mimic-fn": { 1749 | "version": "2.1.0", 1750 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 1751 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 1752 | "dev": true, 1753 | "engines": { 1754 | "node": ">=6" 1755 | } 1756 | }, 1757 | "node_modules/minimatch": { 1758 | "version": "9.0.5", 1759 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 1760 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 1761 | "license": "ISC", 1762 | "dependencies": { 1763 | "brace-expansion": "^2.0.1" 1764 | }, 1765 | "engines": { 1766 | "node": ">=16 || 14 >=14.17" 1767 | }, 1768 | "funding": { 1769 | "url": "https://github.com/sponsors/isaacs" 1770 | } 1771 | }, 1772 | "node_modules/minimist": { 1773 | "version": "1.2.8", 1774 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 1775 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 1776 | "dev": true, 1777 | "funding": { 1778 | "url": "https://github.com/sponsors/ljharb" 1779 | } 1780 | }, 1781 | "node_modules/minipass": { 1782 | "version": "7.1.2", 1783 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 1784 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 1785 | "license": "ISC", 1786 | "engines": { 1787 | "node": ">=16 || 14 >=14.17" 1788 | } 1789 | }, 1790 | "node_modules/mocha": { 1791 | "version": "11.1.0", 1792 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.1.0.tgz", 1793 | "integrity": "sha512-8uJR5RTC2NgpY3GrYcgpZrsEd9zKbPDpob1RezyR2upGHRQtHWofmzTMzTMSV6dru3tj5Ukt0+Vnq1qhFEEwAg==", 1794 | "license": "MIT", 1795 | "dependencies": { 1796 | "ansi-colors": "^4.1.3", 1797 | "browser-stdout": "^1.3.1", 1798 | "chokidar": "^3.5.3", 1799 | "debug": "^4.3.5", 1800 | "diff": "^5.2.0", 1801 | "escape-string-regexp": "^4.0.0", 1802 | "find-up": "^5.0.0", 1803 | "glob": "^10.4.5", 1804 | "he": "^1.2.0", 1805 | "js-yaml": "^4.1.0", 1806 | "log-symbols": "^4.1.0", 1807 | "minimatch": "^5.1.6", 1808 | "ms": "^2.1.3", 1809 | "serialize-javascript": "^6.0.2", 1810 | "strip-json-comments": "^3.1.1", 1811 | "supports-color": "^8.1.1", 1812 | "workerpool": "^6.5.1", 1813 | "yargs": "^17.7.2", 1814 | "yargs-parser": "^21.1.1", 1815 | "yargs-unparser": "^2.0.0" 1816 | }, 1817 | "bin": { 1818 | "_mocha": "bin/_mocha", 1819 | "mocha": "bin/mocha.js" 1820 | }, 1821 | "engines": { 1822 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1823 | } 1824 | }, 1825 | "node_modules/mocha/node_modules/minimatch": { 1826 | "version": "5.1.6", 1827 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 1828 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 1829 | "license": "ISC", 1830 | "dependencies": { 1831 | "brace-expansion": "^2.0.1" 1832 | }, 1833 | "engines": { 1834 | "node": ">=10" 1835 | } 1836 | }, 1837 | "node_modules/mocha/node_modules/supports-color": { 1838 | "version": "8.1.1", 1839 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1840 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1841 | "dependencies": { 1842 | "has-flag": "^4.0.0" 1843 | }, 1844 | "engines": { 1845 | "node": ">=10" 1846 | }, 1847 | "funding": { 1848 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1849 | } 1850 | }, 1851 | "node_modules/morgan": { 1852 | "version": "1.10.0", 1853 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz", 1854 | "integrity": "sha512-AbegBVI4sh6El+1gNwvD5YIck7nSA36weD7xvIxG4in80j/UoK8AEGaWnnz8v1GxonMCltmlNs5ZKbGvl9b1XQ==", 1855 | "dev": true, 1856 | "dependencies": { 1857 | "basic-auth": "~2.0.1", 1858 | "debug": "2.6.9", 1859 | "depd": "~2.0.0", 1860 | "on-finished": "~2.3.0", 1861 | "on-headers": "~1.0.2" 1862 | }, 1863 | "engines": { 1864 | "node": ">= 0.8.0" 1865 | } 1866 | }, 1867 | "node_modules/morgan/node_modules/debug": { 1868 | "version": "2.6.9", 1869 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 1870 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 1871 | "dev": true, 1872 | "dependencies": { 1873 | "ms": "2.0.0" 1874 | } 1875 | }, 1876 | "node_modules/morgan/node_modules/ms": { 1877 | "version": "2.0.0", 1878 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1879 | "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==", 1880 | "dev": true 1881 | }, 1882 | "node_modules/morgan/node_modules/on-finished": { 1883 | "version": "2.3.0", 1884 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1885 | "integrity": "sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww==", 1886 | "dev": true, 1887 | "dependencies": { 1888 | "ee-first": "1.1.1" 1889 | }, 1890 | "engines": { 1891 | "node": ">= 0.8" 1892 | } 1893 | }, 1894 | "node_modules/ms": { 1895 | "version": "2.1.3", 1896 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1897 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==" 1898 | }, 1899 | "node_modules/negotiator": { 1900 | "version": "0.6.3", 1901 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", 1902 | "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", 1903 | "dev": true, 1904 | "engines": { 1905 | "node": ">= 0.6" 1906 | } 1907 | }, 1908 | "node_modules/normalize-path": { 1909 | "version": "3.0.0", 1910 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1911 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1912 | "engines": { 1913 | "node": ">=0.10.0" 1914 | } 1915 | }, 1916 | "node_modules/on-finished": { 1917 | "version": "2.4.1", 1918 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", 1919 | "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", 1920 | "dev": true, 1921 | "dependencies": { 1922 | "ee-first": "1.1.1" 1923 | }, 1924 | "engines": { 1925 | "node": ">= 0.8" 1926 | } 1927 | }, 1928 | "node_modules/on-headers": { 1929 | "version": "1.0.2", 1930 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1931 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", 1932 | "dev": true, 1933 | "engines": { 1934 | "node": ">= 0.8" 1935 | } 1936 | }, 1937 | "node_modules/once": { 1938 | "version": "1.4.0", 1939 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1940 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1941 | "dependencies": { 1942 | "wrappy": "1" 1943 | } 1944 | }, 1945 | "node_modules/onetime": { 1946 | "version": "5.1.2", 1947 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", 1948 | "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", 1949 | "dev": true, 1950 | "dependencies": { 1951 | "mimic-fn": "^2.1.0" 1952 | }, 1953 | "engines": { 1954 | "node": ">=6" 1955 | }, 1956 | "funding": { 1957 | "url": "https://github.com/sponsors/sindresorhus" 1958 | } 1959 | }, 1960 | "node_modules/only": { 1961 | "version": "0.0.2", 1962 | "resolved": "https://registry.npmjs.org/only/-/only-0.0.2.tgz", 1963 | "integrity": "sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==", 1964 | "dev": true 1965 | }, 1966 | "node_modules/ora": { 1967 | "version": "7.0.1", 1968 | "resolved": "https://registry.npmjs.org/ora/-/ora-7.0.1.tgz", 1969 | "integrity": "sha512-0TUxTiFJWv+JnjWm4o9yvuskpEJLXTcng8MJuKd+SzAzp2o+OP3HWqNhB4OdJRt1Vsd9/mR0oyaEYlOnL7XIRw==", 1970 | "dev": true, 1971 | "dependencies": { 1972 | "chalk": "^5.3.0", 1973 | "cli-cursor": "^4.0.0", 1974 | "cli-spinners": "^2.9.0", 1975 | "is-interactive": "^2.0.0", 1976 | "is-unicode-supported": "^1.3.0", 1977 | "log-symbols": "^5.1.0", 1978 | "stdin-discarder": "^0.1.0", 1979 | "string-width": "^6.1.0", 1980 | "strip-ansi": "^7.1.0" 1981 | }, 1982 | "engines": { 1983 | "node": ">=16" 1984 | }, 1985 | "funding": { 1986 | "url": "https://github.com/sponsors/sindresorhus" 1987 | } 1988 | }, 1989 | "node_modules/ora/node_modules/chalk": { 1990 | "version": "5.3.0", 1991 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", 1992 | "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", 1993 | "dev": true, 1994 | "engines": { 1995 | "node": "^12.17.0 || ^14.13 || >=16.0.0" 1996 | }, 1997 | "funding": { 1998 | "url": "https://github.com/chalk/chalk?sponsor=1" 1999 | } 2000 | }, 2001 | "node_modules/ora/node_modules/emoji-regex": { 2002 | "version": "10.3.0", 2003 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.3.0.tgz", 2004 | "integrity": "sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==", 2005 | "dev": true 2006 | }, 2007 | "node_modules/ora/node_modules/is-unicode-supported": { 2008 | "version": "1.3.0", 2009 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-1.3.0.tgz", 2010 | "integrity": "sha512-43r2mRvz+8JRIKnWJ+3j8JtjRKZ6GmjzfaE/qiBJnikNnYv/6bagRJ1kUhNk8R5EX/GkobD+r+sfxCPJsiKBLQ==", 2011 | "dev": true, 2012 | "engines": { 2013 | "node": ">=12" 2014 | }, 2015 | "funding": { 2016 | "url": "https://github.com/sponsors/sindresorhus" 2017 | } 2018 | }, 2019 | "node_modules/ora/node_modules/log-symbols": { 2020 | "version": "5.1.0", 2021 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-5.1.0.tgz", 2022 | "integrity": "sha512-l0x2DvrW294C9uDCoQe1VSU4gf529FkSZ6leBl4TiqZH/e+0R7hSfHQBNut2mNygDgHwvYHfFLn6Oxb3VWj2rA==", 2023 | "dev": true, 2024 | "dependencies": { 2025 | "chalk": "^5.0.0", 2026 | "is-unicode-supported": "^1.1.0" 2027 | }, 2028 | "engines": { 2029 | "node": ">=12" 2030 | }, 2031 | "funding": { 2032 | "url": "https://github.com/sponsors/sindresorhus" 2033 | } 2034 | }, 2035 | "node_modules/ora/node_modules/string-width": { 2036 | "version": "6.1.0", 2037 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-6.1.0.tgz", 2038 | "integrity": "sha512-k01swCJAgQmuADB0YIc+7TuatfNvTBVOoaUWJjTB9R4VJzR5vNWzf5t42ESVZFPS8xTySF7CAdV4t/aaIm3UnQ==", 2039 | "dev": true, 2040 | "dependencies": { 2041 | "eastasianwidth": "^0.2.0", 2042 | "emoji-regex": "^10.2.1", 2043 | "strip-ansi": "^7.0.1" 2044 | }, 2045 | "engines": { 2046 | "node": ">=16" 2047 | }, 2048 | "funding": { 2049 | "url": "https://github.com/sponsors/sindresorhus" 2050 | } 2051 | }, 2052 | "node_modules/p-limit": { 2053 | "version": "3.1.0", 2054 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2055 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2056 | "dependencies": { 2057 | "yocto-queue": "^0.1.0" 2058 | }, 2059 | "engines": { 2060 | "node": ">=10" 2061 | }, 2062 | "funding": { 2063 | "url": "https://github.com/sponsors/sindresorhus" 2064 | } 2065 | }, 2066 | "node_modules/p-locate": { 2067 | "version": "5.0.0", 2068 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2069 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2070 | "dependencies": { 2071 | "p-limit": "^3.0.2" 2072 | }, 2073 | "engines": { 2074 | "node": ">=10" 2075 | }, 2076 | "funding": { 2077 | "url": "https://github.com/sponsors/sindresorhus" 2078 | } 2079 | }, 2080 | "node_modules/package-json-from-dist": { 2081 | "version": "1.0.1", 2082 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", 2083 | "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", 2084 | "license": "BlueOak-1.0.0" 2085 | }, 2086 | "node_modules/pako": { 2087 | "version": "0.2.9", 2088 | "resolved": "https://registry.npmjs.org/pako/-/pako-0.2.9.tgz", 2089 | "integrity": "sha512-NUcwaKxUxWrZLpDG+z/xZaCgQITkA/Dv4V/T6bw7VON6l1Xz/VnrBqrYjZQ12TamKHzITTfOEIYUj48y2KXImA==", 2090 | "dev": true 2091 | }, 2092 | "node_modules/parseurl": { 2093 | "version": "1.3.3", 2094 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 2095 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 2096 | "dev": true, 2097 | "engines": { 2098 | "node": ">= 0.8" 2099 | } 2100 | }, 2101 | "node_modules/path-exists": { 2102 | "version": "4.0.0", 2103 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2104 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2105 | "engines": { 2106 | "node": ">=8" 2107 | } 2108 | }, 2109 | "node_modules/path-is-absolute": { 2110 | "version": "1.0.1", 2111 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 2112 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 2113 | "engines": { 2114 | "node": ">=0.10.0" 2115 | } 2116 | }, 2117 | "node_modules/path-key": { 2118 | "version": "3.1.1", 2119 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2120 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2121 | "engines": { 2122 | "node": ">=8" 2123 | } 2124 | }, 2125 | "node_modules/path-scurry": { 2126 | "version": "1.11.1", 2127 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 2128 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 2129 | "license": "BlueOak-1.0.0", 2130 | "dependencies": { 2131 | "lru-cache": "^10.2.0", 2132 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 2133 | }, 2134 | "engines": { 2135 | "node": ">=16 || 14 >=14.18" 2136 | }, 2137 | "funding": { 2138 | "url": "https://github.com/sponsors/isaacs" 2139 | } 2140 | }, 2141 | "node_modules/path-to-regexp": { 2142 | "version": "6.3.0", 2143 | "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.3.0.tgz", 2144 | "integrity": "sha512-Yhpw4T9C6hPpgPeA28us07OJeqZ5EzQTkbfwuhsUg0c237RomFoETJgmp2sa3F/41gfLE6G5cqcYwznmeEeOlQ==", 2145 | "dev": true 2146 | }, 2147 | "node_modules/peek-stream": { 2148 | "version": "1.1.3", 2149 | "resolved": "https://registry.npmjs.org/peek-stream/-/peek-stream-1.1.3.tgz", 2150 | "integrity": "sha512-FhJ+YbOSBb9/rIl2ZeE/QHEsWn7PqNYt8ARAY3kIgNGOk13g9FGyIY6JIl/xB/3TFRVoTv5as0l11weORrTekA==", 2151 | "dev": true, 2152 | "dependencies": { 2153 | "buffer-from": "^1.0.0", 2154 | "duplexify": "^3.5.0", 2155 | "through2": "^2.0.3" 2156 | } 2157 | }, 2158 | "node_modules/picomatch": { 2159 | "version": "2.3.1", 2160 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 2161 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 2162 | "engines": { 2163 | "node": ">=8.6" 2164 | }, 2165 | "funding": { 2166 | "url": "https://github.com/sponsors/jonschlinkert" 2167 | } 2168 | }, 2169 | "node_modules/playwright": { 2170 | "version": "1.42.1", 2171 | "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.42.1.tgz", 2172 | "integrity": "sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==", 2173 | "dev": true, 2174 | "dependencies": { 2175 | "playwright-core": "1.42.1" 2176 | }, 2177 | "bin": { 2178 | "playwright": "cli.js" 2179 | }, 2180 | "engines": { 2181 | "node": ">=16" 2182 | }, 2183 | "optionalDependencies": { 2184 | "fsevents": "2.3.2" 2185 | } 2186 | }, 2187 | "node_modules/playwright-core": { 2188 | "version": "1.42.1", 2189 | "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.42.1.tgz", 2190 | "integrity": "sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==", 2191 | "dev": true, 2192 | "bin": { 2193 | "playwright-core": "cli.js" 2194 | }, 2195 | "engines": { 2196 | "node": ">=16" 2197 | } 2198 | }, 2199 | "node_modules/playwright/node_modules/fsevents": { 2200 | "version": "2.3.2", 2201 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", 2202 | "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", 2203 | "dev": true, 2204 | "hasInstallScript": true, 2205 | "optional": true, 2206 | "os": [ 2207 | "darwin" 2208 | ], 2209 | "engines": { 2210 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 2211 | } 2212 | }, 2213 | "node_modules/prettier": { 2214 | "version": "3.2.4", 2215 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.2.4.tgz", 2216 | "integrity": "sha512-FWu1oLHKCrtpO1ypU6J0SbK2d9Ckwysq6bHj/uaCP26DxrPpppCLQRGVuqAxSTvhF00AcvDRyYrLNW7ocBhFFQ==", 2217 | "dev": true, 2218 | "bin": { 2219 | "prettier": "bin/prettier.cjs" 2220 | }, 2221 | "engines": { 2222 | "node": ">=14" 2223 | }, 2224 | "funding": { 2225 | "url": "https://github.com/prettier/prettier?sponsor=1" 2226 | } 2227 | }, 2228 | "node_modules/process-nextick-args": { 2229 | "version": "2.0.1", 2230 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 2231 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 2232 | "dev": true 2233 | }, 2234 | "node_modules/pump": { 2235 | "version": "2.0.1", 2236 | "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", 2237 | "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", 2238 | "dev": true, 2239 | "dependencies": { 2240 | "end-of-stream": "^1.1.0", 2241 | "once": "^1.3.1" 2242 | } 2243 | }, 2244 | "node_modules/pumpify": { 2245 | "version": "1.5.1", 2246 | "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", 2247 | "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", 2248 | "dev": true, 2249 | "dependencies": { 2250 | "duplexify": "^3.6.0", 2251 | "inherits": "^2.0.3", 2252 | "pump": "^2.0.0" 2253 | } 2254 | }, 2255 | "node_modules/randombytes": { 2256 | "version": "2.1.0", 2257 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 2258 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 2259 | "dependencies": { 2260 | "safe-buffer": "^5.1.0" 2261 | } 2262 | }, 2263 | "node_modules/readable-stream": { 2264 | "version": "2.3.8", 2265 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", 2266 | "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", 2267 | "dev": true, 2268 | "dependencies": { 2269 | "core-util-is": "~1.0.0", 2270 | "inherits": "~2.0.3", 2271 | "isarray": "~1.0.0", 2272 | "process-nextick-args": "~2.0.0", 2273 | "safe-buffer": "~5.1.1", 2274 | "string_decoder": "~1.1.1", 2275 | "util-deprecate": "~1.0.1" 2276 | } 2277 | }, 2278 | "node_modules/readable-stream/node_modules/safe-buffer": { 2279 | "version": "5.1.2", 2280 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2281 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 2282 | "dev": true 2283 | }, 2284 | "node_modules/readdirp": { 2285 | "version": "3.6.0", 2286 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 2287 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 2288 | "dependencies": { 2289 | "picomatch": "^2.2.1" 2290 | }, 2291 | "engines": { 2292 | "node": ">=8.10.0" 2293 | } 2294 | }, 2295 | "node_modules/require-directory": { 2296 | "version": "2.1.1", 2297 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2298 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 2299 | "engines": { 2300 | "node": ">=0.10.0" 2301 | } 2302 | }, 2303 | "node_modules/resolve-path": { 2304 | "version": "1.4.0", 2305 | "resolved": "https://registry.npmjs.org/resolve-path/-/resolve-path-1.4.0.tgz", 2306 | "integrity": "sha512-i1xevIst/Qa+nA9olDxLWnLk8YZbi8R/7JPbCMcgyWaFR6bKWaexgJgEB5oc2PKMjYdrHynyz0NY+if+H98t1w==", 2307 | "dev": true, 2308 | "dependencies": { 2309 | "http-errors": "~1.6.2", 2310 | "path-is-absolute": "1.0.1" 2311 | }, 2312 | "engines": { 2313 | "node": ">= 0.8" 2314 | } 2315 | }, 2316 | "node_modules/resolve-path/node_modules/depd": { 2317 | "version": "1.1.2", 2318 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 2319 | "integrity": "sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ==", 2320 | "dev": true, 2321 | "engines": { 2322 | "node": ">= 0.6" 2323 | } 2324 | }, 2325 | "node_modules/resolve-path/node_modules/http-errors": { 2326 | "version": "1.6.3", 2327 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 2328 | "integrity": "sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A==", 2329 | "dev": true, 2330 | "dependencies": { 2331 | "depd": "~1.1.2", 2332 | "inherits": "2.0.3", 2333 | "setprototypeof": "1.1.0", 2334 | "statuses": ">= 1.4.0 < 2" 2335 | }, 2336 | "engines": { 2337 | "node": ">= 0.6" 2338 | } 2339 | }, 2340 | "node_modules/resolve-path/node_modules/inherits": { 2341 | "version": "2.0.3", 2342 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 2343 | "integrity": "sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw==", 2344 | "dev": true 2345 | }, 2346 | "node_modules/resolve-path/node_modules/setprototypeof": { 2347 | "version": "1.1.0", 2348 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 2349 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", 2350 | "dev": true 2351 | }, 2352 | "node_modules/resolve-path/node_modules/statuses": { 2353 | "version": "1.5.0", 2354 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2355 | "integrity": "sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA==", 2356 | "dev": true, 2357 | "engines": { 2358 | "node": ">= 0.6" 2359 | } 2360 | }, 2361 | "node_modules/restore-cursor": { 2362 | "version": "4.0.0", 2363 | "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-4.0.0.tgz", 2364 | "integrity": "sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg==", 2365 | "dev": true, 2366 | "dependencies": { 2367 | "onetime": "^5.1.0", 2368 | "signal-exit": "^3.0.2" 2369 | }, 2370 | "engines": { 2371 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 2372 | }, 2373 | "funding": { 2374 | "url": "https://github.com/sponsors/sindresorhus" 2375 | } 2376 | }, 2377 | "node_modules/restore-cursor/node_modules/signal-exit": { 2378 | "version": "3.0.7", 2379 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", 2380 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", 2381 | "dev": true 2382 | }, 2383 | "node_modules/safe-buffer": { 2384 | "version": "5.2.1", 2385 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2386 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2387 | "funding": [ 2388 | { 2389 | "type": "github", 2390 | "url": "https://github.com/sponsors/feross" 2391 | }, 2392 | { 2393 | "type": "patreon", 2394 | "url": "https://www.patreon.com/feross" 2395 | }, 2396 | { 2397 | "type": "consulting", 2398 | "url": "https://feross.org/support" 2399 | } 2400 | ] 2401 | }, 2402 | "node_modules/semver": { 2403 | "version": "7.6.2", 2404 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", 2405 | "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", 2406 | "bin": { 2407 | "semver": "bin/semver.js" 2408 | }, 2409 | "engines": { 2410 | "node": ">=10" 2411 | } 2412 | }, 2413 | "node_modules/serialize-javascript": { 2414 | "version": "6.0.2", 2415 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 2416 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 2417 | "dependencies": { 2418 | "randombytes": "^2.1.0" 2419 | } 2420 | }, 2421 | "node_modules/setimmediate": { 2422 | "version": "1.0.5", 2423 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2424 | "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==", 2425 | "dev": true 2426 | }, 2427 | "node_modules/setprototypeof": { 2428 | "version": "1.2.0", 2429 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", 2430 | "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", 2431 | "dev": true 2432 | }, 2433 | "node_modules/shebang-command": { 2434 | "version": "2.0.0", 2435 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 2436 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 2437 | "dependencies": { 2438 | "shebang-regex": "^3.0.0" 2439 | }, 2440 | "engines": { 2441 | "node": ">=8" 2442 | } 2443 | }, 2444 | "node_modules/shebang-regex": { 2445 | "version": "3.0.0", 2446 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 2447 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 2448 | "engines": { 2449 | "node": ">=8" 2450 | } 2451 | }, 2452 | "node_modules/signal-exit": { 2453 | "version": "4.1.0", 2454 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 2455 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 2456 | "engines": { 2457 | "node": ">=14" 2458 | }, 2459 | "funding": { 2460 | "url": "https://github.com/sponsors/isaacs" 2461 | } 2462 | }, 2463 | "node_modules/statuses": { 2464 | "version": "2.0.1", 2465 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", 2466 | "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", 2467 | "dev": true, 2468 | "engines": { 2469 | "node": ">= 0.8" 2470 | } 2471 | }, 2472 | "node_modules/stdin-discarder": { 2473 | "version": "0.1.0", 2474 | "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.1.0.tgz", 2475 | "integrity": "sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==", 2476 | "dev": true, 2477 | "dependencies": { 2478 | "bl": "^5.0.0" 2479 | }, 2480 | "engines": { 2481 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 2482 | }, 2483 | "funding": { 2484 | "url": "https://github.com/sponsors/sindresorhus" 2485 | } 2486 | }, 2487 | "node_modules/stream-shift": { 2488 | "version": "1.0.3", 2489 | "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.3.tgz", 2490 | "integrity": "sha512-76ORR0DO1o1hlKwTbi/DM3EXWGf3ZJYO8cXX5RJwnul2DEg2oyoZyjLNoQM8WsvZiFKCRfC1O0J7iCvie3RZmQ==", 2491 | "dev": true 2492 | }, 2493 | "node_modules/streamx": { 2494 | "version": "2.22.0", 2495 | "resolved": "https://registry.npmjs.org/streamx/-/streamx-2.22.0.tgz", 2496 | "integrity": "sha512-sLh1evHOzBy/iWRiR6d1zRcLao4gGZr3C1kzNz4fopCOKJb6xD9ub8Mpi9Mr1R6id5o43S+d93fI48UC5uM9aw==", 2497 | "dev": true, 2498 | "license": "MIT", 2499 | "dependencies": { 2500 | "fast-fifo": "^1.3.2", 2501 | "text-decoder": "^1.1.0" 2502 | }, 2503 | "optionalDependencies": { 2504 | "bare-events": "^2.2.0" 2505 | } 2506 | }, 2507 | "node_modules/string_decoder": { 2508 | "version": "1.1.1", 2509 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 2510 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 2511 | "dev": true, 2512 | "dependencies": { 2513 | "safe-buffer": "~5.1.0" 2514 | } 2515 | }, 2516 | "node_modules/string_decoder/node_modules/safe-buffer": { 2517 | "version": "5.1.2", 2518 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 2519 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 2520 | "dev": true 2521 | }, 2522 | "node_modules/string-width": { 2523 | "version": "5.1.2", 2524 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 2525 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 2526 | "license": "MIT", 2527 | "dependencies": { 2528 | "eastasianwidth": "^0.2.0", 2529 | "emoji-regex": "^9.2.2", 2530 | "strip-ansi": "^7.0.1" 2531 | }, 2532 | "engines": { 2533 | "node": ">=12" 2534 | }, 2535 | "funding": { 2536 | "url": "https://github.com/sponsors/sindresorhus" 2537 | } 2538 | }, 2539 | "node_modules/string-width-cjs": { 2540 | "name": "string-width", 2541 | "version": "4.2.3", 2542 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2543 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2544 | "license": "MIT", 2545 | "dependencies": { 2546 | "emoji-regex": "^8.0.0", 2547 | "is-fullwidth-code-point": "^3.0.0", 2548 | "strip-ansi": "^6.0.1" 2549 | }, 2550 | "engines": { 2551 | "node": ">=8" 2552 | } 2553 | }, 2554 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 2555 | "version": "5.0.1", 2556 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2557 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2558 | "license": "MIT", 2559 | "engines": { 2560 | "node": ">=8" 2561 | } 2562 | }, 2563 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 2564 | "version": "8.0.0", 2565 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2566 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2567 | "license": "MIT" 2568 | }, 2569 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 2570 | "version": "6.0.1", 2571 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2572 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2573 | "license": "MIT", 2574 | "dependencies": { 2575 | "ansi-regex": "^5.0.1" 2576 | }, 2577 | "engines": { 2578 | "node": ">=8" 2579 | } 2580 | }, 2581 | "node_modules/strip-ansi": { 2582 | "version": "7.1.0", 2583 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 2584 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 2585 | "dependencies": { 2586 | "ansi-regex": "^6.0.1" 2587 | }, 2588 | "engines": { 2589 | "node": ">=12" 2590 | }, 2591 | "funding": { 2592 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 2593 | } 2594 | }, 2595 | "node_modules/strip-ansi-cjs": { 2596 | "name": "strip-ansi", 2597 | "version": "6.0.1", 2598 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2599 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2600 | "license": "MIT", 2601 | "dependencies": { 2602 | "ansi-regex": "^5.0.1" 2603 | }, 2604 | "engines": { 2605 | "node": ">=8" 2606 | } 2607 | }, 2608 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 2609 | "version": "5.0.1", 2610 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2611 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2612 | "license": "MIT", 2613 | "engines": { 2614 | "node": ">=8" 2615 | } 2616 | }, 2617 | "node_modules/strip-json-comments": { 2618 | "version": "3.1.1", 2619 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 2620 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 2621 | "engines": { 2622 | "node": ">=8" 2623 | }, 2624 | "funding": { 2625 | "url": "https://github.com/sponsors/sindresorhus" 2626 | } 2627 | }, 2628 | "node_modules/supports-color": { 2629 | "version": "9.4.0", 2630 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-9.4.0.tgz", 2631 | "integrity": "sha512-VL+lNrEoIXww1coLPOmiEmK/0sGigko5COxI09KzHc2VJXJsQ37UaQ+8quuxjDeA7+KnLGTWRyOXSLLR2Wb4jw==", 2632 | "engines": { 2633 | "node": ">=12" 2634 | }, 2635 | "funding": { 2636 | "url": "https://github.com/chalk/supports-color?sponsor=1" 2637 | } 2638 | }, 2639 | "node_modules/tapable": { 2640 | "version": "2.2.1", 2641 | "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz", 2642 | "integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==", 2643 | "engines": { 2644 | "node": ">=6" 2645 | } 2646 | }, 2647 | "node_modules/tar-fs": { 2648 | "version": "3.0.9", 2649 | "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-3.0.9.tgz", 2650 | "integrity": "sha512-XF4w9Xp+ZQgifKakjZYmFdkLoSWd34VGKcsTCwlNWM7QG3ZbaxnTsaBwnjFZqHRf/rROxaR8rXnbtwdvaDI+lA==", 2651 | "dev": true, 2652 | "license": "MIT", 2653 | "dependencies": { 2654 | "pump": "^3.0.0", 2655 | "tar-stream": "^3.1.5" 2656 | }, 2657 | "optionalDependencies": { 2658 | "bare-fs": "^4.0.1", 2659 | "bare-path": "^3.0.0" 2660 | } 2661 | }, 2662 | "node_modules/tar-fs/node_modules/pump": { 2663 | "version": "3.0.0", 2664 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 2665 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 2666 | "dev": true, 2667 | "dependencies": { 2668 | "end-of-stream": "^1.1.0", 2669 | "once": "^1.3.1" 2670 | } 2671 | }, 2672 | "node_modules/tar-stream": { 2673 | "version": "3.1.7", 2674 | "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.1.7.tgz", 2675 | "integrity": "sha512-qJj60CXt7IU1Ffyc3NJMjh6EkuCFej46zUqJ4J7pqYlThyd9bO0XBTmcOIhSzZJVWfsLks0+nle/j538YAW9RQ==", 2676 | "dev": true, 2677 | "dependencies": { 2678 | "b4a": "^1.6.4", 2679 | "fast-fifo": "^1.2.0", 2680 | "streamx": "^2.15.0" 2681 | } 2682 | }, 2683 | "node_modules/test-exclude": { 2684 | "version": "6.0.0", 2685 | "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", 2686 | "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", 2687 | "dependencies": { 2688 | "@istanbuljs/schema": "^0.1.2", 2689 | "glob": "^7.1.4", 2690 | "minimatch": "^3.0.4" 2691 | }, 2692 | "engines": { 2693 | "node": ">=8" 2694 | } 2695 | }, 2696 | "node_modules/test-exclude/node_modules/brace-expansion": { 2697 | "version": "1.1.11", 2698 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 2699 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 2700 | "dependencies": { 2701 | "balanced-match": "^1.0.0", 2702 | "concat-map": "0.0.1" 2703 | } 2704 | }, 2705 | "node_modules/test-exclude/node_modules/glob": { 2706 | "version": "7.2.3", 2707 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 2708 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 2709 | "dependencies": { 2710 | "fs.realpath": "^1.0.0", 2711 | "inflight": "^1.0.4", 2712 | "inherits": "2", 2713 | "minimatch": "^3.1.1", 2714 | "once": "^1.3.0", 2715 | "path-is-absolute": "^1.0.0" 2716 | }, 2717 | "engines": { 2718 | "node": "*" 2719 | }, 2720 | "funding": { 2721 | "url": "https://github.com/sponsors/isaacs" 2722 | } 2723 | }, 2724 | "node_modules/test-exclude/node_modules/minimatch": { 2725 | "version": "3.1.2", 2726 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2727 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2728 | "dependencies": { 2729 | "brace-expansion": "^1.1.7" 2730 | }, 2731 | "engines": { 2732 | "node": "*" 2733 | } 2734 | }, 2735 | "node_modules/text-decoder": { 2736 | "version": "1.2.3", 2737 | "resolved": "https://registry.npmjs.org/text-decoder/-/text-decoder-1.2.3.tgz", 2738 | "integrity": "sha512-3/o9z3X0X0fTupwsYvR03pJ/DjWuqqrfwBgTQzdWDiQSm9KitAyz/9WqsT2JQW7KV2m+bC2ol/zqpW37NHxLaA==", 2739 | "dev": true, 2740 | "license": "Apache-2.0", 2741 | "dependencies": { 2742 | "b4a": "^1.6.4" 2743 | } 2744 | }, 2745 | "node_modules/through2": { 2746 | "version": "2.0.5", 2747 | "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", 2748 | "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", 2749 | "dev": true, 2750 | "dependencies": { 2751 | "readable-stream": "~2.3.6", 2752 | "xtend": "~4.0.1" 2753 | } 2754 | }, 2755 | "node_modules/to-regex-range": { 2756 | "version": "5.0.1", 2757 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 2758 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 2759 | "dependencies": { 2760 | "is-number": "^7.0.0" 2761 | }, 2762 | "engines": { 2763 | "node": ">=8.0" 2764 | } 2765 | }, 2766 | "node_modules/toidentifier": { 2767 | "version": "1.0.1", 2768 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", 2769 | "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", 2770 | "dev": true, 2771 | "engines": { 2772 | "node": ">=0.6" 2773 | } 2774 | }, 2775 | "node_modules/tsscmp": { 2776 | "version": "1.0.6", 2777 | "resolved": "https://registry.npmjs.org/tsscmp/-/tsscmp-1.0.6.tgz", 2778 | "integrity": "sha512-LxhtAkPDTkVCMQjt2h6eBVY28KCjikZqZfMcC15YBeNjkgUpdCfBu5HoiOTDu86v6smE8yOjyEktJ8hlbANHQA==", 2779 | "dev": true, 2780 | "engines": { 2781 | "node": ">=0.6.x" 2782 | } 2783 | }, 2784 | "node_modules/type-is": { 2785 | "version": "1.6.18", 2786 | "resolved": "https://registry.npmjs.org/type-is/-/type-is-1.6.18.tgz", 2787 | "integrity": "sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g==", 2788 | "dev": true, 2789 | "dependencies": { 2790 | "media-typer": "0.3.0", 2791 | "mime-types": "~2.1.24" 2792 | }, 2793 | "engines": { 2794 | "node": ">= 0.6" 2795 | } 2796 | }, 2797 | "node_modules/typescript": { 2798 | "version": "5.4.2", 2799 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.2.tgz", 2800 | "integrity": "sha512-+2/g0Fds1ERlP6JsakQQDXjZdZMM+rqpamFZJEKh4kwTIn3iDkgKtby0CeNd5ATNZ4Ry1ax15TMx0W2V+miizQ==", 2801 | "dev": true, 2802 | "bin": { 2803 | "tsc": "bin/tsc", 2804 | "tsserver": "bin/tsserver" 2805 | }, 2806 | "engines": { 2807 | "node": ">=14.17" 2808 | } 2809 | }, 2810 | "node_modules/undici-types": { 2811 | "version": "5.26.5", 2812 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 2813 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", 2814 | "dev": true 2815 | }, 2816 | "node_modules/util-deprecate": { 2817 | "version": "1.0.2", 2818 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2819 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 2820 | "dev": true 2821 | }, 2822 | "node_modules/v8-to-istanbul": { 2823 | "version": "9.2.0", 2824 | "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.2.0.tgz", 2825 | "integrity": "sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==", 2826 | "dependencies": { 2827 | "@jridgewell/trace-mapping": "^0.3.12", 2828 | "@types/istanbul-lib-coverage": "^2.0.1", 2829 | "convert-source-map": "^2.0.0" 2830 | }, 2831 | "engines": { 2832 | "node": ">=10.12.0" 2833 | } 2834 | }, 2835 | "node_modules/vary": { 2836 | "version": "1.1.2", 2837 | "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", 2838 | "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", 2839 | "dev": true, 2840 | "engines": { 2841 | "node": ">= 0.8" 2842 | } 2843 | }, 2844 | "node_modules/vscode-uri": { 2845 | "version": "3.0.8", 2846 | "resolved": "https://registry.npmjs.org/vscode-uri/-/vscode-uri-3.0.8.tgz", 2847 | "integrity": "sha512-AyFQ0EVmsOZOlAnxoFOGOq1SQDWAB7C6aqMGS23svWAllfOaxbuFvcT8D1i8z3Gyn8fraVeZNNmN6e9bxxXkKw==", 2848 | "dev": true 2849 | }, 2850 | "node_modules/which": { 2851 | "version": "2.0.2", 2852 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2853 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2854 | "dependencies": { 2855 | "isexe": "^2.0.0" 2856 | }, 2857 | "bin": { 2858 | "node-which": "bin/node-which" 2859 | }, 2860 | "engines": { 2861 | "node": ">= 8" 2862 | } 2863 | }, 2864 | "node_modules/workerpool": { 2865 | "version": "6.5.1", 2866 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", 2867 | "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==" 2868 | }, 2869 | "node_modules/wrap-ansi": { 2870 | "version": "8.1.0", 2871 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 2872 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 2873 | "license": "MIT", 2874 | "dependencies": { 2875 | "ansi-styles": "^6.1.0", 2876 | "string-width": "^5.0.1", 2877 | "strip-ansi": "^7.0.1" 2878 | }, 2879 | "engines": { 2880 | "node": ">=12" 2881 | }, 2882 | "funding": { 2883 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2884 | } 2885 | }, 2886 | "node_modules/wrap-ansi-cjs": { 2887 | "name": "wrap-ansi", 2888 | "version": "7.0.0", 2889 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2890 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2891 | "license": "MIT", 2892 | "dependencies": { 2893 | "ansi-styles": "^4.0.0", 2894 | "string-width": "^4.1.0", 2895 | "strip-ansi": "^6.0.0" 2896 | }, 2897 | "engines": { 2898 | "node": ">=10" 2899 | }, 2900 | "funding": { 2901 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2902 | } 2903 | }, 2904 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 2905 | "version": "5.0.1", 2906 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2907 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2908 | "license": "MIT", 2909 | "engines": { 2910 | "node": ">=8" 2911 | } 2912 | }, 2913 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2914 | "version": "8.0.0", 2915 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2916 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2917 | "license": "MIT" 2918 | }, 2919 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2920 | "version": "4.2.3", 2921 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2922 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2923 | "license": "MIT", 2924 | "dependencies": { 2925 | "emoji-regex": "^8.0.0", 2926 | "is-fullwidth-code-point": "^3.0.0", 2927 | "strip-ansi": "^6.0.1" 2928 | }, 2929 | "engines": { 2930 | "node": ">=8" 2931 | } 2932 | }, 2933 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 2934 | "version": "6.0.1", 2935 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2936 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2937 | "license": "MIT", 2938 | "dependencies": { 2939 | "ansi-regex": "^5.0.1" 2940 | }, 2941 | "engines": { 2942 | "node": ">=8" 2943 | } 2944 | }, 2945 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 2946 | "version": "6.2.1", 2947 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 2948 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 2949 | "license": "MIT", 2950 | "engines": { 2951 | "node": ">=12" 2952 | }, 2953 | "funding": { 2954 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2955 | } 2956 | }, 2957 | "node_modules/wrappy": { 2958 | "version": "1.0.2", 2959 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2960 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 2961 | }, 2962 | "node_modules/xtend": { 2963 | "version": "4.0.2", 2964 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 2965 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", 2966 | "dev": true, 2967 | "engines": { 2968 | "node": ">=0.4" 2969 | } 2970 | }, 2971 | "node_modules/y18n": { 2972 | "version": "5.0.8", 2973 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2974 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2975 | "engines": { 2976 | "node": ">=10" 2977 | } 2978 | }, 2979 | "node_modules/yargs": { 2980 | "version": "17.7.2", 2981 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 2982 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 2983 | "dependencies": { 2984 | "cliui": "^8.0.1", 2985 | "escalade": "^3.1.1", 2986 | "get-caller-file": "^2.0.5", 2987 | "require-directory": "^2.1.1", 2988 | "string-width": "^4.2.3", 2989 | "y18n": "^5.0.5", 2990 | "yargs-parser": "^21.1.1" 2991 | }, 2992 | "engines": { 2993 | "node": ">=12" 2994 | } 2995 | }, 2996 | "node_modules/yargs-parser": { 2997 | "version": "21.1.1", 2998 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 2999 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 3000 | "license": "ISC", 3001 | "engines": { 3002 | "node": ">=12" 3003 | } 3004 | }, 3005 | "node_modules/yargs-unparser": { 3006 | "version": "2.0.0", 3007 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 3008 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 3009 | "dependencies": { 3010 | "camelcase": "^6.0.0", 3011 | "decamelize": "^4.0.0", 3012 | "flat": "^5.0.2", 3013 | "is-plain-obj": "^2.1.0" 3014 | }, 3015 | "engines": { 3016 | "node": ">=10" 3017 | } 3018 | }, 3019 | "node_modules/yargs/node_modules/ansi-regex": { 3020 | "version": "5.0.1", 3021 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 3022 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 3023 | "engines": { 3024 | "node": ">=8" 3025 | } 3026 | }, 3027 | "node_modules/yargs/node_modules/emoji-regex": { 3028 | "version": "8.0.0", 3029 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 3030 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 3031 | }, 3032 | "node_modules/yargs/node_modules/string-width": { 3033 | "version": "4.2.3", 3034 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 3035 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 3036 | "dependencies": { 3037 | "emoji-regex": "^8.0.0", 3038 | "is-fullwidth-code-point": "^3.0.0", 3039 | "strip-ansi": "^6.0.1" 3040 | }, 3041 | "engines": { 3042 | "node": ">=8" 3043 | } 3044 | }, 3045 | "node_modules/yargs/node_modules/strip-ansi": { 3046 | "version": "6.0.1", 3047 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 3048 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 3049 | "dependencies": { 3050 | "ansi-regex": "^5.0.1" 3051 | }, 3052 | "engines": { 3053 | "node": ">=8" 3054 | } 3055 | }, 3056 | "node_modules/ylru": { 3057 | "version": "1.3.2", 3058 | "resolved": "https://registry.npmjs.org/ylru/-/ylru-1.3.2.tgz", 3059 | "integrity": "sha512-RXRJzMiK6U2ye0BlGGZnmpwJDPgakn6aNQ0A7gHRbD4I0uvK4TW6UqkK1V0pp9jskjJBAXd3dRrbzWkqJ+6cxA==", 3060 | "dev": true, 3061 | "engines": { 3062 | "node": ">= 4.0.0" 3063 | } 3064 | }, 3065 | "node_modules/yocto-queue": { 3066 | "version": "0.1.0", 3067 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 3068 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 3069 | "engines": { 3070 | "node": ">=10" 3071 | }, 3072 | "funding": { 3073 | "url": "https://github.com/sponsors/sindresorhus" 3074 | } 3075 | } 3076 | } 3077 | } 3078 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@vscode/test-cli", 3 | "version": "0.0.11", 4 | "description": "Command-line runner for VS Code extension tests", 5 | "scripts": { 6 | "prepack": "npm run build", 7 | "build": "npm run clean && tsc", 8 | "clean": "node -e \"fs.rmSync('out',{force:true,recursive:true})\"", 9 | "test": "npm run clean && tsc --noEmit", 10 | "fmt": "prettier --write \"src/**/*.{mts,cts}\" \"*.md\"", 11 | "watch": "tsc --watch", 12 | "prettier": "prettier --write src" 13 | }, 14 | "engines": { 15 | "node": ">=18" 16 | }, 17 | "type": "module", 18 | "main": "out/index.cjs", 19 | "bin": { 20 | "vscode-test": "./out/bin.mjs" 21 | }, 22 | "exports": { 23 | ".": { 24 | "import": "./out/index.mjs", 25 | "require": "./out/index.cjs" 26 | }, 27 | "./fullJsonStream": { 28 | "require": "./out/fullJsonStreamReporter.cjs" 29 | } 30 | }, 31 | "repository": { 32 | "type": "git", 33 | "url": "git+https://github.com/Microsoft/vscode-test-cli.git" 34 | }, 35 | "keywords": [ 36 | "vscode", 37 | "test", 38 | "cli" 39 | ], 40 | "author": "Connor Peet ", 41 | "license": "MIT", 42 | "bugs": { 43 | "url": "https://github.com/Microsoft/vscode-test-cli/issues" 44 | }, 45 | "homepage": "https://github.com/Microsoft/vscode-test-cli#readme", 46 | "devDependencies": { 47 | "@types/node": "^18.18.4", 48 | "@types/yargs": "^17.0.28", 49 | "@vscode/test-electron": "^2.4.1", 50 | "@vscode/test-web": ">=0.0.46", 51 | "prettier": "^3.0.3", 52 | "typescript": "^5.4.0-beta" 53 | }, 54 | "prettier": { 55 | "printWidth": 100, 56 | "singleQuote": true 57 | }, 58 | "dependencies": { 59 | "@types/mocha": "^10.0.2", 60 | "c8": "^9.1.0", 61 | "chokidar": "^3.5.3", 62 | "enhanced-resolve": "^5.15.0", 63 | "glob": "^10.3.10", 64 | "minimatch": "^9.0.3", 65 | "mocha": "^11.1.0", 66 | "supports-color": "^9.4.0", 67 | "yargs": "^17.7.2" 68 | } 69 | } 70 | -------------------------------------------------------------------------------- /pipeline.yml: -------------------------------------------------------------------------------- 1 | name: $(Date:yyyyMMdd)$(Rev:.r) 2 | 3 | trigger: 4 | branches: 5 | include: 6 | - main 7 | pr: none 8 | 9 | resources: 10 | repositories: 11 | - repository: templates 12 | type: github 13 | name: microsoft/vscode-engineering 14 | ref: main 15 | endpoint: Monaco 16 | 17 | parameters: 18 | - name: publishPackage 19 | displayName: 🚀 Publish test-cli 20 | type: boolean 21 | default: false 22 | 23 | extends: 24 | template: azure-pipelines/npm-package/pipeline.yml@templates 25 | parameters: 26 | npmPackages: 27 | - name: test-cli 28 | ghCreateTag: false 29 | buildSteps: 30 | - script: npm ci 31 | displayName: Install dependencies 32 | 33 | testPlatforms: 34 | - name: Linux 35 | nodeVersions: 36 | - 16.x 37 | 38 | testSteps: 39 | - script: npm ci 40 | displayName: Install dependencies 41 | 42 | - script: npm test 43 | displayName: Run Tests 44 | 45 | publishPackage: ${{ parameters.publishPackage }} 46 | -------------------------------------------------------------------------------- /src/bin.mts: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | /*--------------------------------------------------------- 4 | * Copyright (C) Microsoft Corporation. All rights reserved. 5 | *--------------------------------------------------------*/ 6 | 7 | import * as chokidar from 'chokidar'; 8 | import { resolve } from 'path'; 9 | import { cliArgs, configFileDefault } from './cli/args.mjs'; 10 | import { 11 | ResolvedTestConfiguration, 12 | loadDefaultConfigFile, 13 | tryLoadConfigFile, 14 | } from './cli/config.mjs'; 15 | import { Coverage } from './cli/coverage.mjs'; 16 | import { IPreparedRun, IRunContext, platforms } from './cli/platform/index.mjs'; 17 | import { TestConfiguration } from './config.cjs'; 18 | 19 | export const args = cliArgs.parseSync(); 20 | 21 | class CliExpectedError extends Error {} 22 | 23 | main(); 24 | 25 | async function main() { 26 | let code = 0; 27 | 28 | try { 29 | const config = 30 | args.config !== configFileDefault 31 | ? await tryLoadConfigFile(resolve(process.cwd(), args.config)) 32 | : await loadDefaultConfigFile(); 33 | 34 | const enabledTests = new Set( 35 | args.label?.length 36 | ? args.label.map((label) => { 37 | const found = config.tests.find((c, i) => 38 | typeof label === 'string' ? c.label === label : i === label, 39 | ); 40 | if (!found) { 41 | throw new CliExpectedError(`Could not find a configuration with label "${label}"`); 42 | } 43 | return found; 44 | }) 45 | : new Set(config.tests), 46 | ); 47 | 48 | if (args.watch) { 49 | await watchConfigs(config, enabledTests); 50 | } else { 51 | code = await runConfigs(config, enabledTests); 52 | } 53 | } catch (e) { 54 | code = 1; 55 | if (e instanceof CliExpectedError) { 56 | console.error(e.message); 57 | } else { 58 | console.error((e as Error).stack || e); 59 | } 60 | } finally { 61 | process.exit(code); 62 | } 63 | } 64 | 65 | async function prepareConfigs( 66 | config: ResolvedTestConfiguration, 67 | enabledTests: Set, 68 | ): Promise { 69 | return await Promise.all( 70 | [...enabledTests].map(async (test, i) => { 71 | for (const platform of platforms) { 72 | const p = await platform.prepare({ args, config, test }); 73 | if (p) { 74 | return p; 75 | } 76 | } 77 | 78 | throw new CliExpectedError( 79 | `Could not find a runner for test configuration ${test.label || i}`, 80 | ); 81 | }), 82 | ); 83 | } 84 | 85 | const WATCH_RUN_DEBOUNCE = 500; 86 | 87 | async function watchConfigs( 88 | config: ResolvedTestConfiguration, 89 | enabledTests: Set, 90 | ) { 91 | let debounceRun: NodeJS.Timeout; 92 | let rerun = false; 93 | let running = true; 94 | let prepared: IPreparedRun[] | undefined; 95 | const runOrDebounce = () => { 96 | if (debounceRun) { 97 | clearTimeout(debounceRun); 98 | } 99 | 100 | debounceRun = setTimeout(async () => { 101 | running = true; 102 | rerun = false; 103 | try { 104 | prepared ??= await prepareConfigs(config, enabledTests); 105 | await runPreparedConfigs(config, prepared); 106 | } finally { 107 | running = false; 108 | if (rerun) { 109 | runOrDebounce(); 110 | } 111 | } 112 | }, WATCH_RUN_DEBOUNCE); 113 | }; 114 | 115 | const watcher = chokidar.watch( 116 | args.watchFiles?.length ? args.watchFiles.map(String) : process.cwd(), 117 | { 118 | ignored: [ 119 | '**/.vscode-test/**', 120 | '**/node_modules/**', 121 | ...(args.watchIgnore || []).map(String), 122 | ], 123 | ignoreInitial: true, 124 | }, 125 | ); 126 | 127 | watcher.on('all', (evts) => { 128 | if (evts !== 'change') { 129 | prepared = undefined; // invalidate since files will need to be re-scanned 130 | } 131 | 132 | if (running) { 133 | rerun = true; 134 | } else { 135 | runOrDebounce(); 136 | } 137 | }); 138 | 139 | watcher.on('ready', () => { 140 | runOrDebounce(); 141 | }); 142 | 143 | // wait until interrupted 144 | await new Promise(() => { 145 | /* no-op */ 146 | }); 147 | } 148 | 149 | async function runPreparedConfigs( 150 | config: ResolvedTestConfiguration, 151 | prepared: IPreparedRun[], 152 | ): Promise { 153 | const coverage = args.coverage ? new Coverage(config, args) : undefined; 154 | const context: IRunContext = { coverage: coverage?.targetDir }; 155 | 156 | let code = 0; 157 | for (const p of prepared) { 158 | code = Math.max(code, await p.run(context)); 159 | if (args.bail && code !== 0) { 160 | return code; 161 | } 162 | } 163 | 164 | await coverage?.write(); 165 | 166 | return code; 167 | } 168 | 169 | /** Runs the given test configurations. */ 170 | async function runConfigs(config: ResolvedTestConfiguration, enabledTests: Set) { 171 | const prepared = await prepareConfigs(config, enabledTests); 172 | if (args.listConfiguration) { 173 | await new Promise((r) => 174 | process.stdout.write(JSON.stringify(prepared.map((p) => p.dumpJson())), r), 175 | ); 176 | return 0; 177 | } 178 | 179 | return runPreparedConfigs(config, prepared); 180 | } 181 | -------------------------------------------------------------------------------- /src/cli/args.mts: -------------------------------------------------------------------------------- 1 | import { cpus } from 'os'; 2 | import yargs from 'yargs'; 3 | 4 | const rulesAndBehavior = 'Mocha: Rules & Behavior'; 5 | const reportingAndOutput = 'Mocha: Reporting & Output'; 6 | const fileHandling = 'Mocha: File Handling'; 7 | const testFilters = 'Mocha: Test Filters'; 8 | const testCoverage = 'Test Coverage'; 9 | const vscodeSection = 'VS Code Options'; 10 | export const configFileDefault = 'nearest .vscode-test.js'; 11 | 12 | export const cliArgs = yargs(process.argv) 13 | .epilogue( 14 | 'See https://code.visualstudio.com/api/working-with-extensions/testing-extension for help', 15 | ) 16 | .option('config', { 17 | type: 'string', 18 | description: 'Config file to use', 19 | default: configFileDefault, 20 | group: vscodeSection, 21 | }) 22 | .option('label', { 23 | alias: 'l', 24 | type: 'array', 25 | description: 'Specify the test configuration to run based on its label in configuration', 26 | group: vscodeSection, 27 | }) 28 | .option('code-version', { 29 | type: 'string', 30 | description: 'Override the VS Code version used to run tests', 31 | group: vscodeSection, 32 | }) 33 | .option('install-extensions', { 34 | type: 'array', 35 | description: 36 | 'A list of vscode extensions to install prior to running the tests, in the same format as `code --install-extensions`', 37 | group: vscodeSection, 38 | }) 39 | .option('skip-extension-dependencies', { 40 | type: 'boolean', 41 | default: false, 42 | description: "Skip installing extensions' the `extensionDependencies`", 43 | group: vscodeSection, 44 | }) 45 | //#region Rules & Behavior 46 | .option('bail', { 47 | alias: 'b', 48 | type: 'boolean', 49 | description: 'Abort ("bail") after first test failure', 50 | group: rulesAndBehavior, 51 | }) 52 | .option('dry-run', { 53 | type: 'boolean', 54 | description: 'Report tests without executing them', 55 | group: rulesAndBehavior, 56 | }) 57 | .option('list-configuration', { 58 | type: 'boolean', 59 | description: 'List configurations and that they woud run, without executing them', 60 | group: rulesAndBehavior, 61 | }) 62 | .option('fail-zero', { 63 | type: 'boolean', 64 | description: 'Fail test run if no test(s) encountered', 65 | group: rulesAndBehavior, 66 | }) 67 | .option('forbid-only', { 68 | type: 'boolean', 69 | description: 'Fail if exclusive test(s) encountered', 70 | group: rulesAndBehavior, 71 | }) 72 | .option('forbid-pending', { 73 | type: 'boolean', 74 | description: 'Fail if pending test(s) encountered', 75 | group: rulesAndBehavior, 76 | }) 77 | .option('jobs', { 78 | alias: 'j', 79 | type: 'number', 80 | description: 'Number of concurrent jobs for --parallel; use 1 to run in serial', 81 | default: Math.max(1, cpus().length - 1), 82 | group: rulesAndBehavior, 83 | }) 84 | .options('parallel', { 85 | alias: 'p', 86 | type: 'boolean', 87 | description: 'Run tests in parallel', 88 | group: rulesAndBehavior, 89 | }) 90 | .option('retries', { 91 | alias: 'r', 92 | type: 'number', 93 | description: 'Number of times to retry failed tests', 94 | group: rulesAndBehavior, 95 | }) 96 | .option('slow', { 97 | alias: 's', 98 | type: 'number', 99 | description: 'Specify "slow" test threshold (in milliseconds)', 100 | default: 75, 101 | group: rulesAndBehavior, 102 | }) 103 | .option('timeout', { 104 | alias: 't', 105 | type: 'number', 106 | description: 'Specify test timeout threshold (in milliseconds)', 107 | default: 2000, 108 | group: rulesAndBehavior, 109 | }) 110 | //#endregion 111 | //#region Reporting & Output 112 | .option('color', { 113 | alias: 'c', 114 | type: 'boolean', 115 | description: 'Force-enable color output', 116 | group: reportingAndOutput, 117 | }) 118 | .option('diff', { 119 | type: 'boolean', 120 | description: 'Show diff on failure', 121 | default: true, 122 | group: reportingAndOutput, 123 | }) 124 | .option('full-trace', { 125 | type: 'boolean', 126 | description: 'Display full stack traces', 127 | group: reportingAndOutput, 128 | }) 129 | .option('inline-diffs', { 130 | type: 'boolean', 131 | description: 'Display actual/expected differences inline within each string', 132 | group: reportingAndOutput, 133 | }) 134 | .option('reporter', { 135 | alias: 'R', 136 | type: 'string', 137 | description: 'Specify reporter to use', 138 | default: 'spec', 139 | group: reportingAndOutput, 140 | }) 141 | .option('reporter-option', { 142 | alias: 'O', 143 | type: 'array', 144 | description: 'Reporter-specific options ()', 145 | group: reportingAndOutput, 146 | }) 147 | //#endregion 148 | //#region File Handling 149 | .option('file', { 150 | type: 'array', 151 | description: 'Specify file(s) to be loaded prior to root suite', 152 | group: fileHandling, 153 | }) 154 | .option('ignore', { 155 | alias: 'exclude', 156 | type: 'array', 157 | description: 'Ignore file(s) or glob pattern(s)', 158 | group: fileHandling, 159 | }) 160 | .option('watch', { 161 | alias: 'w', 162 | type: 'boolean', 163 | description: 'Watch files in the current working directory for changes', 164 | group: fileHandling, 165 | }) 166 | .option('watch-files', { 167 | type: 'array', 168 | description: 'List of paths or globs to watch', 169 | group: fileHandling, 170 | }) 171 | .option('watch-ignore', { 172 | type: 'array', 173 | description: 'List of paths or globs to exclude from watching', 174 | group: fileHandling, 175 | }) 176 | .option('run', { 177 | type: 'array', 178 | description: 'List of specific files to run', 179 | group: fileHandling, 180 | }) 181 | //#endregion 182 | //#region Test Filters 183 | .option('fgrep', { 184 | type: 'string', 185 | alias: 'f', 186 | description: 'Only run tests containing this string', 187 | group: testFilters, 188 | }) 189 | .option('grep', { 190 | type: 'string', 191 | alias: 'g', 192 | description: 'Only run tests matching this string or regexp', 193 | group: testFilters, 194 | }) 195 | .option('invert', { 196 | alias: 'i', 197 | type: 'boolean', 198 | description: 'Inverts --grep and --fgrep matches', 199 | group: testFilters, 200 | }) 201 | //#endregion 202 | //#region Test Coverage 203 | .option('coverage', { 204 | type: 'boolean', 205 | description: 'Whether to run with coverage.', 206 | group: testCoverage, 207 | }) 208 | .option('coverage-output', { 209 | type: 'string', 210 | description: 'Directory where coverage data should be written.', 211 | group: testCoverage, 212 | }) 213 | .option('coverage-reporter', { 214 | type: 'array', 215 | description: 'One or more coverage reporters to use.', 216 | group: testCoverage, 217 | }); 218 | //#endregion 219 | 220 | 221 | cliArgs.wrap(Math.min(120, cliArgs.terminalWidth())); 222 | 223 | export type CliArgs = ReturnType<(typeof cliArgs)['parseSync']>; 224 | -------------------------------------------------------------------------------- /src/cli/config.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { existsSync, promises as fs } from 'fs'; 6 | import { dirname, isAbsolute, join } from 'path'; 7 | import { pathToFileURL } from 'url'; 8 | import { 9 | IConfigurationWithGlobalOptions, 10 | ICoverageConfiguration, 11 | TestConfiguration, 12 | } from '../config.cjs'; 13 | import { CliExpectedError } from './error.mjs'; 14 | import { mustResolve } from './resolver.mjs'; 15 | import { ensureArray } from './util.mjs'; 16 | 17 | type ConfigOrArray = IConfigurationWithGlobalOptions | TestConfiguration | TestConfiguration[]; 18 | 19 | const configFileRules: { 20 | [ext: string]: (path: string) => Promise>; 21 | } = { 22 | json: (path: string) => fs.readFile(path, 'utf8').then(JSON.parse), 23 | js: (path) => import(pathToFileURL(path).toString()), 24 | cjs: (path) => import(pathToFileURL(path).toString()), 25 | mjs: (path) => import(pathToFileURL(path).toString()), 26 | }; 27 | 28 | /** Loads the default config based on the process working directory. */ 29 | export async function loadDefaultConfigFile(): Promise { 30 | const base = '.vscode-test'; 31 | 32 | let dir = process.cwd(); 33 | while (true) { 34 | for (const ext of Object.keys(configFileRules)) { 35 | const candidate = join(dir, `${base}.${ext}`); 36 | if (existsSync(candidate)) { 37 | return tryLoadConfigFile(candidate); 38 | } 39 | } 40 | 41 | const next = dirname(dir); 42 | if (next === dir) { 43 | break; 44 | } 45 | 46 | dir = next; 47 | } 48 | 49 | throw new CliExpectedError( 50 | `Could not find a ${base} file in this directory or any parent. You can specify one with the --config option.`, 51 | ); 52 | } 53 | 54 | /** Loads a specific config file by the path, throwing if loading fails. */ 55 | export async function tryLoadConfigFile(path: string): Promise { 56 | const ext = path.split('.').pop()!; 57 | if (!configFileRules.hasOwnProperty(ext)) { 58 | throw new CliExpectedError( 59 | `I don't know how to load the extension '${ext}'. We can load: ${Object.keys( 60 | configFileRules, 61 | ).join(', ')}`, 62 | ); 63 | } 64 | 65 | try { 66 | let loaded = await configFileRules[ext](path); 67 | if ('default' in loaded) { 68 | // handle default es module exports 69 | loaded = (loaded as { default: TestConfiguration }).default; 70 | } 71 | // allow returned promises to resolve: 72 | loaded = await loaded; 73 | 74 | if (typeof loaded === 'object' && 'tests' in loaded) { 75 | return await ResolvedTestConfiguration.load(loaded, path); 76 | } 77 | 78 | return await ResolvedTestConfiguration.load({ tests: ensureArray(loaded) }, path); 79 | } catch (e) { 80 | throw new CliExpectedError(`Could not read config file ${path}: ${(e as Error).stack || e}`); 81 | } 82 | } 83 | 84 | export class ResolvedTestConfiguration implements IConfigurationWithGlobalOptions { 85 | public readonly tests: TestConfiguration[]; 86 | public readonly coverage: ICoverageConfiguration | undefined; 87 | /** Directory name the configuration file resides in. */ 88 | public readonly dir: string; 89 | 90 | public static async load(config: IConfigurationWithGlobalOptions, path: string) { 91 | // Resolve all mocha `require` locations relative to the configuration file, 92 | // since these are otherwise relative to the runner which is opaque to the user. 93 | const dir = dirname(path); 94 | for (const test of config.tests) { 95 | if (test.mocha?.require) { 96 | test.mocha.require = await Promise.all( 97 | ensureArray(test.mocha.require).map((f) => mustResolve(dir, f)), 98 | ); 99 | } 100 | } 101 | 102 | return new ResolvedTestConfiguration(config, path); 103 | } 104 | 105 | protected constructor( 106 | config: IConfigurationWithGlobalOptions, 107 | public readonly path: string, 108 | ) { 109 | this.coverage = config.coverage; 110 | this.tests = config.tests; 111 | this.dir = dirname(path); 112 | } 113 | 114 | /** 115 | * Gets the resolved extension development path for the test configuration. 116 | */ 117 | public extensionDevelopmentPath(test: TestConfiguration) { 118 | return ensureArray(test.extensionDevelopmentPath?.slice() || this.dir).map((p) => 119 | isAbsolute(p) ? p : join(this.dir, p), 120 | ); 121 | } 122 | } 123 | -------------------------------------------------------------------------------- /src/cli/coverage.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { Report } from 'c8'; 6 | import { randomUUID } from 'crypto'; 7 | import { existsSync, promises as fs, mkdirSync } from 'fs'; 8 | import { tmpdir } from 'os'; 9 | import { join, resolve } from 'path'; 10 | import { CliArgs } from './args.mjs'; 11 | import { ResolvedTestConfiguration } from './config.mjs'; 12 | import { CliExpectedError } from './error.mjs'; 13 | 14 | const srcDirCandidates = ['src', 'lib', '.']; 15 | 16 | /** 17 | * Manages collecting coverage data from test runs. All runs, regardless of 18 | * platform, expect coverage data given in the V8 coverage format. We then 19 | * use c8 to convert it to the common Istanbul format and represent it with 20 | * a variety of reporters. 21 | */ 22 | export class Coverage { 23 | public readonly targetDir = join(tmpdir(), `vsc-coverage-${randomUUID()}`); 24 | 25 | constructor( 26 | private readonly config: ResolvedTestConfiguration, 27 | private readonly args: CliArgs, 28 | ) { 29 | mkdirSync(this.targetDir, { recursive: true }); 30 | } 31 | 32 | public async write() { 33 | const cfg = this.config.coverage || {}; 34 | 35 | let defaultReporters = ['text-summary', 'html']; 36 | let reporterOptions: Record> | undefined; 37 | if (Array.isArray(cfg.reporter)) { 38 | defaultReporters = cfg.reporter; 39 | } else if (cfg.reporter) { 40 | defaultReporters = Object.keys(cfg.reporter); 41 | reporterOptions = cfg.reporter; 42 | } 43 | 44 | try { 45 | const report = new Report({ 46 | tempDirectory: this.targetDir, 47 | exclude: cfg.exclude, 48 | include: cfg.include, 49 | reporter: this.args.coverageReporter?.length 50 | ? this.args.coverageReporter.map(String) 51 | : defaultReporters, 52 | reporterOptions, 53 | reportsDirectory: this.args.coverageOutput || join(this.config.dir, 'coverage'), 54 | src: this.getSourcesDirectories(), 55 | all: cfg.includeAll, 56 | excludeNodeModules: true, 57 | // not yet in the .d.ts for c8: 58 | //@ts-ignore 59 | mergeAsync: true, 60 | }); 61 | 62 | // A hacky fix due to an outstanding bug in Istanbul's exclusion testing 63 | // code: its subdirectory checks are case-sensitive on Windows, but file 64 | // URIs might have mixed casing. 65 | // 66 | // Setting `relativePath: false` on the exclude bypasses this code path. 67 | // 68 | // https://github.com/istanbuljs/test-exclude/issues/43 69 | // https://github.com/istanbuljs/test-exclude/blob/a5b1d07584109f5f553ccef97de64c6cbfca4764/index.js#L91 70 | (report as any).exclude.relativePath = false; 71 | 72 | // While we're hacking, may as well keep hacking: we don't want to mess 73 | // with default excludes, but we want to exclude the .vscode-test internals 74 | (report as any).exclude.exclude.push('**/.vscode-test/**'); 75 | 76 | await report.run(); 77 | } catch (e) { 78 | throw new CliExpectedError( 79 | `Coverage report generated failed, please file an issue with original reports located in ${this.targetDir}:\n\n${e}`, 80 | ); 81 | } 82 | 83 | await fs.rm(this.targetDir, { recursive: true, force: true }); 84 | } 85 | 86 | private getSourcesDirectories() { 87 | const srcs = new Set(); 88 | for (const test of this.config.tests) { 89 | const dir = this.config.extensionDevelopmentPath(test); 90 | let srcDir = test.srcDir; 91 | for (const candidate of srcDirCandidates) { 92 | if (srcDir) { 93 | break; 94 | } 95 | 96 | const candidatePath = resolve(dir[0], candidate); 97 | if (existsSync(candidatePath)) { 98 | srcDir = candidatePath; 99 | } 100 | } 101 | 102 | if (srcDir) { 103 | srcs.add(srcDir); 104 | } 105 | } 106 | 107 | return [...srcs]; 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /src/cli/error.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | /** 6 | * An error that's expected with a message already formatted for nice 7 | * display to the user. 8 | */ 9 | export class CliExpectedError extends Error {} 10 | -------------------------------------------------------------------------------- /src/cli/gatherFiles.mts: -------------------------------------------------------------------------------- 1 | import { glob } from 'glob'; 2 | import { minimatch } from 'minimatch'; 3 | import { dirname, isAbsolute, join } from 'path'; 4 | import { args } from '../bin.mjs'; 5 | import { TestConfiguration } from '../config.cjs'; 6 | 7 | /** Gathers test files that match the config */ 8 | export async function gatherFiles(path: string, config: TestConfiguration) { 9 | const fileListsProms: (string[] | Promise)[] = []; 10 | const cwd = dirname(path); 11 | const ignoreGlobs = args.ignore?.map(String).filter((p) => !isAbsolute(p)); 12 | for (const file of config.files instanceof Array ? config.files : [config.files]) { 13 | if (isAbsolute(file)) { 14 | if (!ignoreGlobs?.some((i) => minimatch(file, i))) { 15 | fileListsProms.push([file]); 16 | } 17 | } else { 18 | fileListsProms.push( 19 | glob(file, { cwd, ignore: ignoreGlobs }).then((l) => l.map((f) => join(cwd, f))), 20 | ); 21 | } 22 | } 23 | 24 | const files = new Set((await Promise.all(fileListsProms)).flat()); 25 | args.ignore?.forEach((i) => (files as Set).delete(i)); 26 | return [...files]; 27 | } 28 | -------------------------------------------------------------------------------- /src/cli/platform/desktop.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import type * as Electron from '@vscode/test-electron'; 6 | import { spawn } from 'child_process'; 7 | import { join, resolve as resolvePath } from 'path'; 8 | import supportsColor from 'supports-color'; 9 | import { fileURLToPath, pathToFileURL } from 'url'; 10 | import { IDesktopTestConfiguration } from '../../config.cjs'; 11 | import { CliArgs } from '../args.mjs'; 12 | import { ResolvedTestConfiguration } from '../config.mjs'; 13 | import { CliExpectedError } from '../error.mjs'; 14 | import { gatherFiles } from '../gatherFiles.mjs'; 15 | import { mustResolve } from '../resolver.mjs'; 16 | import { ensureArray, readJSON } from '../util.mjs'; 17 | import { IPlatform, IPrepareContext, IPreparedRun, IRunContext } from './index.mjs'; 18 | 19 | export class DesktopPlatform implements IPlatform { 20 | /** @inheritdoc */ 21 | public async prepare({ 22 | args, 23 | config, 24 | test: _test, 25 | }: IPrepareContext): Promise { 26 | if (_test.platform && _test.platform !== 'desktop') { 27 | return undefined; 28 | } 29 | 30 | const test = structuredClone(_test); 31 | test.launchArgs ||= []; 32 | if (test.workspaceFolder) { 33 | test.launchArgs.push(resolvePath(config.dir, test.workspaceFolder)); 34 | } 35 | 36 | if (args.run?.length) { 37 | test.files = args.run.map((r) => resolvePath(process.cwd(), String(r))); 38 | } 39 | 40 | const preload = await Promise.all( 41 | [...ensureArray(test.mocha?.preload || []), ...ensureArray(args.file || [])].map((p) => 42 | mustResolve(config.dir, String(p)), 43 | ), 44 | ); 45 | 46 | const testEnvOptions = JSON.stringify({ 47 | mochaOpts: { ...args, ...test.mocha }, 48 | colorDefault: supportsColor.stdout || process.env.MOCHA_COLORS !== undefined, 49 | preload, 50 | files: await gatherFiles(config.path, test), 51 | }); 52 | 53 | return new PreparedDesktopRun(args, config, test, testEnvOptions); 54 | } 55 | } 56 | 57 | class PreparedDesktopRun implements IPreparedRun { 58 | private get extensionDevelopmentPath() { 59 | return this.config.extensionDevelopmentPath(this.test); 60 | } 61 | private get extensionTestsPath() { 62 | return resolvePath(fileURLToPath(new URL('.', import.meta.url)), '../../runner.cjs'); 63 | } 64 | private get env(): Record { 65 | return { 66 | ...this.test.env, 67 | VSCODE_TEST_OPTIONS: this.testEnvOptions, 68 | ELECTRON_RUN_AS_NODE: undefined, 69 | }; 70 | } 71 | 72 | constructor( 73 | private readonly args: CliArgs, 74 | private readonly config: ResolvedTestConfiguration, 75 | private readonly test: IDesktopTestConfiguration, 76 | private readonly testEnvOptions: string, 77 | ) {} 78 | 79 | private async importTestElectron() { 80 | const electronPath = await mustResolve(this.config.dir, '@vscode/test-electron'); 81 | const electron: typeof Electron = await import(pathToFileURL(electronPath).toString()); 82 | return electron; 83 | } 84 | 85 | /** @inheritdoc */ 86 | public async run({ coverage }: IRunContext): Promise { 87 | // note: we do this here rather than in prepare() so that UI integration can 88 | // work and show tests even if @vscode/test-electron isn't installed yet. 89 | const electron = await this.importTestElectron(); 90 | await this.installDependentExtensions(electron); 91 | 92 | const env = this.env; 93 | env.NODE_V8_COVERAGE = coverage; 94 | 95 | try { 96 | return await electron.runTests({ 97 | ...this.baseCliOptions(), 98 | extensionDevelopmentPath: this.extensionDevelopmentPath, 99 | extensionTestsPath: this.extensionTestsPath, 100 | extensionTestsEnv: env, 101 | }); 102 | } catch (e) { 103 | // test-electron nominally returns an exit code, but actually rejects the 104 | // promise if the test fails. Old versions throw a string, new versions 105 | // throw a well-typed error. 106 | if ( 107 | typeof e === 'string' || 108 | (electron.TestRunFailedError && e instanceof electron.TestRunFailedError) 109 | ) { 110 | return 1; 111 | } 112 | 113 | throw e; 114 | } 115 | } 116 | 117 | /** @inheritdoc */ 118 | public dumpJson(): object { 119 | return { 120 | path: this.config.path, 121 | config: this.test, 122 | extensionTestsPath: this.extensionTestsPath, 123 | extensionDevelopmentPath: this.extensionDevelopmentPath, 124 | env: this.env, 125 | }; 126 | } 127 | 128 | private baseCliOptions() { 129 | return { 130 | ...this.test, 131 | version: this.args.codeVersion || this.test.version, 132 | launchArgs: (this.test.launchArgs || []).slice(), 133 | platform: this.test.desktopPlatform, 134 | reporter: this.test.download?.reporter, 135 | timeout: this.test.download?.timeout, 136 | reuseMachineInstall: 137 | this.test.useInstallation && 'fromMachine' in this.test.useInstallation 138 | ? this.test.useInstallation.fromMachine 139 | : undefined, 140 | vscodeExecutablePath: 141 | this.test.useInstallation && 'fromPath' in this.test.useInstallation 142 | ? this.test.useInstallation.fromPath 143 | : undefined, 144 | }; 145 | } 146 | 147 | private async installDependentExtensions(electron: typeof Electron) { 148 | const exts = new ExtensionMerger(); 149 | if (!this.args.skipExtensionDependencies && !this.test.skipExtensionDependencies) { 150 | await addDependentExtensions(exts, this.extensionDevelopmentPath); 151 | } 152 | exts.push(this.test.installExtensions); 153 | exts.push(this.args.installExtensions as string[] | undefined); 154 | 155 | if (!exts.size) { 156 | return; 157 | } 158 | 159 | const opts = this.baseCliOptions(); 160 | const vscodePath = await electron.downloadAndUnzipVSCode( 161 | opts.version, 162 | opts.platform, 163 | opts.reporter, 164 | ); 165 | 166 | const [cli, ...cliArgs] = electron.resolveCliArgsFromVSCodeExecutablePath(vscodePath, opts); 167 | for (const extension of exts.value) { 168 | cliArgs.push('--install-extension', extension); 169 | } 170 | 171 | // todo@connor4312: have a nicer reporter here 172 | return new Promise((resolve, reject) => { 173 | const shell = process.platform === 'win32'; 174 | const installer = spawn(shell ? `"${cli}"` : cli, cliArgs, { stdio: 'pipe', shell }); 175 | let output: string = ''; 176 | installer.stdout.setEncoding('utf-8').on('data', (data) => { 177 | output += data; 178 | }); 179 | installer.stderr.setEncoding('utf-8').on('data', (data) => { 180 | output += data; 181 | }); 182 | installer.on('close', (e) => { 183 | if (e !== 0) { 184 | reject(new CliExpectedError(`Failed to install extensions (${exts}): ${output}`)); 185 | } else { 186 | resolve(); 187 | } 188 | }); 189 | }); 190 | } 191 | } 192 | 193 | class ExtensionMerger { 194 | private readonly _value = new Map(); 195 | 196 | public get value() { 197 | return [...this._value].map(([k, v]) => (v ? `${k}@${v}` : k)); 198 | } 199 | 200 | public get size() { 201 | return this._value.size; 202 | } 203 | 204 | public push(exts: string[] | undefined = []) { 205 | for (const extension of exts) { 206 | // TODO: Edge case: we have same extension dependency in multiple development paths, choose lowest version? 207 | const [name, version] = extension.split('@'); 208 | this._value.set(name, version); 209 | } 210 | } 211 | 212 | public toString() { 213 | return this.value.join(', '); 214 | } 215 | } 216 | 217 | async function addDependentExtensions( 218 | merger: ExtensionMerger, 219 | extensionDevelopmentPaths: string[], 220 | ) { 221 | for (const extensionDevelopmentPath of extensionDevelopmentPaths) { 222 | const packageJsonPath = join(extensionDevelopmentPath, 'package.json'); 223 | const packageJson = await readJSON<{ extensionDependencies?: string[] }>(packageJsonPath); 224 | if (!packageJson?.extensionDependencies?.length) { 225 | continue; 226 | } 227 | 228 | // todo@connor4212: we have same extension dependency in multiple development paths, choose highest constraint? 229 | merger.push(packageJson.extensionDependencies); 230 | } 231 | } 232 | -------------------------------------------------------------------------------- /src/cli/platform/index.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { TestConfiguration } from '../../config.cjs'; 6 | import { CliArgs } from '../args.mjs'; 7 | import { ResolvedTestConfiguration } from '../config.mjs'; 8 | import { DesktopPlatform } from './desktop.mjs'; 9 | 10 | export interface IPrepareContext { 11 | args: CliArgs; 12 | config: ResolvedTestConfiguration; 13 | test: TestConfiguration; 14 | } 15 | 16 | export interface IPlatform { 17 | /** 18 | * Prepares for a test run. This is called once for any CLI invokation, and 19 | * the resulting `run()` may be called multiple times e.g. in a watch scenario. 20 | */ 21 | prepare(context: IPrepareContext): Promise; 22 | } 23 | 24 | export interface IRunContext { 25 | /** 26 | * Defined to the path where coverage should be written, if requested 27 | * for a test run. 28 | */ 29 | coverage?: string; 30 | } 31 | 32 | export interface IPreparedRun { 33 | /** Executes the run, returning the exit code (non-zero indicates failure) */ 34 | run(context: IRunContext): Promise; 35 | 36 | /** Dumps the prepared configuration as a JSON object for introspection. */ 37 | dumpJson(): object; 38 | } 39 | 40 | export const platforms: IPlatform[] = [new DesktopPlatform()]; 41 | -------------------------------------------------------------------------------- /src/cli/resolver.mts: -------------------------------------------------------------------------------- 1 | import resolveCb from 'enhanced-resolve'; 2 | import { promisify } from 'util'; 3 | import { CliExpectedError } from './error.mjs'; 4 | 5 | export const commonJsResolve = promisify(resolveCb); 6 | 7 | /** 8 | * Resolves the module in context of the configuration. 9 | * 10 | * Only does traditional Node resolution without looking at the `exports` field 11 | * or alternative extensions (cjs/mjs) to match what the VS Code loader does. 12 | */ 13 | export const mustResolve = async (context: string, moduleName: string) => { 14 | const path = await commonJsResolve(context, moduleName); 15 | if (!path) { 16 | let msg = `Could not resolve module "${moduleName}" in ${path}`; 17 | if (!moduleName.startsWith('.')) { 18 | msg += ' (you may need to install with `npm install`)'; 19 | } 20 | 21 | throw new CliExpectedError(msg); 22 | } 23 | 24 | return path; 25 | }; 26 | -------------------------------------------------------------------------------- /src/cli/util.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { promises as fs } from 'fs'; 6 | 7 | export const ensureArray = (value: T | T[]): T[] => (Array.isArray(value) ? value : [value]); 8 | 9 | export const readJSON = async (path: string): Promise => 10 | JSON.parse(await fs.readFile(path, 'utf8')); 11 | 12 | export const writeJSON = async (path: string, value: unknown) => 13 | fs.writeFile(path, JSON.stringify(value)); 14 | 15 | /** 16 | * Applies the "replacer" function to primitive keys and properties of the object, 17 | * mutating it in-place. 18 | */ 19 | export const mutateObjectPrimitives = (obj: any, replacer: (value: any) => any): any => { 20 | if (Array.isArray(obj)) { 21 | for (let i = 0; i < obj.length; i++) { 22 | obj[i] = mutateObjectPrimitives(obj[i], replacer); 23 | } 24 | return obj; 25 | } 26 | if (obj && typeof obj === 'object') { 27 | for (const [key, value] of Object.entries(obj)) { 28 | const newKey = replacer(key); 29 | if (newKey !== key) { 30 | delete obj[key]; 31 | } 32 | obj[newKey] = mutateObjectPrimitives(value, replacer); 33 | } 34 | return obj; 35 | } 36 | 37 | return replacer(obj); 38 | }; 39 | -------------------------------------------------------------------------------- /src/config.cts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { ProgressReporter } from '@vscode/test-electron'; 6 | 7 | export interface IBaseTestConfiguration { 8 | /** 9 | * A file or list of files in which to find tests. Non-absolute paths will 10 | * be treated as glob expressions relative to the location of 11 | * the `.vscode-test.js` file. 12 | */ 13 | files: string | readonly string[]; 14 | 15 | /** 16 | * Version to download and install. This may be: 17 | * - A quality, like `stable` or `insiders` 18 | * - A version number, like `1.82.0` 19 | * - A commit hash of a version to install 20 | * 21 | * Defaults to `stable`, which is latest stable version. 22 | */ 23 | version?: 'insiders' | 'stable' | string; 24 | 25 | /** 26 | * Defines extension directories to load during tests. Defaults to the directory 27 | * of the `.vscode-test.js` file. Must include a `package.json` Extension Manifest. 28 | */ 29 | extensionDevelopmentPath?: string | readonly string[]; 30 | 31 | /** 32 | * Path to a folder or workspace file that should be opened. 33 | */ 34 | workspaceFolder?: string; 35 | 36 | /** 37 | * Additional options to pass to the Mocha runner. Any options given on the 38 | * command line will be merged into and override these defaults. 39 | * @see https://mochajs.org/api/mocha 40 | */ 41 | mocha?: Mocha.MochaOptions & { 42 | /** 43 | * Specify file(s) to be loaded prior to root suite. 44 | * @deprecated use `require` instead 45 | */ 46 | preload?: string | string[]; 47 | 48 | /** 49 | * Path to a reporter to use. 50 | * @see https://mochajs.org/api/tutorial-custom-reporter 51 | */ 52 | reporter?: string | undefined; 53 | }; 54 | 55 | /** 56 | * Optional label for this configuration, which can be used to specify which 57 | * configuration to run if multiple configurations are provided. 58 | */ 59 | label?: string; 60 | 61 | /** 62 | * Sources directory relative to the `extensionDevelopmentPath`. Currently 63 | * this is used to report coverage. Defaults to "src" if not specified. 64 | */ 65 | srcDir?: string; 66 | } 67 | 68 | export interface IDesktopTestConfiguration extends IBaseTestConfiguration { 69 | /** 70 | * Platform to use for running the tests. 71 | */ 72 | platform?: 'desktop'; 73 | 74 | /** 75 | * The VS Code desktop platform to download. If not specified, it defaults 76 | * to the current platform. 77 | * 78 | * Possible values are: 79 | * - `win32-archive` 80 | * - `win32-x64-archive` 81 | * - `win32-arm64-archive ` 82 | * - `darwin` 83 | * - `darwin-arm64` 84 | * - `linux-x64` 85 | * - `linux-arm64` 86 | * - `linux-armhf` 87 | */ 88 | desktopPlatform?: string; 89 | 90 | /** 91 | * A list of launch arguments passed to VS Code executable, in addition to `--extensionDevelopmentPath` 92 | * and `--extensionTestsPath` which are provided by `extensionDevelopmentPath` and `extensionTestsPath` 93 | * options. 94 | * 95 | * If the first argument is a path to a file/folder/workspace, the launched VS Code instance 96 | * will open it. 97 | * 98 | * See `code --help` for possible arguments. 99 | */ 100 | launchArgs?: string[]; 101 | 102 | /** 103 | * Environment variables to set when running the test. 104 | */ 105 | env?: Record; 106 | 107 | /** 108 | * Configures a specific VS Code installation to use instead of automatically 109 | * downloading the {@link version} 110 | */ 111 | useInstallation?: 112 | | { 113 | /** 114 | * Whether VS Code should be launched using default settings and extensions 115 | * installed on this machine. If `false`, then separate directories will be 116 | * used inside the `.vscode-test` folder within the project. 117 | * 118 | * Defaults to `false`. 119 | */ 120 | fromMachine: boolean; 121 | } 122 | | { 123 | /** 124 | * The VS Code executable path used for testing. 125 | * 126 | * If not passed, will use `options.version` to download a copy of VS Code for testing. 127 | * If `version` is not specified either, will download and use latest stable release. 128 | */ 129 | fromPath?: string; 130 | }; 131 | 132 | download?: { 133 | /** 134 | * Progress reporter to use while VS Code is downloaded. Defaults to a 135 | * console reporter. A {@link SilentReporter} is also available, and you 136 | * may implement your own. 137 | */ 138 | 139 | reporter: ProgressReporter; 140 | /** 141 | * Number of milliseconds after which to time out if no data is received from 142 | * the remote when downloading VS Code. Note that this is an 'idle' timeout 143 | * and does not enforce the total time VS Code may take to download. 144 | */ 145 | timeout?: number; 146 | }; 147 | 148 | /** 149 | * A list of vscode extensions to install prior to running the tests. 150 | * Can be specified as 'owner.extension', 'owner.extension@2.3.15', 151 | * 'owner.extension@prerelease', or the path to a vsix file (/path/to/extension.vsix) 152 | */ 153 | installExtensions?: string[]; 154 | 155 | /** 156 | * Skips the automatic installation of extensionDependencies from the 157 | * extension's package.json. 158 | */ 159 | skipExtensionDependencies?: boolean; 160 | } 161 | 162 | /** 163 | * Configuration that runs in browsers. 164 | * @todo: this is incomplete, and does not yet function 165 | */ 166 | export interface IWebTestConfiguration extends IBaseTestConfiguration { 167 | platform: 'firefox' | 'webkit' | 'chromium'; 168 | } 169 | 170 | export type TestConfiguration = IDesktopTestConfiguration | IWebTestConfiguration; 171 | 172 | // Note on the below: this is a superset of c8's options, with some tweaks: 173 | // - `extensions` is not given because in VS Code we only support `.js` files 174 | // - `excludeAfterRemap` is mostly extraneous for the use case. 175 | // - `omitRelative` defaults to true to avoid capturing node_internals 176 | // - `tempDirectory` and `watermarks` are not useful for users to configure 177 | // - `all` is not useful when we only are interpreting reports 178 | 179 | export interface ICoverageConfiguration { 180 | /** 181 | * List of files/folders/globs to exclude from coverage. By default, excludes 182 | * common test and dependency files. 183 | */ 184 | exclude?: string[]; 185 | /** 186 | * List of files/folders/globs to include in coverage. By default, excludes 187 | * common test and dependency files. 188 | */ 189 | include?: string | string[]; 190 | /** 191 | * One or more reporters to use, either an array or an object of options. 192 | * Defaults to `['html']`. 193 | */ 194 | reporter?: string[] | Record>; 195 | /** 196 | * By default, coverage will only include files that were imported at runtime 197 | * in your extension. You can pass `true` here to include all files in the 198 | * source directories instead. See {@link IBaseTestConfiguration.srcDir} to 199 | * configure the source directories. 200 | * 201 | * `include` and `exclude` patterns are still respected. 202 | */ 203 | includeAll?: boolean; 204 | /** 205 | * Directory where coverage reports are written, defaults to `./coverage` 206 | */ 207 | output?: string; 208 | } 209 | 210 | export interface IConfigurationWithGlobalOptions { 211 | /** 212 | * Test configurations to run. 213 | */ 214 | tests: TestConfiguration[]; 215 | 216 | /** 217 | * Configuration used for handling coverage. 218 | */ 219 | coverage?: ICoverageConfiguration; 220 | } 221 | -------------------------------------------------------------------------------- /src/fullJsonStreamReporter.cts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import * as Mocha from 'mocha'; 6 | import { inspect } from 'util'; 7 | import { MochaEvent, MochaEventTuple } from './fullJsonStreamReporterTypes.cjs'; 8 | 9 | export * from './fullJsonStreamReporterTypes.cjs'; 10 | 11 | /** 12 | * Similar to the mocha JSON stream, but includes additional information 13 | * on failure and when tests run. Specifically, the mocha json-stream does not 14 | * include unmangled expected versus actual results. 15 | * 16 | * Writes a superset of the data that json-stream normally would. 17 | */ 18 | module.exports = class FullJsonStreamReporter { 19 | constructor(runner: Mocha.Runner) { 20 | const total = runner.total; 21 | runner.once(Mocha.Runner.constants.EVENT_RUN_BEGIN, () => 22 | writeEvent([MochaEvent.Start, { total }]), 23 | ); 24 | runner.once(Mocha.Runner.constants.EVENT_RUN_END, () => writeEvent([MochaEvent.End, {}])); 25 | 26 | runner.on(Mocha.Runner.constants.EVENT_SUITE_BEGIN, (suite: Mocha.Suite) => 27 | writeEvent([MochaEvent.SuiteStart, { path: suite.titlePath(), file: suite.file }]), 28 | ); 29 | runner.on(Mocha.Runner.constants.EVENT_TEST_BEGIN, (test: Mocha.Test) => 30 | writeEvent([MochaEvent.TestStart, clean(test)]), 31 | ); 32 | runner.on(Mocha.Runner.constants.EVENT_TEST_PASS, (test) => 33 | writeEvent([MochaEvent.Pass, clean(test)]), 34 | ); 35 | runner.on(Mocha.Runner.constants.EVENT_TEST_FAIL, (test, err) => { 36 | writeEvent([ 37 | MochaEvent.Fail, 38 | { 39 | ...clean(test), 40 | actual: inspect(err.actual, { depth: 30 }), 41 | expected: inspect(err.expected, { depth: 30 }), 42 | err: err.message, 43 | stack: err.stack || null, 44 | }, 45 | ]); 46 | }); 47 | } 48 | }; 49 | 50 | function writeEvent(event: MochaEventTuple) { 51 | process.stdout.write(JSON.stringify(event) + '\n'); 52 | } 53 | 54 | const clean = (test: Mocha.Test) => { 55 | return { 56 | path: test.titlePath(), 57 | duration: test.duration, 58 | currentRetry: (test as any).currentRetry(), 59 | file: test.file, 60 | speed: 61 | !test.duration || test.duration < test.slow() / 2 62 | ? ('fast' as const) 63 | : test.duration > test.slow() 64 | ? ('slow' as const) 65 | : ('medium' as const), 66 | }; 67 | }; 68 | -------------------------------------------------------------------------------- /src/fullJsonStreamReporterTypes.cts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | export enum MochaEvent { 6 | Start = 'start', 7 | TestStart = 'testStart', 8 | Pass = 'pass', 9 | Fail = 'fail', 10 | End = 'end', 11 | SuiteStart = 'suiteStart', 12 | } 13 | 14 | export interface IStartEvent { 15 | total: number; 16 | } 17 | 18 | export interface ITestStartEvent { 19 | path: string[]; 20 | currentRetry: number; 21 | file?: string; 22 | } 23 | 24 | export interface IPassEvent extends ITestStartEvent { 25 | duration?: number; 26 | speed: 'fast' | 'medium' | 'slow'; 27 | } 28 | 29 | export interface IFailEvent extends IPassEvent { 30 | err: string; 31 | stack: string | null; 32 | expected?: string; 33 | actual?: string; 34 | } 35 | 36 | export interface IEndEvent {} 37 | 38 | export interface ISuiteStartEvent { 39 | path: string[]; 40 | file?: string; 41 | } 42 | 43 | export type MochaEventTuple = 44 | | [MochaEvent.Start, IStartEvent] 45 | | [MochaEvent.TestStart, ITestStartEvent] 46 | | [MochaEvent.Pass, IPassEvent] 47 | | [MochaEvent.Fail, IFailEvent] 48 | | [MochaEvent.End, IEndEvent] 49 | | [MochaEvent.SuiteStart, ISuiteStartEvent]; 50 | -------------------------------------------------------------------------------- /src/index.cts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import { IConfigurationWithGlobalOptions, TestConfiguration } from './config.cjs'; 6 | 7 | export * from './config.cjs'; 8 | 9 | // todo: can be removed if/when the extension uses Node16+ resolution 10 | export * from './fullJsonStreamReporterTypes.cjs'; 11 | 12 | type AnyConfiguration = IConfigurationWithGlobalOptions | TestConfiguration | TestConfiguration[]; 13 | type AnyConfigurationOrPromise = AnyConfiguration | Promise; 14 | 15 | export const defineConfig = ( 16 | config: AnyConfigurationOrPromise | (() => AnyConfigurationOrPromise), 17 | ) => config; 18 | -------------------------------------------------------------------------------- /src/index.mts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | export * from './index.cjs'; 6 | -------------------------------------------------------------------------------- /src/runner.cts: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------- 2 | * Copyright (C) Microsoft Corporation. All rights reserved. 3 | *--------------------------------------------------------*/ 4 | 5 | import Mocha from 'mocha'; 6 | 7 | export async function run() { 8 | const { 9 | mochaOpts, 10 | files, 11 | preload, 12 | colorDefault, 13 | }: { 14 | mochaOpts: Mocha.MochaOptions; 15 | files: string[]; 16 | preload: string[]; 17 | colorDefault: boolean; 18 | } = JSON.parse(process.env.VSCODE_TEST_OPTIONS!); 19 | 20 | // Create the mocha test 21 | const mocha = new Mocha({ 22 | ui: 'tdd', 23 | color: colorDefault, 24 | ...mochaOpts, 25 | }); 26 | 27 | const required: { mochaGlobalSetup?: () => unknown; mochaGlobalTeardown?: () => unknown }[] = [ 28 | ...preload, 29 | ...ensureArray(mochaOpts.require), 30 | ].map((f) => require(normalizeCasing(f))); 31 | 32 | // currently `require` only seems to take effect for parallel runs, but remove 33 | // the option in case it's supported for serial runs in the future since we're 34 | // handling it ourselves. 35 | delete mochaOpts.require; 36 | 37 | for (const { mochaGlobalSetup } of required) { 38 | await mochaGlobalSetup?.(); 39 | } 40 | 41 | for (const file of files) { 42 | mocha.addFile(normalizeCasing(file)); 43 | } 44 | 45 | await new Promise((resolve, reject) => 46 | mocha.run((failures) => 47 | failures 48 | ? reject(failures > 1 ? `${failures} tests failed.` : `${failures} test failed.`) 49 | : resolve(), 50 | ), 51 | ); 52 | 53 | for (const { mochaGlobalTeardown } of required) { 54 | await mochaGlobalTeardown?.(); 55 | } 56 | } 57 | 58 | const normalizeCasing = (path: string) => { 59 | // Normalize to lower-case drive letter to avoid path sensitivity in the loader 60 | // duplicating imports. VS Code normalizes to lower case drive letters in its 61 | // URIs, so do the same here 62 | // https://github.com/microsoft/vscode/blob/032c1b75447ade317715c3d2a82c2d9cd3e55dde/src/vs/base/common/uri.ts#L181-L185 63 | if (process.platform === 'win32' && path.match(/^[A-Z]:/)) { 64 | return path[0].toLowerCase() + path.slice(1); 65 | } 66 | 67 | return path; 68 | }; 69 | 70 | const ensureArray = (value: T | T[] | undefined): T[] => 71 | value ? (Array.isArray(value) ? value : [value]) : []; 72 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES2022", 4 | "module": "Node16", 5 | "moduleResolution": "Node16", 6 | "resolvePackageJsonExports": true, 7 | "lib": ["ES2022"], 8 | "outDir": "out", 9 | "declaration": true, 10 | "strict": true, 11 | "noImplicitAny": true, 12 | "noImplicitThis": true, 13 | "noUnusedLocals": true, 14 | "alwaysStrict": true, 15 | "skipLibCheck": true, 16 | "forceConsistentCasingInFileNames": true 17 | }, 18 | "include": ["src"], 19 | } 20 | --------------------------------------------------------------------------------