├── .editorconfig ├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── LICENSE ├── README.md ├── bin └── ts-mocha ├── package-lock.json ├── package.json ├── src └── index.js └── test ├── baseline ├── app.spec.ts ├── app.ts ├── programmatic-use-test.js └── tsconfig.json ├── paths ├── app.spec.ts ├── app.ts ├── helper │ ├── helper.ts │ └── util.ts ├── programmatic-use-test.js └── tsconfig.json ├── tsconfig.base.json └── typecheck ├── app.spec.ts ├── app.ts ├── programmatic-use-test.js └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig is awesome: http://EditorConfig.org 2 | 3 | # top-most EditorConfig file 4 | root = true 5 | 6 | # every file 7 | [*] 8 | charset = utf-8 9 | end_of_line = lf 10 | insert_final_newline = true 11 | 12 | # Indentation for md files 13 | [*.md] 14 | max_line_length = 0 15 | trim_trailing_whitespace = false 16 | 17 | # Indentation for all source files 18 | [*.{json,js,jsx,ts,tsx,css,html}] 19 | max_line_length = 80 20 | trim_trailing_whitespace = true 21 | indent_style = space 22 | indent_size = 2 23 | insert_final_newline = true 24 | -------------------------------------------------------------------------------- /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- 1 | name: "Continuous Integration" 2 | on: 3 | push: 4 | branches: 5 | - master 6 | pull_request: 7 | types: [opened, synchronize, reopened] 8 | jobs: 9 | continuous-integration: 10 | name: continuous-integration 11 | runs-on: ubuntu-latest 12 | timeout-minutes: 10 13 | strategy: 14 | matrix: 15 | mocha-version: [5, 6, 7, 8, 9, 10, 11] 16 | node-version: [18, 19, 20, 21, 22] 17 | steps: 18 | - name: Checkout 19 | uses: actions/checkout@v3 20 | - name: Setup Nodejs 21 | uses: actions/setup-node@v3 22 | with: 23 | node-version: ${{ matrix.node-version}} 24 | - name: install dependencies 25 | run: | 26 | npm ci 27 | npm i mocha@${{ matrix.mocha-version}} 28 | - name: test 29 | run: | 30 | npm test 31 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | 39 | # Custom 40 | dist 41 | .DS_Store 42 | .vscode -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016-2018 Piotr Witek (http://piotrwitek.github.io) 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 | # TS-Mocha 2 | 3 | [![Latest Stable Version](https://img.shields.io/npm/v/ts-mocha.svg)](https://www.npmjs.com/package/ts-mocha) 4 | [![NPM Downloads](https://img.shields.io/npm/dt/ts-mocha.svg)](https://www.npmjs.com/package/ts-mocha) 5 | [![NPM Downloads](https://img.shields.io/npm/dm/ts-mocha.svg)](https://www.npmjs.com/package/ts-mocha) 6 | 7 | > `ts-mocha` is a streamlined process wrapper for mocha that simplifies running tests written in TypeScript. It automatically handles the necessary configuration and adds custom arguments, saving you from the hassle of managing a complex test setup in your project. 8 | 9 | ## Why? 10 | 11 | Setting up Mocha to work with TypeScript can be challenging and time-consuming. It requires careful configuration to ensure compatibility between the two tools. Additionally, breaking changes in mocha or ts-node can disrupt your setup, forcing you to spend valuable time troubleshooting and fixing it. 12 | 13 | `ts-mocha` eliminates these headaches by handling all the configuration for you. It allows you to run tests in TypeScript just as easily as you would with regular Mocha and JavaScript, without worrying about the underlying setup. 14 | 15 | On top of that, we’ve included several useful options tailored specifically for TypeScript projects to make your development experience even smoother. Check them out below! 16 | 17 | ## Installation 18 | 19 | ```bash 20 | # remember to install mocha if you don't have it already (npm i -D mocha) 21 | 22 | npm i -D ts-mocha 23 | 24 | # and also required peerDependencies 25 | npm i -D mocha ts-node tsconfig-paths 26 | 27 | # also relevant @types packages for best DX: Mocha and Expect 28 | npm i -D @types/mocha @types/expect 29 | 30 | # there is also an optional peerDependency if you're using it in your project 31 | npm i -D tsconfig-paths 32 | ``` 33 | 34 | ## Usage 35 | 36 | ### - CLI Usage 37 | 38 | CLI options consist of all the options of regular Mocha plus extra options below: 39 | 40 | `-p, --project ` - relative or absolute path to a `tsconfig.json` file (equivalent of `tsc -p `) [default: "./tsconfig.json"] 41 | 42 | **Example:** 43 | 44 | ```bash 45 | ts-mocha -p src/tsconfig.json src/**/*.spec.ts 46 | ``` 47 | 48 | `--paths` - opt-in feature toggle flag to enable [`tsconfig-paths`](https://www.npmjs.com/package/tsconfig-paths) integration [default: false] 49 | 50 | > _For this to work you need to have [`tsconfig-paths`](https://www.npmjs.com/package/tsconfig-paths) package installed in your project_ 51 | 52 | **Example:** 53 | 54 | ```bash 55 | ts-mocha --paths -p src/ src/**/*.spec.ts 56 | ``` 57 | 58 | _This feature is required if you're using [path mapping](https://www.typescriptlang.org/docs/handbook/module-resolution.html#path-mapping) feature in your project (`paths` compiler option in `tsconfig.json`). When enabled with this package it allows for correct module resolution of aliased modules during TypeScript code execution within NodeJS environment._ 59 | 60 | Check our test suite for a reference implementation: [Link](./test/paths/tsconfig.json) 61 | 62 | `--type-check` - feature toggle flag to enable type checking in ts-node [default: false] 63 | 64 | By default `ts-mocha` use the `--transpile-only` option of ts-node to make tests run significantly faster. If you want to run your tests slower but with type-checking you can use the `--type-check` option to enable that. 65 | 66 | **Example:** 67 | 68 | ```bash 69 | ts-mocha --type-check -p src/ src/**/*.spec.ts 70 | ``` 71 | 72 | ### Watch Mode 73 | 74 | If you want your tests to be automatically rerun when your code changes, add both the `-w` flag and the `--watch-files` flag telling it to watch for specified TypeScript files. 75 | 76 | **Example:** 77 | 78 | ```bash 79 | ts-mocha test/**/*.spec.ts -w --watch-files '**/*.ts' 80 | ``` 81 | 82 | ### - Programmatic usage 83 | 84 | In code you can use ts-mocha by adding a single require at the beginning of your script: 85 | 86 | ```javascript 87 | // set env variable to the `tsconfig.json` path before loading mocha (default: './tsconfig.json') 88 | process.env.TS_NODE_PROJECT = "./src/tsconfig.json"; 89 | 90 | // Optional: set env variable to enable `tsconfig-paths` integration 91 | process.env.TS_CONFIG_PATHS = true; 92 | 93 | // register mocha wrapper 94 | require("ts-mocha"); 95 | ``` 96 | 97 | For example: 98 | 99 | ```javascript 100 | process.env.TS_NODE_PROJECT = "./src/tsconfig.json"; 101 | require("ts-mocha"); 102 | const Mocha = require("mocha"); 103 | 104 | const mocha = new Mocha(); 105 | mocha.addFile(`./src/file.spec.ts`); 106 | mocha.run((failures) => { 107 | process.on("exit", () => { 108 | process.exit(failures); // exit with non-zero status if there were failures 109 | }); 110 | }); 111 | ``` 112 | 113 | ## How it works? 114 | 115 | `ts-mocha` relies on a single dependency: ts-node. This TypeScript runtime enables the execution of tests that can import and run TypeScript source files directly. 116 | 117 | As a lightweight wrapper, ts-mocha launches a Node process with Mocha and configures the ts-node environment to handle .ts and .tsx files seamlessly. To optimize performance, type-checking is disabled by default, and ts-node operates in transpile-only mode for faster test execution. 118 | 119 | > **NOTE**: This package does not include Mocha - Mocha is set as peer dependency, so I don't lock the consumer to a specific Mocha version and I don't have to update this package when Mocha is updated. 120 | -------------------------------------------------------------------------------- /bin/ts-mocha: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | 'use strict'; 4 | 5 | var path = require('path'); 6 | var spawn = require('child_process').spawn; 7 | 8 | var MOCHA_PATH = require.resolve('mocha/bin/mocha'); 9 | var TS_MOCHA_PATH = path.join(__dirname, "../src/index.js"); 10 | var mochaArgs = [MOCHA_PATH, "--require", TS_MOCHA_PATH]; 11 | 12 | process.argv.slice(2).forEach(function (arg, idx, arr) { 13 | switch (arg) { 14 | case "-p": 15 | case "--project": 16 | const projectArgValueIdx = idx + 1; 17 | const tsconfigPath = arr[projectArgValueIdx]; 18 | // remove tsconfigPath param from array parsing 19 | arr.splice(projectArgValueIdx, 1); 20 | 21 | process.env.TS_NODE_PROJECT = tsconfigPath; 22 | break; 23 | 24 | case "--paths": 25 | process.env.TS_CONFIG_PATHS = true; 26 | break; 27 | 28 | case "--type-check": 29 | process.env.TS_TYPE_CHECK = true; 30 | break; 31 | 32 | default: 33 | // pass unrecognized args to mocha 34 | mochaArgs.push(arg); 35 | break; 36 | } 37 | }); 38 | 39 | var mocha = spawn(process.execPath, mochaArgs, { 40 | stdio: "inherit", 41 | }); 42 | mocha.on('exit', function (code, signal) { 43 | process.on('exit', function () { 44 | if (signal) { 45 | process.kill(process.pid, signal); 46 | } else { 47 | process.exit(code); 48 | } 49 | }); 50 | }); 51 | 52 | process.on('SIGINT', function () { 53 | mocha.kill('SIGINT'); 54 | mocha.kill('SIGTERM'); 55 | }); 56 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ts-mocha", 3 | "version": "11.1.0", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "ts-mocha", 9 | "version": "11.1.0", 10 | "license": "MIT", 11 | "bin": { 12 | "ts-mocha": "bin/ts-mocha" 13 | }, 14 | "devDependencies": { 15 | "@types/expect": "^24.3.2", 16 | "@types/mocha": "^10.0.10", 17 | "@types/node": "^22.13.4", 18 | "expect": "^29.7.0", 19 | "mocha": "^11.1.0", 20 | "ts-node": "^10.9.2", 21 | "tslint": "6.1.3", 22 | "typescript": "4.9.5" 23 | }, 24 | "engines": { 25 | "node": ">= 6.X.X" 26 | }, 27 | "peerDependencies": { 28 | "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X || ^11.X.X", 29 | "ts-node": "^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X", 30 | "tsconfig-paths": "^4.X.X" 31 | }, 32 | "peerDependenciesMeta": { 33 | "tsconfig-paths": { 34 | "optional": true 35 | } 36 | } 37 | }, 38 | "node_modules/@babel/code-frame": { 39 | "version": "7.26.2", 40 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", 41 | "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", 42 | "dev": true, 43 | "dependencies": { 44 | "@babel/helper-validator-identifier": "^7.25.9", 45 | "js-tokens": "^4.0.0", 46 | "picocolors": "^1.0.0" 47 | }, 48 | "engines": { 49 | "node": ">=6.9.0" 50 | } 51 | }, 52 | "node_modules/@babel/helper-validator-identifier": { 53 | "version": "7.25.9", 54 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", 55 | "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", 56 | "dev": true, 57 | "engines": { 58 | "node": ">=6.9.0" 59 | } 60 | }, 61 | "node_modules/@cspotcode/source-map-support": { 62 | "version": "0.8.1", 63 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 64 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 65 | "dev": true, 66 | "dependencies": { 67 | "@jridgewell/trace-mapping": "0.3.9" 68 | }, 69 | "engines": { 70 | "node": ">=12" 71 | } 72 | }, 73 | "node_modules/@isaacs/cliui": { 74 | "version": "8.0.2", 75 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 76 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 77 | "dev": true, 78 | "dependencies": { 79 | "string-width": "^5.1.2", 80 | "string-width-cjs": "npm:string-width@^4.2.0", 81 | "strip-ansi": "^7.0.1", 82 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 83 | "wrap-ansi": "^8.1.0", 84 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 85 | }, 86 | "engines": { 87 | "node": ">=12" 88 | } 89 | }, 90 | "node_modules/@jest/expect-utils": { 91 | "version": "29.7.0", 92 | "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", 93 | "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", 94 | "dev": true, 95 | "dependencies": { 96 | "jest-get-type": "^29.6.3" 97 | }, 98 | "engines": { 99 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 100 | } 101 | }, 102 | "node_modules/@jest/schemas": { 103 | "version": "29.6.3", 104 | "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", 105 | "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", 106 | "dev": true, 107 | "dependencies": { 108 | "@sinclair/typebox": "^0.27.8" 109 | }, 110 | "engines": { 111 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 112 | } 113 | }, 114 | "node_modules/@jest/types": { 115 | "version": "29.6.3", 116 | "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", 117 | "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", 118 | "dev": true, 119 | "dependencies": { 120 | "@jest/schemas": "^29.6.3", 121 | "@types/istanbul-lib-coverage": "^2.0.0", 122 | "@types/istanbul-reports": "^3.0.0", 123 | "@types/node": "*", 124 | "@types/yargs": "^17.0.8", 125 | "chalk": "^4.0.0" 126 | }, 127 | "engines": { 128 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 129 | } 130 | }, 131 | "node_modules/@jridgewell/resolve-uri": { 132 | "version": "3.1.2", 133 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 134 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 135 | "dev": true, 136 | "engines": { 137 | "node": ">=6.0.0" 138 | } 139 | }, 140 | "node_modules/@jridgewell/sourcemap-codec": { 141 | "version": "1.5.0", 142 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 143 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 144 | "dev": true 145 | }, 146 | "node_modules/@jridgewell/trace-mapping": { 147 | "version": "0.3.9", 148 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 149 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 150 | "dev": true, 151 | "dependencies": { 152 | "@jridgewell/resolve-uri": "^3.0.3", 153 | "@jridgewell/sourcemap-codec": "^1.4.10" 154 | } 155 | }, 156 | "node_modules/@pkgjs/parseargs": { 157 | "version": "0.11.0", 158 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 159 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 160 | "dev": true, 161 | "optional": true, 162 | "engines": { 163 | "node": ">=14" 164 | } 165 | }, 166 | "node_modules/@sinclair/typebox": { 167 | "version": "0.27.8", 168 | "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", 169 | "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", 170 | "dev": true 171 | }, 172 | "node_modules/@tsconfig/node10": { 173 | "version": "1.0.11", 174 | "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", 175 | "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", 176 | "dev": true 177 | }, 178 | "node_modules/@tsconfig/node12": { 179 | "version": "1.0.11", 180 | "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", 181 | "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", 182 | "dev": true 183 | }, 184 | "node_modules/@tsconfig/node14": { 185 | "version": "1.0.3", 186 | "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", 187 | "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", 188 | "dev": true 189 | }, 190 | "node_modules/@tsconfig/node16": { 191 | "version": "1.0.4", 192 | "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", 193 | "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", 194 | "dev": true 195 | }, 196 | "node_modules/@types/expect": { 197 | "version": "24.3.2", 198 | "resolved": "https://registry.npmjs.org/@types/expect/-/expect-24.3.2.tgz", 199 | "integrity": "sha512-5ev4tL5eBuX9wyC/SFHku1Sizyerg457LiwMgde3sq61TMHbnKjikzwsBLxLpFMflvKuWXfWVW0w3hZg4qml9w==", 200 | "deprecated": "This is a stub types definition. expect provides its own type definitions, so you do not need this installed.", 201 | "dev": true, 202 | "dependencies": { 203 | "expect": "*" 204 | } 205 | }, 206 | "node_modules/@types/istanbul-lib-coverage": { 207 | "version": "2.0.6", 208 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", 209 | "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", 210 | "dev": true 211 | }, 212 | "node_modules/@types/istanbul-lib-report": { 213 | "version": "3.0.3", 214 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", 215 | "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", 216 | "dev": true, 217 | "dependencies": { 218 | "@types/istanbul-lib-coverage": "*" 219 | } 220 | }, 221 | "node_modules/@types/istanbul-reports": { 222 | "version": "3.0.4", 223 | "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", 224 | "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", 225 | "dev": true, 226 | "dependencies": { 227 | "@types/istanbul-lib-report": "*" 228 | } 229 | }, 230 | "node_modules/@types/mocha": { 231 | "version": "10.0.10", 232 | "resolved": "https://registry.npmjs.org/@types/mocha/-/mocha-10.0.10.tgz", 233 | "integrity": "sha512-xPyYSz1cMPnJQhl0CLMH68j3gprKZaTjG3s5Vi+fDgx+uhG9NOXwbVt52eFS8ECyXhyKcjDLCBEqBExKuiZb7Q==", 234 | "dev": true 235 | }, 236 | "node_modules/@types/node": { 237 | "version": "22.13.4", 238 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.4.tgz", 239 | "integrity": "sha512-ywP2X0DYtX3y08eFVx5fNIw7/uIv8hYUKgXoK8oayJlLnKcRfEYCxWMVE1XagUdVtCJlZT1AU4LXEABW+L1Peg==", 240 | "dev": true, 241 | "dependencies": { 242 | "undici-types": "~6.20.0" 243 | } 244 | }, 245 | "node_modules/@types/stack-utils": { 246 | "version": "2.0.3", 247 | "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", 248 | "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", 249 | "dev": true 250 | }, 251 | "node_modules/@types/yargs": { 252 | "version": "17.0.33", 253 | "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", 254 | "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", 255 | "dev": true, 256 | "dependencies": { 257 | "@types/yargs-parser": "*" 258 | } 259 | }, 260 | "node_modules/@types/yargs-parser": { 261 | "version": "21.0.3", 262 | "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", 263 | "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", 264 | "dev": true 265 | }, 266 | "node_modules/acorn": { 267 | "version": "8.14.0", 268 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", 269 | "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", 270 | "dev": true, 271 | "bin": { 272 | "acorn": "bin/acorn" 273 | }, 274 | "engines": { 275 | "node": ">=0.4.0" 276 | } 277 | }, 278 | "node_modules/acorn-walk": { 279 | "version": "8.3.4", 280 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", 281 | "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", 282 | "dev": true, 283 | "dependencies": { 284 | "acorn": "^8.11.0" 285 | }, 286 | "engines": { 287 | "node": ">=0.4.0" 288 | } 289 | }, 290 | "node_modules/ansi-colors": { 291 | "version": "4.1.3", 292 | "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", 293 | "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", 294 | "dev": true, 295 | "engines": { 296 | "node": ">=6" 297 | } 298 | }, 299 | "node_modules/ansi-regex": { 300 | "version": "6.1.0", 301 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", 302 | "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", 303 | "dev": true, 304 | "engines": { 305 | "node": ">=12" 306 | }, 307 | "funding": { 308 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 309 | } 310 | }, 311 | "node_modules/ansi-styles": { 312 | "version": "4.3.0", 313 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 314 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 315 | "dev": true, 316 | "dependencies": { 317 | "color-convert": "^2.0.1" 318 | }, 319 | "engines": { 320 | "node": ">=8" 321 | }, 322 | "funding": { 323 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 324 | } 325 | }, 326 | "node_modules/anymatch": { 327 | "version": "3.1.3", 328 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 329 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 330 | "dev": true, 331 | "dependencies": { 332 | "normalize-path": "^3.0.0", 333 | "picomatch": "^2.0.4" 334 | }, 335 | "engines": { 336 | "node": ">= 8" 337 | } 338 | }, 339 | "node_modules/arg": { 340 | "version": "4.1.3", 341 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", 342 | "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", 343 | "dev": true 344 | }, 345 | "node_modules/argparse": { 346 | "version": "2.0.1", 347 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 348 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 349 | "dev": true 350 | }, 351 | "node_modules/balanced-match": { 352 | "version": "1.0.2", 353 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 354 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 355 | "dev": true 356 | }, 357 | "node_modules/binary-extensions": { 358 | "version": "2.3.0", 359 | "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", 360 | "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", 361 | "dev": true, 362 | "engines": { 363 | "node": ">=8" 364 | }, 365 | "funding": { 366 | "url": "https://github.com/sponsors/sindresorhus" 367 | } 368 | }, 369 | "node_modules/brace-expansion": { 370 | "version": "1.1.11", 371 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 372 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 373 | "dev": true, 374 | "dependencies": { 375 | "balanced-match": "^1.0.0", 376 | "concat-map": "0.0.1" 377 | } 378 | }, 379 | "node_modules/braces": { 380 | "version": "3.0.3", 381 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 382 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 383 | "dev": true, 384 | "dependencies": { 385 | "fill-range": "^7.1.1" 386 | }, 387 | "engines": { 388 | "node": ">=8" 389 | } 390 | }, 391 | "node_modules/browser-stdout": { 392 | "version": "1.3.1", 393 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 394 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 395 | "dev": true 396 | }, 397 | "node_modules/builtin-modules": { 398 | "version": "1.1.1", 399 | "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-1.1.1.tgz", 400 | "integrity": "sha512-wxXCdllwGhI2kCC0MnvTGYTMvnVZTvqgypkiTI8Pa5tcz2i6VqsqwYGgqwXji+4RgCzms6EajE4IxiUH6HH8nQ==", 401 | "dev": true, 402 | "engines": { 403 | "node": ">=0.10.0" 404 | } 405 | }, 406 | "node_modules/camelcase": { 407 | "version": "6.3.0", 408 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 409 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 410 | "dev": true, 411 | "engines": { 412 | "node": ">=10" 413 | }, 414 | "funding": { 415 | "url": "https://github.com/sponsors/sindresorhus" 416 | } 417 | }, 418 | "node_modules/chalk": { 419 | "version": "4.1.2", 420 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 421 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 422 | "dev": true, 423 | "dependencies": { 424 | "ansi-styles": "^4.1.0", 425 | "supports-color": "^7.1.0" 426 | }, 427 | "engines": { 428 | "node": ">=10" 429 | }, 430 | "funding": { 431 | "url": "https://github.com/chalk/chalk?sponsor=1" 432 | } 433 | }, 434 | "node_modules/chokidar": { 435 | "version": "3.6.0", 436 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", 437 | "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", 438 | "dev": true, 439 | "dependencies": { 440 | "anymatch": "~3.1.2", 441 | "braces": "~3.0.2", 442 | "glob-parent": "~5.1.2", 443 | "is-binary-path": "~2.1.0", 444 | "is-glob": "~4.0.1", 445 | "normalize-path": "~3.0.0", 446 | "readdirp": "~3.6.0" 447 | }, 448 | "engines": { 449 | "node": ">= 8.10.0" 450 | }, 451 | "funding": { 452 | "url": "https://paulmillr.com/funding/" 453 | }, 454 | "optionalDependencies": { 455 | "fsevents": "~2.3.2" 456 | } 457 | }, 458 | "node_modules/ci-info": { 459 | "version": "3.9.0", 460 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", 461 | "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", 462 | "dev": true, 463 | "funding": [ 464 | { 465 | "type": "github", 466 | "url": "https://github.com/sponsors/sibiraj-s" 467 | } 468 | ], 469 | "engines": { 470 | "node": ">=8" 471 | } 472 | }, 473 | "node_modules/cliui": { 474 | "version": "8.0.1", 475 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 476 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 477 | "dev": true, 478 | "dependencies": { 479 | "string-width": "^4.2.0", 480 | "strip-ansi": "^6.0.1", 481 | "wrap-ansi": "^7.0.0" 482 | }, 483 | "engines": { 484 | "node": ">=12" 485 | } 486 | }, 487 | "node_modules/cliui/node_modules/ansi-regex": { 488 | "version": "5.0.1", 489 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 490 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 491 | "dev": true, 492 | "engines": { 493 | "node": ">=8" 494 | } 495 | }, 496 | "node_modules/cliui/node_modules/emoji-regex": { 497 | "version": "8.0.0", 498 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 499 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 500 | "dev": true 501 | }, 502 | "node_modules/cliui/node_modules/string-width": { 503 | "version": "4.2.3", 504 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 505 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 506 | "dev": true, 507 | "dependencies": { 508 | "emoji-regex": "^8.0.0", 509 | "is-fullwidth-code-point": "^3.0.0", 510 | "strip-ansi": "^6.0.1" 511 | }, 512 | "engines": { 513 | "node": ">=8" 514 | } 515 | }, 516 | "node_modules/cliui/node_modules/strip-ansi": { 517 | "version": "6.0.1", 518 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 519 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 520 | "dev": true, 521 | "dependencies": { 522 | "ansi-regex": "^5.0.1" 523 | }, 524 | "engines": { 525 | "node": ">=8" 526 | } 527 | }, 528 | "node_modules/cliui/node_modules/wrap-ansi": { 529 | "version": "7.0.0", 530 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 531 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 532 | "dev": true, 533 | "dependencies": { 534 | "ansi-styles": "^4.0.0", 535 | "string-width": "^4.1.0", 536 | "strip-ansi": "^6.0.0" 537 | }, 538 | "engines": { 539 | "node": ">=10" 540 | }, 541 | "funding": { 542 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 543 | } 544 | }, 545 | "node_modules/color-convert": { 546 | "version": "2.0.1", 547 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 548 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 549 | "dev": true, 550 | "dependencies": { 551 | "color-name": "~1.1.4" 552 | }, 553 | "engines": { 554 | "node": ">=7.0.0" 555 | } 556 | }, 557 | "node_modules/color-name": { 558 | "version": "1.1.4", 559 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 560 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 561 | "dev": true 562 | }, 563 | "node_modules/commander": { 564 | "version": "2.20.3", 565 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 566 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 567 | "dev": true 568 | }, 569 | "node_modules/concat-map": { 570 | "version": "0.0.1", 571 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 572 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 573 | "dev": true 574 | }, 575 | "node_modules/create-require": { 576 | "version": "1.1.1", 577 | "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", 578 | "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", 579 | "dev": true 580 | }, 581 | "node_modules/cross-spawn": { 582 | "version": "7.0.6", 583 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 584 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 585 | "dev": true, 586 | "dependencies": { 587 | "path-key": "^3.1.0", 588 | "shebang-command": "^2.0.0", 589 | "which": "^2.0.1" 590 | }, 591 | "engines": { 592 | "node": ">= 8" 593 | } 594 | }, 595 | "node_modules/debug": { 596 | "version": "4.4.0", 597 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 598 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 599 | "dev": true, 600 | "dependencies": { 601 | "ms": "^2.1.3" 602 | }, 603 | "engines": { 604 | "node": ">=6.0" 605 | }, 606 | "peerDependenciesMeta": { 607 | "supports-color": { 608 | "optional": true 609 | } 610 | } 611 | }, 612 | "node_modules/decamelize": { 613 | "version": "4.0.0", 614 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 615 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 616 | "dev": true, 617 | "engines": { 618 | "node": ">=10" 619 | }, 620 | "funding": { 621 | "url": "https://github.com/sponsors/sindresorhus" 622 | } 623 | }, 624 | "node_modules/diff": { 625 | "version": "5.2.0", 626 | "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", 627 | "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", 628 | "dev": true, 629 | "engines": { 630 | "node": ">=0.3.1" 631 | } 632 | }, 633 | "node_modules/diff-sequences": { 634 | "version": "29.6.3", 635 | "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", 636 | "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", 637 | "dev": true, 638 | "engines": { 639 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 640 | } 641 | }, 642 | "node_modules/eastasianwidth": { 643 | "version": "0.2.0", 644 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 645 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 646 | "dev": true 647 | }, 648 | "node_modules/emoji-regex": { 649 | "version": "9.2.2", 650 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 651 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 652 | "dev": true 653 | }, 654 | "node_modules/escalade": { 655 | "version": "3.2.0", 656 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 657 | "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 658 | "dev": true, 659 | "engines": { 660 | "node": ">=6" 661 | } 662 | }, 663 | "node_modules/escape-string-regexp": { 664 | "version": "1.0.5", 665 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 666 | "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", 667 | "dev": true, 668 | "engines": { 669 | "node": ">=0.8.0" 670 | } 671 | }, 672 | "node_modules/esprima": { 673 | "version": "4.0.1", 674 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 675 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 676 | "dev": true, 677 | "bin": { 678 | "esparse": "bin/esparse.js", 679 | "esvalidate": "bin/esvalidate.js" 680 | }, 681 | "engines": { 682 | "node": ">=4" 683 | } 684 | }, 685 | "node_modules/expect": { 686 | "version": "29.7.0", 687 | "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", 688 | "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", 689 | "dev": true, 690 | "dependencies": { 691 | "@jest/expect-utils": "^29.7.0", 692 | "jest-get-type": "^29.6.3", 693 | "jest-matcher-utils": "^29.7.0", 694 | "jest-message-util": "^29.7.0", 695 | "jest-util": "^29.7.0" 696 | }, 697 | "engines": { 698 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 699 | } 700 | }, 701 | "node_modules/fill-range": { 702 | "version": "7.1.1", 703 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 704 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 705 | "dev": true, 706 | "dependencies": { 707 | "to-regex-range": "^5.0.1" 708 | }, 709 | "engines": { 710 | "node": ">=8" 711 | } 712 | }, 713 | "node_modules/find-up": { 714 | "version": "5.0.0", 715 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 716 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 717 | "dev": true, 718 | "dependencies": { 719 | "locate-path": "^6.0.0", 720 | "path-exists": "^4.0.0" 721 | }, 722 | "engines": { 723 | "node": ">=10" 724 | }, 725 | "funding": { 726 | "url": "https://github.com/sponsors/sindresorhus" 727 | } 728 | }, 729 | "node_modules/flat": { 730 | "version": "5.0.2", 731 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 732 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 733 | "dev": true, 734 | "bin": { 735 | "flat": "cli.js" 736 | } 737 | }, 738 | "node_modules/foreground-child": { 739 | "version": "3.3.0", 740 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", 741 | "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", 742 | "dev": true, 743 | "dependencies": { 744 | "cross-spawn": "^7.0.0", 745 | "signal-exit": "^4.0.1" 746 | }, 747 | "engines": { 748 | "node": ">=14" 749 | }, 750 | "funding": { 751 | "url": "https://github.com/sponsors/isaacs" 752 | } 753 | }, 754 | "node_modules/fs.realpath": { 755 | "version": "1.0.0", 756 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 757 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 758 | "dev": true 759 | }, 760 | "node_modules/fsevents": { 761 | "version": "2.3.3", 762 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 763 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 764 | "dev": true, 765 | "hasInstallScript": true, 766 | "optional": true, 767 | "os": [ 768 | "darwin" 769 | ], 770 | "engines": { 771 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 772 | } 773 | }, 774 | "node_modules/function-bind": { 775 | "version": "1.1.2", 776 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 777 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 778 | "dev": true, 779 | "funding": { 780 | "url": "https://github.com/sponsors/ljharb" 781 | } 782 | }, 783 | "node_modules/get-caller-file": { 784 | "version": "2.0.5", 785 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 786 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 787 | "dev": true, 788 | "engines": { 789 | "node": "6.* || 8.* || >= 10.*" 790 | } 791 | }, 792 | "node_modules/glob": { 793 | "version": "10.4.5", 794 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 795 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 796 | "dev": true, 797 | "dependencies": { 798 | "foreground-child": "^3.1.0", 799 | "jackspeak": "^3.1.2", 800 | "minimatch": "^9.0.4", 801 | "minipass": "^7.1.2", 802 | "package-json-from-dist": "^1.0.0", 803 | "path-scurry": "^1.11.1" 804 | }, 805 | "bin": { 806 | "glob": "dist/esm/bin.mjs" 807 | }, 808 | "funding": { 809 | "url": "https://github.com/sponsors/isaacs" 810 | } 811 | }, 812 | "node_modules/glob-parent": { 813 | "version": "5.1.2", 814 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", 815 | "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", 816 | "dev": true, 817 | "dependencies": { 818 | "is-glob": "^4.0.1" 819 | }, 820 | "engines": { 821 | "node": ">= 6" 822 | } 823 | }, 824 | "node_modules/glob/node_modules/brace-expansion": { 825 | "version": "2.0.1", 826 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 827 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 828 | "dev": true, 829 | "dependencies": { 830 | "balanced-match": "^1.0.0" 831 | } 832 | }, 833 | "node_modules/glob/node_modules/minimatch": { 834 | "version": "9.0.5", 835 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 836 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 837 | "dev": true, 838 | "dependencies": { 839 | "brace-expansion": "^2.0.1" 840 | }, 841 | "engines": { 842 | "node": ">=16 || 14 >=14.17" 843 | }, 844 | "funding": { 845 | "url": "https://github.com/sponsors/isaacs" 846 | } 847 | }, 848 | "node_modules/graceful-fs": { 849 | "version": "4.2.11", 850 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 851 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 852 | "dev": true 853 | }, 854 | "node_modules/has-flag": { 855 | "version": "4.0.0", 856 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 857 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 858 | "dev": true, 859 | "engines": { 860 | "node": ">=8" 861 | } 862 | }, 863 | "node_modules/hasown": { 864 | "version": "2.0.2", 865 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 866 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 867 | "dev": true, 868 | "dependencies": { 869 | "function-bind": "^1.1.2" 870 | }, 871 | "engines": { 872 | "node": ">= 0.4" 873 | } 874 | }, 875 | "node_modules/he": { 876 | "version": "1.2.0", 877 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 878 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 879 | "dev": true, 880 | "bin": { 881 | "he": "bin/he" 882 | } 883 | }, 884 | "node_modules/inflight": { 885 | "version": "1.0.6", 886 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 887 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 888 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 889 | "dev": true, 890 | "dependencies": { 891 | "once": "^1.3.0", 892 | "wrappy": "1" 893 | } 894 | }, 895 | "node_modules/inherits": { 896 | "version": "2.0.4", 897 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 898 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 899 | "dev": true 900 | }, 901 | "node_modules/is-binary-path": { 902 | "version": "2.1.0", 903 | "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", 904 | "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", 905 | "dev": true, 906 | "dependencies": { 907 | "binary-extensions": "^2.0.0" 908 | }, 909 | "engines": { 910 | "node": ">=8" 911 | } 912 | }, 913 | "node_modules/is-core-module": { 914 | "version": "2.16.1", 915 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", 916 | "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", 917 | "dev": true, 918 | "dependencies": { 919 | "hasown": "^2.0.2" 920 | }, 921 | "engines": { 922 | "node": ">= 0.4" 923 | }, 924 | "funding": { 925 | "url": "https://github.com/sponsors/ljharb" 926 | } 927 | }, 928 | "node_modules/is-extglob": { 929 | "version": "2.1.1", 930 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 931 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 932 | "dev": true, 933 | "engines": { 934 | "node": ">=0.10.0" 935 | } 936 | }, 937 | "node_modules/is-fullwidth-code-point": { 938 | "version": "3.0.0", 939 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 940 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 941 | "dev": true, 942 | "engines": { 943 | "node": ">=8" 944 | } 945 | }, 946 | "node_modules/is-glob": { 947 | "version": "4.0.3", 948 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 949 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 950 | "dev": true, 951 | "dependencies": { 952 | "is-extglob": "^2.1.1" 953 | }, 954 | "engines": { 955 | "node": ">=0.10.0" 956 | } 957 | }, 958 | "node_modules/is-number": { 959 | "version": "7.0.0", 960 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 961 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 962 | "dev": true, 963 | "engines": { 964 | "node": ">=0.12.0" 965 | } 966 | }, 967 | "node_modules/is-plain-obj": { 968 | "version": "2.1.0", 969 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 970 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 971 | "dev": true, 972 | "engines": { 973 | "node": ">=8" 974 | } 975 | }, 976 | "node_modules/is-unicode-supported": { 977 | "version": "0.1.0", 978 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 979 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 980 | "dev": true, 981 | "engines": { 982 | "node": ">=10" 983 | }, 984 | "funding": { 985 | "url": "https://github.com/sponsors/sindresorhus" 986 | } 987 | }, 988 | "node_modules/isexe": { 989 | "version": "2.0.0", 990 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 991 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 992 | "dev": true 993 | }, 994 | "node_modules/jackspeak": { 995 | "version": "3.4.3", 996 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 997 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 998 | "dev": true, 999 | "dependencies": { 1000 | "@isaacs/cliui": "^8.0.2" 1001 | }, 1002 | "funding": { 1003 | "url": "https://github.com/sponsors/isaacs" 1004 | }, 1005 | "optionalDependencies": { 1006 | "@pkgjs/parseargs": "^0.11.0" 1007 | } 1008 | }, 1009 | "node_modules/jest-diff": { 1010 | "version": "29.7.0", 1011 | "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", 1012 | "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", 1013 | "dev": true, 1014 | "dependencies": { 1015 | "chalk": "^4.0.0", 1016 | "diff-sequences": "^29.6.3", 1017 | "jest-get-type": "^29.6.3", 1018 | "pretty-format": "^29.7.0" 1019 | }, 1020 | "engines": { 1021 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1022 | } 1023 | }, 1024 | "node_modules/jest-get-type": { 1025 | "version": "29.6.3", 1026 | "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", 1027 | "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", 1028 | "dev": true, 1029 | "engines": { 1030 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1031 | } 1032 | }, 1033 | "node_modules/jest-matcher-utils": { 1034 | "version": "29.7.0", 1035 | "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", 1036 | "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", 1037 | "dev": true, 1038 | "dependencies": { 1039 | "chalk": "^4.0.0", 1040 | "jest-diff": "^29.7.0", 1041 | "jest-get-type": "^29.6.3", 1042 | "pretty-format": "^29.7.0" 1043 | }, 1044 | "engines": { 1045 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1046 | } 1047 | }, 1048 | "node_modules/jest-message-util": { 1049 | "version": "29.7.0", 1050 | "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", 1051 | "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", 1052 | "dev": true, 1053 | "dependencies": { 1054 | "@babel/code-frame": "^7.12.13", 1055 | "@jest/types": "^29.6.3", 1056 | "@types/stack-utils": "^2.0.0", 1057 | "chalk": "^4.0.0", 1058 | "graceful-fs": "^4.2.9", 1059 | "micromatch": "^4.0.4", 1060 | "pretty-format": "^29.7.0", 1061 | "slash": "^3.0.0", 1062 | "stack-utils": "^2.0.3" 1063 | }, 1064 | "engines": { 1065 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1066 | } 1067 | }, 1068 | "node_modules/jest-util": { 1069 | "version": "29.7.0", 1070 | "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", 1071 | "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", 1072 | "dev": true, 1073 | "dependencies": { 1074 | "@jest/types": "^29.6.3", 1075 | "@types/node": "*", 1076 | "chalk": "^4.0.0", 1077 | "ci-info": "^3.2.0", 1078 | "graceful-fs": "^4.2.9", 1079 | "picomatch": "^2.2.3" 1080 | }, 1081 | "engines": { 1082 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1083 | } 1084 | }, 1085 | "node_modules/js-tokens": { 1086 | "version": "4.0.0", 1087 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 1088 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 1089 | "dev": true 1090 | }, 1091 | "node_modules/js-yaml": { 1092 | "version": "4.1.0", 1093 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 1094 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 1095 | "dev": true, 1096 | "dependencies": { 1097 | "argparse": "^2.0.1" 1098 | }, 1099 | "bin": { 1100 | "js-yaml": "bin/js-yaml.js" 1101 | } 1102 | }, 1103 | "node_modules/json5": { 1104 | "version": "2.2.3", 1105 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", 1106 | "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", 1107 | "optional": true, 1108 | "peer": true, 1109 | "bin": { 1110 | "json5": "lib/cli.js" 1111 | }, 1112 | "engines": { 1113 | "node": ">=6" 1114 | } 1115 | }, 1116 | "node_modules/locate-path": { 1117 | "version": "6.0.0", 1118 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 1119 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 1120 | "dev": true, 1121 | "dependencies": { 1122 | "p-locate": "^5.0.0" 1123 | }, 1124 | "engines": { 1125 | "node": ">=10" 1126 | }, 1127 | "funding": { 1128 | "url": "https://github.com/sponsors/sindresorhus" 1129 | } 1130 | }, 1131 | "node_modules/log-symbols": { 1132 | "version": "4.1.0", 1133 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 1134 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 1135 | "dev": true, 1136 | "dependencies": { 1137 | "chalk": "^4.1.0", 1138 | "is-unicode-supported": "^0.1.0" 1139 | }, 1140 | "engines": { 1141 | "node": ">=10" 1142 | }, 1143 | "funding": { 1144 | "url": "https://github.com/sponsors/sindresorhus" 1145 | } 1146 | }, 1147 | "node_modules/lru-cache": { 1148 | "version": "10.4.3", 1149 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 1150 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 1151 | "dev": true 1152 | }, 1153 | "node_modules/make-error": { 1154 | "version": "1.3.6", 1155 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", 1156 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", 1157 | "dev": true 1158 | }, 1159 | "node_modules/micromatch": { 1160 | "version": "4.0.8", 1161 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", 1162 | "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", 1163 | "dev": true, 1164 | "dependencies": { 1165 | "braces": "^3.0.3", 1166 | "picomatch": "^2.3.1" 1167 | }, 1168 | "engines": { 1169 | "node": ">=8.6" 1170 | } 1171 | }, 1172 | "node_modules/minimatch": { 1173 | "version": "3.1.2", 1174 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 1175 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 1176 | "dev": true, 1177 | "dependencies": { 1178 | "brace-expansion": "^1.1.7" 1179 | }, 1180 | "engines": { 1181 | "node": "*" 1182 | } 1183 | }, 1184 | "node_modules/minimist": { 1185 | "version": "1.2.8", 1186 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 1187 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 1188 | "devOptional": true, 1189 | "funding": { 1190 | "url": "https://github.com/sponsors/ljharb" 1191 | } 1192 | }, 1193 | "node_modules/minipass": { 1194 | "version": "7.1.2", 1195 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 1196 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 1197 | "dev": true, 1198 | "engines": { 1199 | "node": ">=16 || 14 >=14.17" 1200 | } 1201 | }, 1202 | "node_modules/mkdirp": { 1203 | "version": "0.5.6", 1204 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 1205 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 1206 | "dev": true, 1207 | "dependencies": { 1208 | "minimist": "^1.2.6" 1209 | }, 1210 | "bin": { 1211 | "mkdirp": "bin/cmd.js" 1212 | } 1213 | }, 1214 | "node_modules/mocha": { 1215 | "version": "11.1.0", 1216 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.1.0.tgz", 1217 | "integrity": "sha512-8uJR5RTC2NgpY3GrYcgpZrsEd9zKbPDpob1RezyR2upGHRQtHWofmzTMzTMSV6dru3tj5Ukt0+Vnq1qhFEEwAg==", 1218 | "dev": true, 1219 | "dependencies": { 1220 | "ansi-colors": "^4.1.3", 1221 | "browser-stdout": "^1.3.1", 1222 | "chokidar": "^3.5.3", 1223 | "debug": "^4.3.5", 1224 | "diff": "^5.2.0", 1225 | "escape-string-regexp": "^4.0.0", 1226 | "find-up": "^5.0.0", 1227 | "glob": "^10.4.5", 1228 | "he": "^1.2.0", 1229 | "js-yaml": "^4.1.0", 1230 | "log-symbols": "^4.1.0", 1231 | "minimatch": "^5.1.6", 1232 | "ms": "^2.1.3", 1233 | "serialize-javascript": "^6.0.2", 1234 | "strip-json-comments": "^3.1.1", 1235 | "supports-color": "^8.1.1", 1236 | "workerpool": "^6.5.1", 1237 | "yargs": "^17.7.2", 1238 | "yargs-parser": "^21.1.1", 1239 | "yargs-unparser": "^2.0.0" 1240 | }, 1241 | "bin": { 1242 | "_mocha": "bin/_mocha", 1243 | "mocha": "bin/mocha.js" 1244 | }, 1245 | "engines": { 1246 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1247 | } 1248 | }, 1249 | "node_modules/mocha/node_modules/brace-expansion": { 1250 | "version": "2.0.1", 1251 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1252 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1253 | "dev": true, 1254 | "dependencies": { 1255 | "balanced-match": "^1.0.0" 1256 | } 1257 | }, 1258 | "node_modules/mocha/node_modules/escape-string-regexp": { 1259 | "version": "4.0.0", 1260 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1261 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1262 | "dev": true, 1263 | "engines": { 1264 | "node": ">=10" 1265 | }, 1266 | "funding": { 1267 | "url": "https://github.com/sponsors/sindresorhus" 1268 | } 1269 | }, 1270 | "node_modules/mocha/node_modules/minimatch": { 1271 | "version": "5.1.6", 1272 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 1273 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 1274 | "dev": true, 1275 | "dependencies": { 1276 | "brace-expansion": "^2.0.1" 1277 | }, 1278 | "engines": { 1279 | "node": ">=10" 1280 | } 1281 | }, 1282 | "node_modules/mocha/node_modules/supports-color": { 1283 | "version": "8.1.1", 1284 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 1285 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 1286 | "dev": true, 1287 | "dependencies": { 1288 | "has-flag": "^4.0.0" 1289 | }, 1290 | "engines": { 1291 | "node": ">=10" 1292 | }, 1293 | "funding": { 1294 | "url": "https://github.com/chalk/supports-color?sponsor=1" 1295 | } 1296 | }, 1297 | "node_modules/ms": { 1298 | "version": "2.1.3", 1299 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 1300 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 1301 | "dev": true 1302 | }, 1303 | "node_modules/normalize-path": { 1304 | "version": "3.0.0", 1305 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 1306 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 1307 | "dev": true, 1308 | "engines": { 1309 | "node": ">=0.10.0" 1310 | } 1311 | }, 1312 | "node_modules/once": { 1313 | "version": "1.4.0", 1314 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1315 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 1316 | "dev": true, 1317 | "dependencies": { 1318 | "wrappy": "1" 1319 | } 1320 | }, 1321 | "node_modules/p-limit": { 1322 | "version": "3.1.0", 1323 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 1324 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 1325 | "dev": true, 1326 | "dependencies": { 1327 | "yocto-queue": "^0.1.0" 1328 | }, 1329 | "engines": { 1330 | "node": ">=10" 1331 | }, 1332 | "funding": { 1333 | "url": "https://github.com/sponsors/sindresorhus" 1334 | } 1335 | }, 1336 | "node_modules/p-locate": { 1337 | "version": "5.0.0", 1338 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 1339 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 1340 | "dev": true, 1341 | "dependencies": { 1342 | "p-limit": "^3.0.2" 1343 | }, 1344 | "engines": { 1345 | "node": ">=10" 1346 | }, 1347 | "funding": { 1348 | "url": "https://github.com/sponsors/sindresorhus" 1349 | } 1350 | }, 1351 | "node_modules/package-json-from-dist": { 1352 | "version": "1.0.1", 1353 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", 1354 | "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", 1355 | "dev": true 1356 | }, 1357 | "node_modules/path-exists": { 1358 | "version": "4.0.0", 1359 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 1360 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 1361 | "dev": true, 1362 | "engines": { 1363 | "node": ">=8" 1364 | } 1365 | }, 1366 | "node_modules/path-is-absolute": { 1367 | "version": "1.0.1", 1368 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1369 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 1370 | "dev": true, 1371 | "engines": { 1372 | "node": ">=0.10.0" 1373 | } 1374 | }, 1375 | "node_modules/path-key": { 1376 | "version": "3.1.1", 1377 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 1378 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 1379 | "dev": true, 1380 | "engines": { 1381 | "node": ">=8" 1382 | } 1383 | }, 1384 | "node_modules/path-parse": { 1385 | "version": "1.0.7", 1386 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1387 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1388 | "dev": true 1389 | }, 1390 | "node_modules/path-scurry": { 1391 | "version": "1.11.1", 1392 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 1393 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 1394 | "dev": true, 1395 | "dependencies": { 1396 | "lru-cache": "^10.2.0", 1397 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 1398 | }, 1399 | "engines": { 1400 | "node": ">=16 || 14 >=14.18" 1401 | }, 1402 | "funding": { 1403 | "url": "https://github.com/sponsors/isaacs" 1404 | } 1405 | }, 1406 | "node_modules/picocolors": { 1407 | "version": "1.1.1", 1408 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 1409 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 1410 | "dev": true 1411 | }, 1412 | "node_modules/picomatch": { 1413 | "version": "2.3.1", 1414 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 1415 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 1416 | "dev": true, 1417 | "engines": { 1418 | "node": ">=8.6" 1419 | }, 1420 | "funding": { 1421 | "url": "https://github.com/sponsors/jonschlinkert" 1422 | } 1423 | }, 1424 | "node_modules/pretty-format": { 1425 | "version": "29.7.0", 1426 | "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", 1427 | "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", 1428 | "dev": true, 1429 | "dependencies": { 1430 | "@jest/schemas": "^29.6.3", 1431 | "ansi-styles": "^5.0.0", 1432 | "react-is": "^18.0.0" 1433 | }, 1434 | "engines": { 1435 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1436 | } 1437 | }, 1438 | "node_modules/pretty-format/node_modules/ansi-styles": { 1439 | "version": "5.2.0", 1440 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", 1441 | "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", 1442 | "dev": true, 1443 | "engines": { 1444 | "node": ">=10" 1445 | }, 1446 | "funding": { 1447 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1448 | } 1449 | }, 1450 | "node_modules/randombytes": { 1451 | "version": "2.1.0", 1452 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1453 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1454 | "dev": true, 1455 | "dependencies": { 1456 | "safe-buffer": "^5.1.0" 1457 | } 1458 | }, 1459 | "node_modules/react-is": { 1460 | "version": "18.3.1", 1461 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", 1462 | "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", 1463 | "dev": true 1464 | }, 1465 | "node_modules/readdirp": { 1466 | "version": "3.6.0", 1467 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", 1468 | "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", 1469 | "dev": true, 1470 | "dependencies": { 1471 | "picomatch": "^2.2.1" 1472 | }, 1473 | "engines": { 1474 | "node": ">=8.10.0" 1475 | } 1476 | }, 1477 | "node_modules/require-directory": { 1478 | "version": "2.1.1", 1479 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 1480 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 1481 | "dev": true, 1482 | "engines": { 1483 | "node": ">=0.10.0" 1484 | } 1485 | }, 1486 | "node_modules/resolve": { 1487 | "version": "1.22.10", 1488 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", 1489 | "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", 1490 | "dev": true, 1491 | "dependencies": { 1492 | "is-core-module": "^2.16.0", 1493 | "path-parse": "^1.0.7", 1494 | "supports-preserve-symlinks-flag": "^1.0.0" 1495 | }, 1496 | "bin": { 1497 | "resolve": "bin/resolve" 1498 | }, 1499 | "engines": { 1500 | "node": ">= 0.4" 1501 | }, 1502 | "funding": { 1503 | "url": "https://github.com/sponsors/ljharb" 1504 | } 1505 | }, 1506 | "node_modules/safe-buffer": { 1507 | "version": "5.2.1", 1508 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1509 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1510 | "dev": true, 1511 | "funding": [ 1512 | { 1513 | "type": "github", 1514 | "url": "https://github.com/sponsors/feross" 1515 | }, 1516 | { 1517 | "type": "patreon", 1518 | "url": "https://www.patreon.com/feross" 1519 | }, 1520 | { 1521 | "type": "consulting", 1522 | "url": "https://feross.org/support" 1523 | } 1524 | ] 1525 | }, 1526 | "node_modules/semver": { 1527 | "version": "5.7.2", 1528 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", 1529 | "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", 1530 | "dev": true, 1531 | "bin": { 1532 | "semver": "bin/semver" 1533 | } 1534 | }, 1535 | "node_modules/serialize-javascript": { 1536 | "version": "6.0.2", 1537 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 1538 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 1539 | "dev": true, 1540 | "dependencies": { 1541 | "randombytes": "^2.1.0" 1542 | } 1543 | }, 1544 | "node_modules/shebang-command": { 1545 | "version": "2.0.0", 1546 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 1547 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 1548 | "dev": true, 1549 | "dependencies": { 1550 | "shebang-regex": "^3.0.0" 1551 | }, 1552 | "engines": { 1553 | "node": ">=8" 1554 | } 1555 | }, 1556 | "node_modules/shebang-regex": { 1557 | "version": "3.0.0", 1558 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 1559 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 1560 | "dev": true, 1561 | "engines": { 1562 | "node": ">=8" 1563 | } 1564 | }, 1565 | "node_modules/signal-exit": { 1566 | "version": "4.1.0", 1567 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 1568 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 1569 | "dev": true, 1570 | "engines": { 1571 | "node": ">=14" 1572 | }, 1573 | "funding": { 1574 | "url": "https://github.com/sponsors/isaacs" 1575 | } 1576 | }, 1577 | "node_modules/slash": { 1578 | "version": "3.0.0", 1579 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 1580 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 1581 | "dev": true, 1582 | "engines": { 1583 | "node": ">=8" 1584 | } 1585 | }, 1586 | "node_modules/sprintf-js": { 1587 | "version": "1.0.3", 1588 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 1589 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 1590 | "dev": true 1591 | }, 1592 | "node_modules/stack-utils": { 1593 | "version": "2.0.6", 1594 | "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", 1595 | "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", 1596 | "dev": true, 1597 | "dependencies": { 1598 | "escape-string-regexp": "^2.0.0" 1599 | }, 1600 | "engines": { 1601 | "node": ">=10" 1602 | } 1603 | }, 1604 | "node_modules/stack-utils/node_modules/escape-string-regexp": { 1605 | "version": "2.0.0", 1606 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", 1607 | "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", 1608 | "dev": true, 1609 | "engines": { 1610 | "node": ">=8" 1611 | } 1612 | }, 1613 | "node_modules/string-width": { 1614 | "version": "5.1.2", 1615 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 1616 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 1617 | "dev": true, 1618 | "dependencies": { 1619 | "eastasianwidth": "^0.2.0", 1620 | "emoji-regex": "^9.2.2", 1621 | "strip-ansi": "^7.0.1" 1622 | }, 1623 | "engines": { 1624 | "node": ">=12" 1625 | }, 1626 | "funding": { 1627 | "url": "https://github.com/sponsors/sindresorhus" 1628 | } 1629 | }, 1630 | "node_modules/string-width-cjs": { 1631 | "name": "string-width", 1632 | "version": "4.2.3", 1633 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 1634 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 1635 | "dev": true, 1636 | "dependencies": { 1637 | "emoji-regex": "^8.0.0", 1638 | "is-fullwidth-code-point": "^3.0.0", 1639 | "strip-ansi": "^6.0.1" 1640 | }, 1641 | "engines": { 1642 | "node": ">=8" 1643 | } 1644 | }, 1645 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 1646 | "version": "5.0.1", 1647 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1648 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1649 | "dev": true, 1650 | "engines": { 1651 | "node": ">=8" 1652 | } 1653 | }, 1654 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 1655 | "version": "8.0.0", 1656 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1657 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1658 | "dev": true 1659 | }, 1660 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 1661 | "version": "6.0.1", 1662 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1663 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1664 | "dev": true, 1665 | "dependencies": { 1666 | "ansi-regex": "^5.0.1" 1667 | }, 1668 | "engines": { 1669 | "node": ">=8" 1670 | } 1671 | }, 1672 | "node_modules/strip-ansi": { 1673 | "version": "7.1.0", 1674 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 1675 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 1676 | "dev": true, 1677 | "dependencies": { 1678 | "ansi-regex": "^6.0.1" 1679 | }, 1680 | "engines": { 1681 | "node": ">=12" 1682 | }, 1683 | "funding": { 1684 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 1685 | } 1686 | }, 1687 | "node_modules/strip-ansi-cjs": { 1688 | "name": "strip-ansi", 1689 | "version": "6.0.1", 1690 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 1691 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 1692 | "dev": true, 1693 | "dependencies": { 1694 | "ansi-regex": "^5.0.1" 1695 | }, 1696 | "engines": { 1697 | "node": ">=8" 1698 | } 1699 | }, 1700 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 1701 | "version": "5.0.1", 1702 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1703 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1704 | "dev": true, 1705 | "engines": { 1706 | "node": ">=8" 1707 | } 1708 | }, 1709 | "node_modules/strip-bom": { 1710 | "version": "3.0.0", 1711 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", 1712 | "integrity": "sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA==", 1713 | "optional": true, 1714 | "peer": true, 1715 | "engines": { 1716 | "node": ">=4" 1717 | } 1718 | }, 1719 | "node_modules/strip-json-comments": { 1720 | "version": "3.1.1", 1721 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 1722 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 1723 | "dev": true, 1724 | "engines": { 1725 | "node": ">=8" 1726 | }, 1727 | "funding": { 1728 | "url": "https://github.com/sponsors/sindresorhus" 1729 | } 1730 | }, 1731 | "node_modules/supports-color": { 1732 | "version": "7.2.0", 1733 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 1734 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 1735 | "dev": true, 1736 | "dependencies": { 1737 | "has-flag": "^4.0.0" 1738 | }, 1739 | "engines": { 1740 | "node": ">=8" 1741 | } 1742 | }, 1743 | "node_modules/supports-preserve-symlinks-flag": { 1744 | "version": "1.0.0", 1745 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1746 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1747 | "dev": true, 1748 | "engines": { 1749 | "node": ">= 0.4" 1750 | }, 1751 | "funding": { 1752 | "url": "https://github.com/sponsors/ljharb" 1753 | } 1754 | }, 1755 | "node_modules/to-regex-range": { 1756 | "version": "5.0.1", 1757 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 1758 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 1759 | "dev": true, 1760 | "dependencies": { 1761 | "is-number": "^7.0.0" 1762 | }, 1763 | "engines": { 1764 | "node": ">=8.0" 1765 | } 1766 | }, 1767 | "node_modules/ts-node": { 1768 | "version": "10.9.2", 1769 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", 1770 | "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", 1771 | "dev": true, 1772 | "dependencies": { 1773 | "@cspotcode/source-map-support": "^0.8.0", 1774 | "@tsconfig/node10": "^1.0.7", 1775 | "@tsconfig/node12": "^1.0.7", 1776 | "@tsconfig/node14": "^1.0.0", 1777 | "@tsconfig/node16": "^1.0.2", 1778 | "acorn": "^8.4.1", 1779 | "acorn-walk": "^8.1.1", 1780 | "arg": "^4.1.0", 1781 | "create-require": "^1.1.0", 1782 | "diff": "^4.0.1", 1783 | "make-error": "^1.1.1", 1784 | "v8-compile-cache-lib": "^3.0.1", 1785 | "yn": "3.1.1" 1786 | }, 1787 | "bin": { 1788 | "ts-node": "dist/bin.js", 1789 | "ts-node-cwd": "dist/bin-cwd.js", 1790 | "ts-node-esm": "dist/bin-esm.js", 1791 | "ts-node-script": "dist/bin-script.js", 1792 | "ts-node-transpile-only": "dist/bin-transpile.js", 1793 | "ts-script": "dist/bin-script-deprecated.js" 1794 | }, 1795 | "peerDependencies": { 1796 | "@swc/core": ">=1.2.50", 1797 | "@swc/wasm": ">=1.2.50", 1798 | "@types/node": "*", 1799 | "typescript": ">=2.7" 1800 | }, 1801 | "peerDependenciesMeta": { 1802 | "@swc/core": { 1803 | "optional": true 1804 | }, 1805 | "@swc/wasm": { 1806 | "optional": true 1807 | } 1808 | } 1809 | }, 1810 | "node_modules/ts-node/node_modules/diff": { 1811 | "version": "4.0.2", 1812 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 1813 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 1814 | "dev": true, 1815 | "engines": { 1816 | "node": ">=0.3.1" 1817 | } 1818 | }, 1819 | "node_modules/tsconfig-paths": { 1820 | "version": "4.2.0", 1821 | "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz", 1822 | "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==", 1823 | "optional": true, 1824 | "peer": true, 1825 | "dependencies": { 1826 | "json5": "^2.2.2", 1827 | "minimist": "^1.2.6", 1828 | "strip-bom": "^3.0.0" 1829 | }, 1830 | "engines": { 1831 | "node": ">=6" 1832 | } 1833 | }, 1834 | "node_modules/tslib": { 1835 | "version": "1.14.1", 1836 | "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", 1837 | "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", 1838 | "dev": true 1839 | }, 1840 | "node_modules/tslint": { 1841 | "version": "6.1.3", 1842 | "resolved": "https://registry.npmjs.org/tslint/-/tslint-6.1.3.tgz", 1843 | "integrity": "sha512-IbR4nkT96EQOvKE2PW/djGz8iGNeJ4rF2mBfiYaR/nvUWYKJhLwimoJKgjIFEIDibBtOevj7BqCRL4oHeWWUCg==", 1844 | "deprecated": "TSLint has been deprecated in favor of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.", 1845 | "dev": true, 1846 | "dependencies": { 1847 | "@babel/code-frame": "^7.0.0", 1848 | "builtin-modules": "^1.1.1", 1849 | "chalk": "^2.3.0", 1850 | "commander": "^2.12.1", 1851 | "diff": "^4.0.1", 1852 | "glob": "^7.1.1", 1853 | "js-yaml": "^3.13.1", 1854 | "minimatch": "^3.0.4", 1855 | "mkdirp": "^0.5.3", 1856 | "resolve": "^1.3.2", 1857 | "semver": "^5.3.0", 1858 | "tslib": "^1.13.0", 1859 | "tsutils": "^2.29.0" 1860 | }, 1861 | "bin": { 1862 | "tslint": "bin/tslint" 1863 | }, 1864 | "engines": { 1865 | "node": ">=4.8.0" 1866 | }, 1867 | "peerDependencies": { 1868 | "typescript": ">=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >=3.0.0-dev || >= 3.1.0-dev || >= 3.2.0-dev || >= 4.0.0-dev" 1869 | } 1870 | }, 1871 | "node_modules/tslint/node_modules/ansi-styles": { 1872 | "version": "3.2.1", 1873 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 1874 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 1875 | "dev": true, 1876 | "dependencies": { 1877 | "color-convert": "^1.9.0" 1878 | }, 1879 | "engines": { 1880 | "node": ">=4" 1881 | } 1882 | }, 1883 | "node_modules/tslint/node_modules/argparse": { 1884 | "version": "1.0.10", 1885 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 1886 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 1887 | "dev": true, 1888 | "dependencies": { 1889 | "sprintf-js": "~1.0.2" 1890 | } 1891 | }, 1892 | "node_modules/tslint/node_modules/chalk": { 1893 | "version": "2.4.2", 1894 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 1895 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 1896 | "dev": true, 1897 | "dependencies": { 1898 | "ansi-styles": "^3.2.1", 1899 | "escape-string-regexp": "^1.0.5", 1900 | "supports-color": "^5.3.0" 1901 | }, 1902 | "engines": { 1903 | "node": ">=4" 1904 | } 1905 | }, 1906 | "node_modules/tslint/node_modules/color-convert": { 1907 | "version": "1.9.3", 1908 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 1909 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 1910 | "dev": true, 1911 | "dependencies": { 1912 | "color-name": "1.1.3" 1913 | } 1914 | }, 1915 | "node_modules/tslint/node_modules/color-name": { 1916 | "version": "1.1.3", 1917 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 1918 | "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", 1919 | "dev": true 1920 | }, 1921 | "node_modules/tslint/node_modules/diff": { 1922 | "version": "4.0.2", 1923 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 1924 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 1925 | "dev": true, 1926 | "engines": { 1927 | "node": ">=0.3.1" 1928 | } 1929 | }, 1930 | "node_modules/tslint/node_modules/glob": { 1931 | "version": "7.2.3", 1932 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1933 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1934 | "deprecated": "Glob versions prior to v9 are no longer supported", 1935 | "dev": true, 1936 | "dependencies": { 1937 | "fs.realpath": "^1.0.0", 1938 | "inflight": "^1.0.4", 1939 | "inherits": "2", 1940 | "minimatch": "^3.1.1", 1941 | "once": "^1.3.0", 1942 | "path-is-absolute": "^1.0.0" 1943 | }, 1944 | "engines": { 1945 | "node": "*" 1946 | }, 1947 | "funding": { 1948 | "url": "https://github.com/sponsors/isaacs" 1949 | } 1950 | }, 1951 | "node_modules/tslint/node_modules/has-flag": { 1952 | "version": "3.0.0", 1953 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1954 | "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", 1955 | "dev": true, 1956 | "engines": { 1957 | "node": ">=4" 1958 | } 1959 | }, 1960 | "node_modules/tslint/node_modules/js-yaml": { 1961 | "version": "3.14.1", 1962 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 1963 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 1964 | "dev": true, 1965 | "dependencies": { 1966 | "argparse": "^1.0.7", 1967 | "esprima": "^4.0.0" 1968 | }, 1969 | "bin": { 1970 | "js-yaml": "bin/js-yaml.js" 1971 | } 1972 | }, 1973 | "node_modules/tslint/node_modules/supports-color": { 1974 | "version": "5.5.0", 1975 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 1976 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 1977 | "dev": true, 1978 | "dependencies": { 1979 | "has-flag": "^3.0.0" 1980 | }, 1981 | "engines": { 1982 | "node": ">=4" 1983 | } 1984 | }, 1985 | "node_modules/tsutils": { 1986 | "version": "2.29.0", 1987 | "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-2.29.0.tgz", 1988 | "integrity": "sha512-g5JVHCIJwzfISaXpXE1qvNalca5Jwob6FjI4AoPlqMusJ6ftFE7IkkFoMhVLRgK+4Kx3gkzb8UZK5t5yTTvEmA==", 1989 | "dev": true, 1990 | "dependencies": { 1991 | "tslib": "^1.8.1" 1992 | }, 1993 | "peerDependencies": { 1994 | "typescript": ">=2.1.0 || >=2.1.0-dev || >=2.2.0-dev || >=2.3.0-dev || >=2.4.0-dev || >=2.5.0-dev || >=2.6.0-dev || >=2.7.0-dev || >=2.8.0-dev || >=2.9.0-dev || >= 3.0.0-dev || >= 3.1.0-dev" 1995 | } 1996 | }, 1997 | "node_modules/typescript": { 1998 | "version": "4.9.5", 1999 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", 2000 | "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", 2001 | "dev": true, 2002 | "bin": { 2003 | "tsc": "bin/tsc", 2004 | "tsserver": "bin/tsserver" 2005 | }, 2006 | "engines": { 2007 | "node": ">=4.2.0" 2008 | } 2009 | }, 2010 | "node_modules/undici-types": { 2011 | "version": "6.20.0", 2012 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 2013 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 2014 | "dev": true 2015 | }, 2016 | "node_modules/v8-compile-cache-lib": { 2017 | "version": "3.0.1", 2018 | "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", 2019 | "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", 2020 | "dev": true 2021 | }, 2022 | "node_modules/which": { 2023 | "version": "2.0.2", 2024 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 2025 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 2026 | "dev": true, 2027 | "dependencies": { 2028 | "isexe": "^2.0.0" 2029 | }, 2030 | "bin": { 2031 | "node-which": "bin/node-which" 2032 | }, 2033 | "engines": { 2034 | "node": ">= 8" 2035 | } 2036 | }, 2037 | "node_modules/workerpool": { 2038 | "version": "6.5.1", 2039 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", 2040 | "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", 2041 | "dev": true 2042 | }, 2043 | "node_modules/wrap-ansi": { 2044 | "version": "8.1.0", 2045 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 2046 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 2047 | "dev": true, 2048 | "dependencies": { 2049 | "ansi-styles": "^6.1.0", 2050 | "string-width": "^5.0.1", 2051 | "strip-ansi": "^7.0.1" 2052 | }, 2053 | "engines": { 2054 | "node": ">=12" 2055 | }, 2056 | "funding": { 2057 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2058 | } 2059 | }, 2060 | "node_modules/wrap-ansi-cjs": { 2061 | "name": "wrap-ansi", 2062 | "version": "7.0.0", 2063 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 2064 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 2065 | "dev": true, 2066 | "dependencies": { 2067 | "ansi-styles": "^4.0.0", 2068 | "string-width": "^4.1.0", 2069 | "strip-ansi": "^6.0.0" 2070 | }, 2071 | "engines": { 2072 | "node": ">=10" 2073 | }, 2074 | "funding": { 2075 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2076 | } 2077 | }, 2078 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 2079 | "version": "5.0.1", 2080 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2081 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2082 | "dev": true, 2083 | "engines": { 2084 | "node": ">=8" 2085 | } 2086 | }, 2087 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2088 | "version": "8.0.0", 2089 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2090 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2091 | "dev": true 2092 | }, 2093 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2094 | "version": "4.2.3", 2095 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2096 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2097 | "dev": true, 2098 | "dependencies": { 2099 | "emoji-regex": "^8.0.0", 2100 | "is-fullwidth-code-point": "^3.0.0", 2101 | "strip-ansi": "^6.0.1" 2102 | }, 2103 | "engines": { 2104 | "node": ">=8" 2105 | } 2106 | }, 2107 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 2108 | "version": "6.0.1", 2109 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2110 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2111 | "dev": true, 2112 | "dependencies": { 2113 | "ansi-regex": "^5.0.1" 2114 | }, 2115 | "engines": { 2116 | "node": ">=8" 2117 | } 2118 | }, 2119 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 2120 | "version": "6.2.1", 2121 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 2122 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 2123 | "dev": true, 2124 | "engines": { 2125 | "node": ">=12" 2126 | }, 2127 | "funding": { 2128 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2129 | } 2130 | }, 2131 | "node_modules/wrappy": { 2132 | "version": "1.0.2", 2133 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2134 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 2135 | "dev": true 2136 | }, 2137 | "node_modules/y18n": { 2138 | "version": "5.0.8", 2139 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 2140 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 2141 | "dev": true, 2142 | "engines": { 2143 | "node": ">=10" 2144 | } 2145 | }, 2146 | "node_modules/yargs": { 2147 | "version": "17.7.2", 2148 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 2149 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 2150 | "dev": true, 2151 | "dependencies": { 2152 | "cliui": "^8.0.1", 2153 | "escalade": "^3.1.1", 2154 | "get-caller-file": "^2.0.5", 2155 | "require-directory": "^2.1.1", 2156 | "string-width": "^4.2.3", 2157 | "y18n": "^5.0.5", 2158 | "yargs-parser": "^21.1.1" 2159 | }, 2160 | "engines": { 2161 | "node": ">=12" 2162 | } 2163 | }, 2164 | "node_modules/yargs-parser": { 2165 | "version": "21.1.1", 2166 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 2167 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 2168 | "dev": true, 2169 | "engines": { 2170 | "node": ">=12" 2171 | } 2172 | }, 2173 | "node_modules/yargs-unparser": { 2174 | "version": "2.0.0", 2175 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 2176 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 2177 | "dev": true, 2178 | "dependencies": { 2179 | "camelcase": "^6.0.0", 2180 | "decamelize": "^4.0.0", 2181 | "flat": "^5.0.2", 2182 | "is-plain-obj": "^2.1.0" 2183 | }, 2184 | "engines": { 2185 | "node": ">=10" 2186 | } 2187 | }, 2188 | "node_modules/yargs/node_modules/ansi-regex": { 2189 | "version": "5.0.1", 2190 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 2191 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 2192 | "dev": true, 2193 | "engines": { 2194 | "node": ">=8" 2195 | } 2196 | }, 2197 | "node_modules/yargs/node_modules/emoji-regex": { 2198 | "version": "8.0.0", 2199 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 2200 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 2201 | "dev": true 2202 | }, 2203 | "node_modules/yargs/node_modules/string-width": { 2204 | "version": "4.2.3", 2205 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 2206 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 2207 | "dev": true, 2208 | "dependencies": { 2209 | "emoji-regex": "^8.0.0", 2210 | "is-fullwidth-code-point": "^3.0.0", 2211 | "strip-ansi": "^6.0.1" 2212 | }, 2213 | "engines": { 2214 | "node": ">=8" 2215 | } 2216 | }, 2217 | "node_modules/yargs/node_modules/strip-ansi": { 2218 | "version": "6.0.1", 2219 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 2220 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 2221 | "dev": true, 2222 | "dependencies": { 2223 | "ansi-regex": "^5.0.1" 2224 | }, 2225 | "engines": { 2226 | "node": ">=8" 2227 | } 2228 | }, 2229 | "node_modules/yn": { 2230 | "version": "3.1.1", 2231 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 2232 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 2233 | "dev": true, 2234 | "engines": { 2235 | "node": ">=6" 2236 | } 2237 | }, 2238 | "node_modules/yocto-queue": { 2239 | "version": "0.1.0", 2240 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 2241 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 2242 | "dev": true, 2243 | "engines": { 2244 | "node": ">=10" 2245 | }, 2246 | "funding": { 2247 | "url": "https://github.com/sponsors/sindresorhus" 2248 | } 2249 | } 2250 | } 2251 | } 2252 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ts-mocha", 3 | "version": "11.1.0", 4 | "description": "Mocha thin wrapper that allows running TypeScript tests with TypeScript runtime (ts-node) to get rid of compilation complexity", 5 | "repository": "https://github.com/piotrwitek/ts-mocha", 6 | "author": "Piotr Witek (http://piotrwitek.github.io)", 7 | "license": "MIT", 8 | "main": "src/index.js", 9 | "bin": { 10 | "ts-mocha": "./bin/ts-mocha" 11 | }, 12 | "engines": { 13 | "node": ">= 6.X.X" 14 | }, 15 | "scripts": { 16 | "clean": "rm -rf node_modules/", 17 | "reinstall": "npm run clean && npm install", 18 | "test:baseline": "./bin/ts-mocha -p test/baseline/tsconfig.json test/baseline/**/*.spec.ts && node test/baseline/programmatic-use-test.js", 19 | "test:paths": "./bin/ts-mocha --paths -p test/paths/tsconfig.json test/paths/**/*.spec.ts && node test/paths/programmatic-use-test.js", 20 | "test:typecheck": "if ./bin/ts-mocha --type-check -p test/typecheck/tsconfig.json test/typecheck/**/*.spec.ts; then exit 1; fi && node test/typecheck/programmatic-use-test.js", 21 | "test": "npm run test:baseline && npm run test:paths && npm run test:typecheck", 22 | "prepublishOnly": "npm run clean && npm install --production && npm install -D mocha && npm test" 23 | }, 24 | "devDependencies": { 25 | "@types/expect": "^24.3.2", 26 | "@types/mocha": "^10.0.10", 27 | "@types/node": "^22.13.4", 28 | "expect": "^29.7.0", 29 | "mocha": "^11.1.0", 30 | "ts-node": "^10.9.2", 31 | "tslint": "6.1.3", 32 | "typescript": "4.9.5" 33 | }, 34 | "peerDependencies": { 35 | "mocha": "^3.X.X || ^4.X.X || ^5.X.X || ^6.X.X || ^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X || ^11.X.X", 36 | "ts-node": "^7.X.X || ^8.X.X || ^9.X.X || ^10.X.X", 37 | "tsconfig-paths": "^4.X.X" 38 | }, 39 | "peerDependenciesMeta": { 40 | "tsconfig-paths": { 41 | "optional": true 42 | } 43 | }, 44 | "files": [ 45 | "bin/", 46 | "src/", 47 | "package.json", 48 | "package-lock.json", 49 | "README.md", 50 | "CHANGELOG.md", 51 | "LICENSE" 52 | ], 53 | "keywords": [ 54 | "ts", 55 | "mocha", 56 | "typescript", 57 | "ts-node", 58 | "test" 59 | ], 60 | "greenkeeper": { 61 | "ignore": [ 62 | "@types/expect", 63 | "@types/mocha", 64 | "@types/node", 65 | "expect", 66 | "husky", 67 | "tslint" 68 | ] 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | try { 2 | // default ts-node config 3 | const project = 4 | process.env.TS_NODE_PROJECT || 5 | process.env._TS_PROJECT_PATH__ || // deprecated flag 6 | './tsconfig.json'; 7 | const transpileOnly = !process.env.TS_TYPE_CHECK; 8 | require('ts-node').register({ 9 | project, 10 | transpileOnly, 11 | }); 12 | // opt-in tsconfig-paths config 13 | if (process.env.TS_CONFIG_PATHS) { 14 | require('tsconfig-paths/register'); 15 | } 16 | } catch (error) { 17 | console.log('[ERROR] ' + error.message); 18 | process.exit(1); 19 | } 20 | -------------------------------------------------------------------------------- /test/baseline/app.spec.ts: -------------------------------------------------------------------------------- 1 | import expect from 'expect'; 2 | import app from './app'; 3 | 4 | describe('Running TypeScript tests in ts-node runtime without compilation', () => { 5 | describe('baseline app module', () => { 6 | it('should return the same value that was passed', () => { 7 | expect(app(3)).toBe(3); 8 | }); 9 | }); 10 | }); 11 | -------------------------------------------------------------------------------- /test/baseline/app.ts: -------------------------------------------------------------------------------- 1 | export default function(x: number): number { 2 | return x; 3 | } 4 | -------------------------------------------------------------------------------- /test/baseline/programmatic-use-test.js: -------------------------------------------------------------------------------- 1 | process.env.TS_NODE_PROJECT = "./test/paths/tsconfig.json"; 2 | require("../.."); 3 | const Mocha = require("mocha"); 4 | const path = require("path"); 5 | 6 | const mocha = new Mocha(); 7 | mocha.addFile(path.resolve(__dirname, `app.spec.ts`)); 8 | 9 | console.log("Programmatic use test start."); 10 | mocha.run((failures) => { 11 | process.on("exit", () => { 12 | console.log("Programmatic use test complete."); 13 | process.exit(failures); // exit with non-zero status if there were failures 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /test/baseline/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "baseUrl": "." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /test/paths/app.spec.ts: -------------------------------------------------------------------------------- 1 | import expect from 'expect'; 2 | import { getAdder, getNumber } from './app'; 3 | 4 | describe('Running TypeScript tests in ts-node runtime without compilation', () => { 5 | describe('paths app module', () => { 6 | it('provides adder that adds two numbers', () => { 7 | return getAdder().then((add) => { 8 | expect(add(2, 3)).toBe(5); 9 | }); 10 | }); 11 | it('provides function that should return the same value that was passed', () => { 12 | expect(getNumber(3)).toBe(3); 13 | }); 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /test/paths/app.ts: -------------------------------------------------------------------------------- 1 | import { getNumber as gn } from '@/helper'; 2 | 3 | export const getNumber = gn; 4 | 5 | export function getAdder(): Promise<(a: number, b: number) => number> { 6 | return import('@util').then((u) => u.add); 7 | } 8 | -------------------------------------------------------------------------------- /test/paths/helper/helper.ts: -------------------------------------------------------------------------------- 1 | export function getNumber(x: number): number { 2 | return x; 3 | } 4 | -------------------------------------------------------------------------------- /test/paths/helper/util.ts: -------------------------------------------------------------------------------- 1 | export function add(a: number, b: number): number { 2 | return a + b; 3 | } 4 | -------------------------------------------------------------------------------- /test/paths/programmatic-use-test.js: -------------------------------------------------------------------------------- 1 | process.env.TS_NODE_PROJECT = "./test/paths/tsconfig.json"; 2 | process.env.TS_CONFIG_PATHS = true; 3 | require("../.."); 4 | const Mocha = require("mocha"); 5 | const path = require("path"); 6 | 7 | const mocha = new Mocha(); 8 | mocha.addFile(path.resolve(__dirname, `app.spec.ts`)); 9 | 10 | console.log("Programmatic use test start."); 11 | mocha.run((failures) => { 12 | process.on("exit", () => { 13 | console.log("Programmatic use test complete."); 14 | process.exit(failures); // exit with non-zero status if there were failures 15 | }); 16 | }); 17 | -------------------------------------------------------------------------------- /test/paths/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "baseUrl": ".", 5 | "paths": { 6 | "@/*": ["./helper/*"], 7 | "@util": ["./helper/util.ts"] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /test/tsconfig.base.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "outDir": "dist/", // target for compiled files 4 | "allowSyntheticDefaultImports": true, // no errors on commonjs default import 5 | "lib": ["es2016", "es2017.object"], 6 | "target": "es6", // "es2015" for ES6+ engines 7 | "module": "commonjs", // "es2015" for tree-shaking 8 | "moduleResolution": "node", 9 | "strictNullChecks": true, 10 | "sourceMap": true, 11 | "baseUrl": ".", 12 | }, 13 | } 14 | -------------------------------------------------------------------------------- /test/typecheck/app.spec.ts: -------------------------------------------------------------------------------- 1 | import expect from 'expect'; 2 | import app from './app'; 3 | 4 | describe('Running TypeScript tests in ts-node runtime with type checks', () => { 5 | describe('typecheck app module', () => { 6 | it('should return the same value that was passed', () => { 7 | expect(app(3)).toBe(3); 8 | }); 9 | }); 10 | }); 11 | 12 | // Introduce a compile error to check if test:typecheck will fail 13 | "not a number" as number; 14 | -------------------------------------------------------------------------------- /test/typecheck/app.ts: -------------------------------------------------------------------------------- 1 | export default function(x: number): number { 2 | return x; 3 | } 4 | -------------------------------------------------------------------------------- /test/typecheck/programmatic-use-test.js: -------------------------------------------------------------------------------- 1 | process.env.TS_NODE_PROJECT = "./test/paths/tsconfig.json"; 2 | process.env.TS_TYPE_CHECK = true; 3 | require("../.."); 4 | const Mocha = require("mocha"); 5 | const path = require("path"); 6 | const { TSError } = require("ts-node"); 7 | 8 | const mocha = new Mocha(); 9 | mocha.addFile(path.resolve(__dirname, `app.spec.ts`)); 10 | 11 | try { 12 | console.log("Programmatic use test start."); 13 | mocha.run(() => { 14 | process.on("exit", () => { 15 | console.log("Programmatic use test failed."); 16 | // exit with non-zero status if the tests were completed 17 | // as they are expected to fail 18 | process.exit(1); 19 | }); 20 | }); 21 | } catch (error) { 22 | if (error instanceof TSError) { 23 | // Success, we found the type error 24 | console.log("Programmatic use test complete."); 25 | process.exit(0); 26 | } else { 27 | throw error; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /test/typecheck/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.base.json", 3 | "compilerOptions": { 4 | "baseUrl": "." 5 | } 6 | } 7 | --------------------------------------------------------------------------------