├── .editorconfig ├── .github ├── renovate.json └── workflows │ ├── ci.yml │ └── npm-publish.yml ├── .gitignore ├── .prettierrc ├── History.md ├── README.md ├── docs ├── footer.md └── header.md ├── eslint.config.mjs ├── index.html ├── index.js ├── lib ├── http.js ├── net.js └── request.js ├── package-lock.json ├── package.json ├── test ├── bootstrap │ └── index.js ├── http.js └── request.js └── types ├── index.d.ts ├── test.ts └── tsconfig.json /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | insert_final_newline = true 6 | trim_trailing_whitespace = true 7 | charset = utf-8 8 | indent_style = space 9 | indent_size = 2 -------------------------------------------------------------------------------- /.github/renovate.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://docs.renovatebot.com/renovate-schema.json", 3 | "extends": [ 4 | "config:recommended" 5 | ], 6 | "packageRules": [ 7 | { 8 | "groupName": "dependencies", 9 | "matchUpdateTypes": [ 10 | "minor", 11 | "patch" 12 | ], 13 | "schedule": [ 14 | "before 9am on monday" 15 | ] 16 | } 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: Chai HTTP 2 | 3 | on: 4 | pull_request: 5 | branches: 6 | - main 7 | push: 8 | branches: 9 | - main 10 | 11 | jobs: 12 | build: 13 | name: Test on node ${{ matrix.node_version }} 14 | runs-on: ubuntu-latest 15 | strategy: 16 | matrix: 17 | node_version: 18 | - 18 # remove May 2025 19 | - 20 # remove May 2026 20 | - 22 # remove May 2027 21 | - x.x.x # safety net; don't remove 22 | steps: 23 | - uses: actions/checkout@v4 24 | - uses: actions/setup-node@v4 25 | with: 26 | node-version: ${{ matrix.node_version }} 27 | - run: npm ci 28 | - run: npm test 29 | -------------------------------------------------------------------------------- /.github/workflows/npm-publish.yml: -------------------------------------------------------------------------------- 1 | # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created 2 | # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages 3 | 4 | name: Publish to npm 5 | 6 | on: 7 | release: 8 | types: [published] 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v4 15 | - uses: actions/setup-node@v4 16 | with: 17 | node-version: 22 18 | - run: npm ci 19 | - run: npm test 20 | 21 | publish-npm: 22 | needs: build 23 | runs-on: ubuntu-latest 24 | permissions: 25 | id-token: write 26 | steps: 27 | - uses: actions/checkout@v4 28 | - uses: actions/setup-node@v4 29 | with: 30 | node-version: 22.x 31 | registry-url: 'https://registry.npmjs.org' 32 | cache: 'npm' 33 | - run: npm ci 34 | - run: npm version ${TAG_NAME} --git-tag-version=false 35 | env: 36 | TAG_NAME: ${{ github.ref_name }} 37 | - run: npm publish --provenance --access public --tag next 38 | if: "github.event.release.prerelease" 39 | env: 40 | NODE_AUTH_TOKEN: ${{ secrets.npm_secret }} 41 | - run: npm publish --provenance --access public 42 | if: "!github.event.release.prerelease" 43 | env: 44 | NODE_AUTH_TOKEN: ${{ secrets.npm_secret }} 45 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage/ 3 | .nyc_output/ 4 | # IDEs 5 | .idea 6 | .vscode -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "bracketSpacing": false, 3 | "printWidth": 80, 4 | "semi": true, 5 | "singleQuote": true, 6 | "tabWidth": 2, 7 | "trailingComma": "none", 8 | "useTabs": false, 9 | "arrowParens": "always" 10 | } -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- 1 | ### Note 2 | 3 | As of 2.0.0, the History.md file has been deprecated. [Please refer to the full 4 | commit logs available on GitHub](https://github.com/chaijs/chai-http/commits/master). 5 | 6 | --- 7 | 8 | 1.0.0 / 2014-10-08 9 | ================== 10 | 11 | * update readme 12 | * Merge pull request #14 from keithamus/fix-master 13 | * Fix #13: Convert unroutable addresses to localhost 14 | * Fix #13: Add proper detection of Promise capabilities in tests 15 | * Merge pull request #12 from keithamus/patch-1 16 | * add travis badge 17 | * add travis support 18 | * Fix typo 19 | * Merge pull request #11 from keithamus/refactor-agent 20 | * (chore) Regenerate README.md 21 | * Add list of contributors to package.json 22 | * Add simple usage docs for request api 23 | * Fix typo in readme 24 | * Add cookie assertions 25 | * Add URL query string parameter assertions 26 | * Add request.agent() which allows persisting of cookies 27 | * Add Promises support 28 | * Listen on random port in tests - not 4000 which may be taken 29 | * Add Test class to exports, to enable extending 30 | * Drastically simplify chai.request() by inheriting superagent 31 | * Update SuperAgent to v0.19.x 32 | * Drop harbor and pauli deps. 33 | 34 | 0.5.0 / 2014-08-19 35 | ================== 36 | 37 | * Merge pull request #9 from hurrymaplelad/assert_redirect 38 | * Add redirect assertions 39 | * Merge pull request #8 from lxanders/improveReadme 40 | * Fixed missing word and improved wording in documentation 41 | 42 | 0.4.0 / 2013-06-25 43 | ================== 44 | 45 | * support: [readme] cleanup 46 | * Merge pull request #7 from pezra/newer-superagent 47 | * remove previous additions to the history 48 | * bump superagent version dependency 49 | * Merge pull request #5 from wookiehangover/patch-1 50 | * Fixing typo in Readme 51 | * readme typo 52 | 53 | 0.3.0 / 2012-10-24 54 | ================== 55 | 56 | * minor tweak to http docs 57 | * Readme auto generation support 58 | * readme preview 59 | * improve readme code comments 60 | * add readme 61 | * documentation for request api 62 | * update http assertion docs 63 | * add request test for existing url 64 | * support and tests for header existence 65 | * improve type detection error message 66 | * add support for superagent based testing 67 | * code cleanup 68 | * convert to tdd 69 | * clean up test runner 70 | 71 | 0.2.0 / 2012-05-15 72 | ================== 73 | 74 | * chai 1.0.0 compatibility 75 | * update package.json 76 | 77 | 0.1.0 / 2012-03-10 78 | ================== 79 | 80 | * Merge branch 'refs/heads/dev' 81 | * git/npm ignore 82 | * Add `Asssertion#ip`. 83 | * Docs. 84 | * Add test for Assertion#headers. 85 | * Add test for Assertion#json, Assertion#html Assertion#text. 86 | * Add test for Assertion#header. 87 | * Add test for Assertion#status. 88 | 89 | 0.0.1 / 2012-03-06 90 | ================== 91 | 92 | * prepping for release 0.0.1 93 | * first lib commit 94 | * initial commit 95 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chai HTTP [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![NPM version](https://img.shields.io/npm/v/chai-http.svg)](https://img.shields.io/npm/v/chai-http.svg) 2 | 3 | > HTTP integration testing with Chai assertions. 4 | 5 | #### Features 6 | 7 | - integration test request composition 8 | - test http apps or external services 9 | - assertions for common http tasks 10 | - chai `expect` and `should` interfaces 11 | 12 | #### Installation 13 | 14 | This is an addon plugin for the [Chai Assertion Library](https://www.chaijs.com/). Install via [npm](https://www.npmjs.com/). 15 | 16 | npm install chai-http 17 | 18 | #### Plugin 19 | 20 | Use this plugin as you would all other Chai plugins. 21 | 22 | ```js 23 | import * as chai from "chai"; 24 | import chaiHttp from "chai-http"; 25 | 26 | chai.use(chaiHttp); 27 | 28 | // if you need to access `request` 29 | import {default as chaiHttp, request} from "chai-http"; 30 | chai.use(chaiHttp); 31 | 32 | request.get(...).send(...); 33 | 34 | // or setting up an app 35 | request.execute(app); 36 | ``` 37 | 38 | To use Chai HTTP on a web page, please use the latest v4 version for now. 39 | 40 | ## Integration Testing 41 | 42 | Chai HTTP provides an interface for live integration 43 | testing via [superagent](https://github.com/ladjs/superagent). 44 | To do this, you must first 45 | construct a request to an application or url. 46 | 47 | Upon construction you are provided a chainable api that 48 | allows you to specify the http VERB request (get, post, etc) 49 | that you wish to invoke. 50 | 51 | #### Application / Server 52 | 53 | You may use a function (such as an express or connect app) 54 | or a node.js http(s) server as the foundation for your request. 55 | If the server is not running, chai-http will find a suitable 56 | port to listen on for a given test. 57 | 58 | __Note:__ This feature is only supported on Node.js, not in web browsers. 59 | 60 | ```js 61 | import {request} from 'chai-http'; 62 | 63 | request.execute(app) 64 | .get('/') 65 | ``` 66 | 67 | When passing an `app` to `request.execute()`, it will automatically open the server for 68 | incoming requests (by calling `listen()`) and, once a request has been made 69 | the server will automatically shut down (by calling `.close()`). If you want to 70 | keep the server open, perhaps if you're making multiple requests, you must call 71 | `.keepOpen()` after `.request()`, and manually close the server down: 72 | 73 | ```js 74 | import {request} from 'chai-http'; 75 | 76 | const requester = request.Request(app).keepOpen() 77 | 78 | Promise.all([ 79 | requester.get('/a'), 80 | requester.get('/b'), 81 | ]) 82 | .then(responses => { /* ... */ }) 83 | .then(() => requester.close()) 84 | ``` 85 | 86 | 87 | #### URL 88 | 89 | You may also use a base url as the foundation of your request. 90 | 91 | ```js 92 | import {request} from 'chai-http'; 93 | 94 | request.execute('http://localhost:8080') 95 | .get('/') 96 | ``` 97 | 98 | #### Setting up requests 99 | 100 | Once a request is created with a given VERB (get, post, etc), you chain on these additional methods to create your request: 101 | 102 | | Method | Purpose | 103 | |---|---| 104 | | `.set(key, value)` | Set request headers | 105 | | `.send(data)` | Set request data (default type is JSON) | 106 | | `.type(dataType)` | Change the type of the data sent from the `.send()` method (xml, form, etc) | 107 | | `.attach(field, file, attachment)` | Attach a file | 108 | | `.auth(username, password)` | Add auth headers for Basic Authentication | 109 | | `.query(parmasObject)` | Chain on some GET parameters | 110 | 111 | Examples: 112 | 113 | `.set()` 114 | ```js 115 | import {request} from 'chai-http'; 116 | 117 | // Set a request header 118 | request.execute(app) 119 | .put('/user/me') 120 | .set('Content-Type', 'application/json') 121 | .send({ password: '123', confirmPassword: '123' }) 122 | ``` 123 | 124 | `.send()` 125 | ```js 126 | import {request} from 'chai-http'; 127 | 128 | // Send some JSON 129 | request.execute(app) 130 | .put('/user/me') 131 | .send({ password: '123', confirmPassword: '123' }) 132 | ``` 133 | 134 | `.type()` 135 | ```js 136 | import {request} from 'chai-http'; 137 | 138 | // Send some Form Data 139 | request.execute(app) 140 | .post('/user/me') 141 | .type('form') 142 | .send({ 143 | '_method': 'put', 144 | 'password': '123', 145 | 'confirmPassword': '123' 146 | }) 147 | ``` 148 | 149 | `.attach()` 150 | ```js 151 | import {request} from 'chai-http'; 152 | 153 | // Attach a file 154 | request.execute(app) 155 | .post('/user/avatar') 156 | .attach('imageField', fs.readFileSync('avatar.png'), 'avatar.png') 157 | ``` 158 | 159 | `.auth()` 160 | ```js 161 | import {request} from 'chai-http'; 162 | 163 | // Authenticate with Basic authentication 164 | request.execute(app) 165 | .get('/protected') 166 | .auth('user', 'pass') 167 | 168 | // Authenticate with Bearer Token 169 | request.execute(app) 170 | .get('/protected') 171 | .auth(accessToken, { type: 'bearer' }) 172 | 173 | ``` 174 | 175 | `.query()` 176 | ```js 177 | import {request} from 'chai-http'; 178 | 179 | // Chain some GET query parameters 180 | request.execute(app) 181 | .get('/search') 182 | .query({name: 'foo', limit: 10}) // /search?name=foo&limit=10 183 | ``` 184 | 185 | #### Dealing with the response - traditional 186 | 187 | In the following examples we use Chai's Expect assertion library: 188 | 189 | ```js 190 | const { expect } = chai; 191 | ``` 192 | 193 | To make the request and assert on its response, the `end` method can be used: 194 | 195 | ```js 196 | import {request} from 'chai-http'; 197 | 198 | request.execute(app) 199 | .put('/user/me') 200 | .send({ password: '123', confirmPassword: '123' }) 201 | .end((err, res) => { 202 | expect(err).to.be.null; 203 | expect(res).to.have.status(200); 204 | }); 205 | ``` 206 | 207 | ##### Caveat 208 | 209 | Because the `end` function is passed a callback, assertions are run 210 | asynchronously. Therefore, a mechanism must be used to notify the testing 211 | framework that the callback has completed. Otherwise, the test will pass before 212 | the assertions are checked. 213 | 214 | For example, in the [Mocha test framework](https://mochajs.org//), this is 215 | accomplished using the 216 | [`done` callback](https://mochajs.org/#asynchronous-code), which signal that the 217 | callback has completed, and the assertions can be verified: 218 | 219 | ```js 220 | import {request} from 'chai-http'; 221 | 222 | it('fails, as expected', function(done) { // <= Pass in done callback 223 | request.execute('http://localhost:8080') 224 | .get('/') 225 | .end((err, res) => { 226 | expect(res).to.have.status(123); 227 | done(); // <= Call done to signal callback end 228 | }); 229 | }); 230 | 231 | it('succeeds silently!', () => { // <= No done callback 232 | request.execute('http://localhost:8080') 233 | .get('/') 234 | .end((err, res) => { 235 | expect(res).to.have.status(123); // <= Test completes before this runs 236 | }); 237 | }); 238 | ``` 239 | 240 | When `done` is passed in, Mocha will wait until the call to `done()`, or until 241 | the [timeout](https://mochajs.org/#timeouts) expires. `done` also accepts an 242 | error parameter when signaling completion. 243 | 244 | #### Dealing with the response - Promises 245 | 246 | If `Promise` is available, `request` becomes a Promise capable library - 247 | and chaining of `then`s becomes possible: 248 | 249 | ```js 250 | import {request} from 'chai-http'; 251 | 252 | request.execute(app) 253 | .put('/user/me') 254 | .send({ password: '123', confirmPassword: '123' }) 255 | .then((res) => { 256 | expect(res).to.have.status(200); 257 | }) 258 | .catch((err) => { 259 | throw err; 260 | }); 261 | ``` 262 | 263 | #### Retaining cookies with each request 264 | 265 | Sometimes you need to keep cookies from one request, and send them with the 266 | next (for example, when you want to login with the first request, then access an authenticated-only resource later). For this, `.request.agent()` is available: 267 | 268 | ```js 269 | import {request} from 'chai-http'; 270 | 271 | // Log in 272 | const agent = request.agent(app) 273 | agent 274 | .post('/session') 275 | .send({ username: 'me', password: '123' }) 276 | .then((res) => { 277 | expect(res).to.have.cookie('sessionid'); 278 | // The `agent` now has the sessionid cookie saved, and will send it 279 | // back to the server in the next request: 280 | return agent.get('/user/me') 281 | .then((res) => { 282 | expect(res).to.have.status(200); 283 | }); 284 | }); 285 | ``` 286 | 287 | Note: The server started by `request.agent(app)` will not automatically close following the test(s). You should call `agent.close()` after your tests to ensure your program exits. 288 | 289 | ## Assertions 290 | 291 | The Chai HTTP module provides a number of assertions 292 | for the `expect` and `should` interfaces. 293 | 294 | ### .status (code) 295 | 296 | * **@param** _{Number}_ status number 297 | 298 | Assert that a response has a supplied status. 299 | 300 | ```js 301 | expect(res).to.have.status(200); 302 | ``` 303 | 304 | ### .header (key[, value]) 305 | 306 | * **@param** _{String}_ header key (case insensitive) 307 | * **@param** _{String|RegExp}_ header value (optional) 308 | 309 | Assert that a `Response` or `Request` object has a header. 310 | If a value is provided, equality to value will be asserted. 311 | You may also pass a regular expression to check. 312 | 313 | __Note:__ When running in a web browser, the 314 | [same-origin policy](https://datatracker.ietf.org/doc/html/rfc6454#section-3) 315 | only allows Chai HTTP to read 316 | [certain headers](https://fetch.spec.whatwg.org/#http-responses), 317 | which can cause assertions to fail. 318 | 319 | ```js 320 | expect(req).to.have.header('x-api-key'); 321 | expect(req).to.have.header('content-type', 'text/plain'); 322 | expect(req).to.have.header('content-type', /^text/); 323 | ``` 324 | 325 | ### .headers 326 | 327 | 328 | Assert that a `Response` or `Request` object has headers. 329 | 330 | __Note:__ When running in a web browser, the 331 | [same-origin policy](https://datatracker.ietf.org/doc/html/rfc6454#section-3) 332 | only allows Chai HTTP to read 333 | [certain headers](https://fetch.spec.whatwg.org/#http-responses), 334 | which can cause assertions to fail. 335 | 336 | ```js 337 | expect(req).to.have.headers; 338 | ``` 339 | 340 | ### .ip 341 | 342 | 343 | Assert that a string represents valid ip address. 344 | 345 | ```js 346 | expect('127.0.0.1').to.be.an.ip; 347 | expect('2001:0db8:85a3:0000:0000:8a2e:0370:7334').to.be.an.ip; 348 | ``` 349 | 350 | ### .json / .text / .html 351 | 352 | 353 | Assert that a `Response` or `Request` object has a given content-type. 354 | 355 | ```js 356 | expect(req).to.be.json; 357 | expect(req).to.be.html; 358 | expect(req).to.be.text; 359 | ``` 360 | 361 | ### .charset 362 | 363 | 364 | 365 | Assert that a `Response` or `Request` object has a given charset. 366 | 367 | ```js 368 | expect(req).to.have.charset('utf-8'); 369 | ``` 370 | 371 | ### .redirect 372 | 373 | 374 | Assert that a `Response` object has a redirect status code. 375 | 376 | ```js 377 | expect(res).to.redirect; 378 | expect(res).to.not.redirect; 379 | ``` 380 | 381 | ### .redirectTo 382 | 383 | * **@param** _{String|RegExp}_ location url 384 | 385 | Assert that a `Response` object redirects to the supplied location. 386 | 387 | ```js 388 | expect(res).to.redirectTo('http://example.com'); 389 | expect(res).to.redirectTo(/^\/search\/results\?orderBy=desc$/); 390 | ``` 391 | 392 | ### .param 393 | 394 | * **@param** _{String}_ parameter name 395 | * **@param** _{String}_ parameter value 396 | 397 | Assert that a `Request` object has a query string parameter with a given 398 | key, (optionally) equal to value 399 | 400 | ```js 401 | expect(req).to.have.param('orderby'); 402 | expect(req).to.have.param('orderby', 'date'); 403 | expect(req).to.not.have.param('limit'); 404 | ``` 405 | 406 | ### .cookie 407 | 408 | * **@param** _{String}_ parameter name 409 | * **@param** _{String}_ parameter value 410 | 411 | Assert that a `Request` or `Response` object has a cookie header with a 412 | given key, (optionally) equal to value 413 | 414 | ```js 415 | expect(req).to.have.cookie('session_id'); 416 | expect(req).to.have.cookie('session_id', '1234'); 417 | expect(req).to.not.have.cookie('PHPSESSID'); 418 | expect(res).to.have.cookie('session_id'); 419 | expect(res).to.have.cookie('session_id', '1234'); 420 | expect(res).to.not.have.cookie('PHPSESSID'); 421 | ``` 422 | 423 | ## Releasing 424 | 425 | `chai-http` is released with [`semantic-release`](https://github.com/semantic-release/semantic-release) using the plugins: 426 | - [`commit-analyzer`](https://github.com/semantic-release/commit-analyzer) to determine the next version from commit messages. 427 | - [`release-notes-generator`](https://github.com/semantic-release/release-notes-generator) to summarize release in 428 | - [`changelog`](https://github.com/semantic-release/changelog) to update the CHANGELOG.md file. 429 | - [`github`](https://github.com/semantic-release/github) to publish a [GitHub release](https://github.com/chaijs/chai-http/releases). 430 | - [`git`](https://github.com/semantic-release/git) to commit release assets. 431 | - [`npm`](https://github.com/semantic-release/npm) to publish to [npm](https://www.npmjs.com/package/chai-http). 432 | 433 | ## License 434 | 435 | (The MIT License) 436 | 437 | Copyright (c) Jake Luer 438 | 439 | Permission is hereby granted, free of charge, to any person obtaining a copy 440 | of this software and associated documentation files (the "Software"), to deal 441 | in the Software without restriction, including without limitation the rights 442 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 443 | copies of the Software, and to permit persons to whom the Software is 444 | furnished to do so, subject to the following conditions: 445 | 446 | The above copyright notice and this permission notice shall be included in 447 | all copies or substantial portions of the Software. 448 | 449 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 450 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 451 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 452 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 453 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 454 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 455 | THE SOFTWARE. 456 | 457 | -------------------------------------------------------------------------------- /docs/footer.md: -------------------------------------------------------------------------------- 1 | ## License 2 | 3 | (The MIT License) 4 | 5 | Copyright (c) Jake Luer 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /docs/header.md: -------------------------------------------------------------------------------- 1 | # Chai HTTP 2 | 3 | > HTTP integration testing with Chai assertions. 4 | 5 | #### Features 6 | 7 | - integration test request composition 8 | - test http apps or external services 9 | - assertions for common http tasks 10 | - chai `expect` and `should` interfaces 11 | 12 | #### Installation 13 | 14 | This is an addon plugin for the [Chai Assertion Library](https://chaijs.com). Install via [npm](https://npmjs.org). 15 | 16 | npm install chai-http 17 | 18 | #### Plugin 19 | 20 | Use this plugin as you would all other Chai plugins. 21 | 22 | ```js 23 | import chaiModule from "chai"; 24 | import chaiHttp from "chai-http"; 25 | 26 | const chai = chaiModule.use(chaiHttp); 27 | ``` 28 | 29 | To use Chai HTTP on a web page, please use the latest v4 version for now. -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import js from '@eslint/js'; 2 | import mocha from 'eslint-plugin-mocha'; 3 | export default [ 4 | mocha.configs.flat.recommended, 5 | { 6 | files: ['test/**/*.js'], 7 | languageOptions: { 8 | globals: { 9 | http: 'readonly', 10 | should: 'readonly', 11 | expect: 'readonly', 12 | chai: 'readonly', 13 | global: 'writable', 14 | request: 'readonly', 15 | AbortController: 'readonly', 16 | } 17 | } 18 | }, 19 | { 20 | ...js.configs.recommended, 21 | files: ['**/*.js'] 22 | }, 23 | { 24 | rules: { 25 | 'mocha/no-mocha-arrows': 'off' 26 | } 27 | } 28 | ]; 29 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | chai-http browser tests 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 19 | 20 | 21 | 22 | 30 | 31 | 32 | 36 | 37 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | import fn from './lib/http.js'; 2 | export default fn; 3 | 4 | export * as request from './lib/request.js'; 5 | -------------------------------------------------------------------------------- /lib/http.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * chai-http 3 | * Copyright(c) 2011-2012 Jake Luer 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * ## Assertions 9 | * 10 | * The Chai HTTP module provides a number of assertions 11 | * for the `expect` and `should` interfaces. 12 | */ 13 | 14 | /*! 15 | * Module dependencies. 16 | */ 17 | import net from 'net'; 18 | import url from 'url'; 19 | import Cookie from 'cookiejar'; 20 | import charset from 'charset'; 21 | import qs from 'qs'; 22 | import * as _request from './request.js'; 23 | 24 | /** 25 | * 26 | * @param {ChaiStatic} chai 27 | * @param {ChaiUtils} _ 28 | */ 29 | export default function (chai, _) { 30 | /*! 31 | * Aliases. 32 | */ 33 | 34 | const Assertion = chai.Assertion; 35 | const i = _.inspect; 36 | 37 | /*! 38 | * Expose request builder 39 | */ 40 | 41 | chai.request = _request; 42 | 43 | /*! 44 | * Content types hash. Used to 45 | * define `Assertion` properties. 46 | * 47 | * @type {Object} 48 | */ 49 | 50 | const contentTypes = { 51 | json: 'application/json', 52 | text: 'text/plain', 53 | html: 'text/html' 54 | }; 55 | 56 | /*! 57 | * Return a header from `Request` or `Response` object. 58 | * 59 | * @param {Request|Response} object 60 | * @param {String} Header 61 | * @returns {String|Undefined} 62 | */ 63 | 64 | function getHeader(obj, key) { 65 | if (key) key = key.toLowerCase(); 66 | if (obj.getHeader) return obj.getHeader(key); 67 | if (obj.headers) return obj.headers[key]; 68 | } 69 | 70 | /** 71 | * ### .status (code) 72 | * 73 | * Assert that a response has a supplied status. 74 | * 75 | * ```js 76 | * expect(res).to.have.status(200); 77 | * ``` 78 | * 79 | * @param {Number} status number 80 | * @name status 81 | * @api public 82 | */ 83 | 84 | Assertion.addMethod('status', function (code) { 85 | const hasStatus = Boolean( 86 | 'status' in this._obj || 'statusCode' in this._obj 87 | ); 88 | new Assertion(hasStatus).assert( 89 | hasStatus, 90 | "expected #{act} to have keys 'status', or 'statusCode'", 91 | null, // never negated 92 | hasStatus, // expected 93 | this._obj, // actual 94 | false // no diff 95 | ); 96 | 97 | const status = this._obj.status || this._obj.statusCode; 98 | 99 | this.assert( 100 | status == code, 101 | 'expected #{this} to have status code #{exp} but got #{act}', 102 | 'expected #{this} to not have status code #{act}', 103 | code, 104 | status 105 | ); 106 | }); 107 | 108 | /** 109 | * ### .header (key[, value]) 110 | * 111 | * Assert that a `Response` or `Request` object has a header. 112 | * If a value is provided, equality to value will be asserted. 113 | * You may also pass a regular expression to check. 114 | * 115 | * __Note:__ When running in a web browser, the 116 | * [same-origin policy](https://tools.ietf.org/html/rfc6454#section-3) 117 | * only allows Chai HTTP to read 118 | * [certain headers](https://www.w3.org/TR/cors/#simple-response-header), 119 | * which can cause assertions to fail. 120 | * 121 | * ```js 122 | * expect(req).to.have.header('x-api-key'); 123 | * expect(req).to.have.header('content-type', 'text/plain'); 124 | * expect(req).to.have.header('content-type', /^text/); 125 | * ``` 126 | * 127 | * @param {String} header key (case insensitive) 128 | * @param {String|RegExp} header value (optional) 129 | * @name header 130 | * @api public 131 | */ 132 | 133 | Assertion.addMethod('header', function (key, value) { 134 | const header = getHeader(this._obj, key); 135 | 136 | if (arguments.length < 2) { 137 | this.assert( 138 | 'undefined' !== typeof header || null === header, 139 | "expected header '" + key + "' to exist", 140 | "expected header '" + key + "' to not exist" 141 | ); 142 | } else if (arguments[1] instanceof RegExp) { 143 | this.assert( 144 | value.test(header), 145 | "expected header '" + 146 | key + 147 | "' to match " + 148 | value + 149 | ' but got ' + 150 | i(header), 151 | "expected header '" + 152 | key + 153 | "' not to match " + 154 | value + 155 | ' but got ' + 156 | i(header), 157 | value, 158 | header 159 | ); 160 | } else { 161 | this.assert( 162 | header == value, 163 | "expected header '" + 164 | key + 165 | "' to have value " + 166 | value + 167 | ' but got ' + 168 | i(header), 169 | "expected header '" + key + "' to not have value " + value, 170 | value, 171 | header 172 | ); 173 | } 174 | }); 175 | 176 | /** 177 | * ### .headers 178 | * 179 | * Assert that a `Response` or `Request` object has headers. 180 | * 181 | * __Note:__ When running in a web browser, the 182 | * [same-origin policy](https://tools.ietf.org/html/rfc6454#section-3) 183 | * only allows Chai HTTP to read 184 | * [certain headers](https://www.w3.org/TR/cors/#simple-response-header), 185 | * which can cause assertions to fail. 186 | * 187 | * ```js 188 | * expect(req).to.have.headers; 189 | * ``` 190 | * 191 | * @name headers 192 | * @api public 193 | */ 194 | 195 | Assertion.addProperty('headers', function () { 196 | this.assert( 197 | this._obj.headers || this._obj.getHeader, 198 | 'expected #{this} to have headers or getHeader method', 199 | 'expected #{this} to not have headers or getHeader method' 200 | ); 201 | }); 202 | 203 | /** 204 | * ### .ip 205 | * 206 | * Assert that a string represents valid ip address. 207 | * 208 | * ```js 209 | * expect('127.0.0.1').to.be.an.ip; 210 | * expect('2001:0db8:85a3:0000:0000:8a2e:0370:7334').to.be.an.ip; 211 | * ``` 212 | * 213 | * @name ip 214 | * @api public 215 | */ 216 | 217 | Assertion.addProperty('ip', function () { 218 | this.assert( 219 | net.isIP(this._obj), 220 | 'expected #{this} to be an ip', 221 | 'expected #{this} to not be an ip' 222 | ); 223 | }); 224 | 225 | /** 226 | * ### .json / .text / .html 227 | * 228 | * Assert that a `Response` or `Request` object has a given content-type. 229 | * 230 | * ```js 231 | * expect(req).to.be.json; 232 | * expect(req).to.be.html; 233 | * expect(req).to.be.text; 234 | * ``` 235 | * 236 | * @name json 237 | * @name html 238 | * @name text 239 | * @api public 240 | */ 241 | 242 | function checkContentType(name) { 243 | const val = contentTypes[name]; 244 | 245 | Assertion.addProperty(name, function () { 246 | new Assertion(this._obj).to.have.headers; 247 | const ct = getHeader(this._obj, 'content-type'), 248 | ins = i(ct) === 'undefined' ? 'headers' : i(ct); 249 | 250 | this.assert( 251 | ct && ~ct.indexOf(val), 252 | 'expected ' + ins + " to include '" + val + "'", 253 | 'expected ' + ins + " to not include '" + val + "'" 254 | ); 255 | }); 256 | } 257 | 258 | Object.keys(contentTypes).forEach(checkContentType); 259 | 260 | /** 261 | * ### .charset 262 | * 263 | * Assert that a `Response` or `Request` object has a given charset. 264 | * 265 | * ```js 266 | * expect(req).to.have.charset('utf-8'); 267 | * ``` 268 | * 269 | * @name charset 270 | * @api public 271 | */ 272 | 273 | Assertion.addMethod('charset', function (value) { 274 | value = value.toLowerCase(); 275 | 276 | const headers = this._obj.headers; 277 | let cs = charset(headers); 278 | 279 | /* 280 | * Fix charset() treating "utf8" as a special case 281 | * See https://github.com/node-modules/charset/issues/12 282 | */ 283 | if (cs === 'utf8') { 284 | cs = 'utf-8'; 285 | } 286 | 287 | this.assert( 288 | cs != null && value === cs, 289 | 'expected content type to have ' + value + ' charset', 290 | 'expected content type to not have ' + value + ' charset' 291 | ); 292 | }); 293 | 294 | /** 295 | * ### .redirect 296 | * 297 | * Assert that a `Response` object has a redirect status code. 298 | * 299 | * ```js 300 | * expect(res).to.redirect; 301 | * ``` 302 | * 303 | * @name redirect 304 | * @api public 305 | */ 306 | 307 | Assertion.addProperty('redirect', function () { 308 | const redirectCodes = [301, 302, 303, 307, 308], 309 | status = this._obj.status, 310 | redirects = this._obj.redirects; 311 | 312 | this.assert( 313 | redirectCodes.indexOf(status) >= 0 || (redirects && redirects.length), 314 | 'expected redirect with 30X status code but got ' + status, 315 | 'expected not to redirect but got ' + status + ' status' 316 | ); 317 | }); 318 | 319 | /** 320 | * ### .redirectTo 321 | * 322 | * Assert that a `Response` object redirects to the supplied location. 323 | * 324 | * ```js 325 | * expect(res).to.redirectTo('http://example.com'); 326 | * ``` 327 | * 328 | * @param {String|RegExp} location url 329 | * @name redirectTo 330 | * @api public 331 | */ 332 | 333 | Assertion.addMethod('redirectTo', function (destination) { 334 | const redirects = this._obj.redirects; 335 | 336 | new Assertion(this._obj).to.redirect; 337 | 338 | if (redirects && redirects.length) { 339 | let hasRedirected; 340 | 341 | if (Object.prototype.toString.call(destination) === '[object RegExp]') { 342 | hasRedirected = redirects.some((redirect) => 343 | destination.test(redirect) 344 | ); 345 | } else { 346 | hasRedirected = redirects.indexOf(destination) > -1; 347 | } 348 | this.assert( 349 | hasRedirected, 350 | 'expected redirect to ' + 351 | destination + 352 | ' but got ' + 353 | redirects.join(' then '), 354 | 'expected not to redirect to ' + 355 | destination + 356 | ' but got ' + 357 | redirects.join(' then ') 358 | ); 359 | } else { 360 | const assertion = new Assertion(this._obj); 361 | _.transferFlags(this, assertion); 362 | assertion.with.header('location', destination); 363 | } 364 | }); 365 | 366 | /** 367 | * ### .param 368 | * 369 | * Assert that a `Request` object has a query string parameter with a given 370 | * key, (optionally) equal to value 371 | * 372 | * ```js 373 | * expect(req).to.have.param('orderby'); 374 | * expect(req).to.have.param('orderby', 'date'); 375 | * expect(req).to.not.have.param('limit'); 376 | * ``` 377 | * 378 | * @param {String} parameter name 379 | * @param {String} parameter value 380 | * @name param 381 | * @api public 382 | */ 383 | 384 | Assertion.addMethod('param', function () { 385 | const assertion = new Assertion(); 386 | _.transferFlags(this, assertion); 387 | assertion._obj = qs.parse(url.parse(this._obj.url).query); 388 | assertion.property.apply(assertion, arguments); 389 | }); 390 | 391 | /** 392 | * ### .cookie 393 | * 394 | * Assert that a `Request`, `Response` or `Agent` object has a cookie header with a 395 | * given key, (optionally) equal to value 396 | * 397 | * ```js 398 | * expect(req).to.have.cookie('session_id'); 399 | * expect(req).to.have.cookie('session_id', '1234'); 400 | * expect(req).to.not.have.cookie('PHPSESSID'); 401 | * expect(res).to.have.cookie('session_id'); 402 | * expect(res).to.have.cookie('session_id', '1234'); 403 | * expect(res).to.not.have.cookie('PHPSESSID'); 404 | * expect(agent).to.have.cookie('session_id'); 405 | * expect(agent).to.have.cookie('session_id', '1234'); 406 | * expect(agent).to.not.have.cookie('PHPSESSID'); 407 | * ``` 408 | * 409 | * @param {String} parameter name 410 | * @param {String} parameter value 411 | * @name param 412 | * @api public 413 | */ 414 | 415 | Assertion.addMethod('cookie', function (key, value) { 416 | let header = getHeader(this._obj, 'set-cookie'), 417 | cookie; 418 | 419 | if (!header) { 420 | header = (getHeader(this._obj, 'cookie') || '').split(';'); 421 | } 422 | 423 | if (this._obj instanceof chai.request.agent && this._obj.jar) { 424 | cookie = this._obj.jar.getCookie(key, Cookie.CookieAccessInfo.All); 425 | } else { 426 | cookie = Cookie.CookieJar(); 427 | cookie.setCookies(header); 428 | cookie = cookie.getCookie(key, Cookie.CookieAccessInfo.All); 429 | } 430 | 431 | if (arguments.length === 2) { 432 | this.assert( 433 | cookie.value == value, 434 | "expected cookie '" + key + "' to have value #{exp} but got #{act}", 435 | "expected cookie '" + key + "' to not have value #{exp}", 436 | value, 437 | cookie.value 438 | ); 439 | } else { 440 | this.assert( 441 | 'undefined' !== typeof cookie || null === cookie, 442 | "expected cookie '" + key + "' to exist", 443 | "expected cookie '" + key + "' to not exist" 444 | ); 445 | } 446 | }); 447 | } 448 | -------------------------------------------------------------------------------- /lib/net.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * chai-http - request helper 3 | * Copyright(c) 2011-2012 Jake Luer 4 | * MIT Licensed 5 | */ 6 | 7 | /*! 8 | * net.isIP shim for browsers 9 | */ 10 | export {isIP, isIPv4, isIPv6} from 'is-ip'; 11 | -------------------------------------------------------------------------------- /lib/request.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * chai-http - request helper 3 | * Copyright(c) 2011-2012 Jake Luer 4 | * MIT Licensed 5 | */ 6 | 7 | /*! 8 | * Module dependancies 9 | */ 10 | import superagent from 'superagent'; 11 | import http from 'http'; 12 | import https from 'https'; 13 | import methods from 'methods'; 14 | import util from 'util'; 15 | 16 | const Agent = superagent.agent; 17 | const Request = superagent.Request; 18 | 19 | /** 20 | * ## Integration Testing 21 | * 22 | * Chai HTTP provides an interface for live integration 23 | * testing via [superagent](https://github.com/visionmedia/superagent). 24 | * To do this, you must first 25 | * construct a request to an application or url. 26 | * 27 | * Upon construction you are provided a chainable api that 28 | * allows you to specify the http VERB request (get, post, etc) 29 | * that you wish to invoke. 30 | * 31 | * #### Application / Server 32 | * 33 | * You may use a function (such as an express or connect app) 34 | * or a node.js http(s) server as the foundation for your request. 35 | * If the server is not running, chai-http will find a suitable 36 | * port to listen on for a given test. 37 | * 38 | * __Note:__ This feature is only supported on Node.js, not in web browsers. 39 | * 40 | * ```js 41 | * chai.request(app) 42 | * .get('/') 43 | * ``` 44 | * 45 | * #### URL 46 | * 47 | * You may also use a base url as the foundation of your request. 48 | * 49 | * ```js 50 | * chai.request('http://localhost:8080') 51 | * .get('/') 52 | * ``` 53 | * 54 | * #### Setting up requests 55 | * 56 | * Once a request is created with a given VERB, it can have headers, form data, 57 | * json, or even file attachments added to it, all with a simple API: 58 | * 59 | * ```js 60 | * // Send some JSON 61 | * chai.request(app) 62 | * .put('/user/me') 63 | * .set('X-API-Key', 'foobar') 64 | * .send({ password: '123', confirmPassword: '123' }) 65 | * ``` 66 | * 67 | * ```js 68 | * // Send some Form Data 69 | * chai.request(app) 70 | * .post('/user/me') 71 | * .type('form') 72 | * .send({'_method': 'put'}) 73 | * .send({'password': '123'}) 74 | * .send({'confirmPassword', '123'}) 75 | * ``` 76 | * 77 | * ```js 78 | * // Attach a file 79 | * chai.request(app) 80 | * .post('/user/avatar') 81 | * .attach('imageField', fs.readFileSync('avatar.png'), 'avatar.png') 82 | * ``` 83 | * 84 | * ```js 85 | * // Authenticate with Basic authentication 86 | * chai.request(app) 87 | * .get('/protected') 88 | * .auth('user', 'pass') 89 | * ``` 90 | * 91 | * ```js 92 | * // Chain some GET query parameters 93 | * chai.request(app) 94 | * .get('/search') 95 | * .query({name: 'foo', limit: 10}) // /search?name=foo&limit=10 96 | * ``` 97 | * 98 | * #### Dealing with the response - traditional 99 | * 100 | * To make the request and assert on its response, the `end` method can be used: 101 | * 102 | * ```js 103 | * chai.request(app) 104 | * .put('/user/me') 105 | * .send({ password: '123', confirmPassword: '123' }) 106 | * .end(function (err, res) { 107 | * expect(err).to.be.null; 108 | * expect(res).to.have.status(200); 109 | * }); 110 | * ``` 111 | * ##### Caveat 112 | * Because the `end` function is passed a callback, assertions are run 113 | * asynchronously. Therefore, a mechanism must be used to notify the testing 114 | * framework that the callback has completed. Otherwise, the test will pass before 115 | * the assertions are checked. 116 | * 117 | * For example, in the [Mocha test framework](http://mochajs.org/), this is 118 | * accomplished using the 119 | * [`done` callback](https://mochajs.org/#asynchronous-code), which signal that the 120 | * callback has completed, and the assertions can be verified: 121 | * 122 | * ```js 123 | * it('fails, as expected', function(done) { // <= Pass in done callback 124 | * chai.request('http://localhost:8080') 125 | * .get('/') 126 | * .end(function(err, res) { 127 | * expect(res).to.have.status(123); 128 | * done(); // <= Call done to signal callback end 129 | * }); 130 | * }) ; 131 | * 132 | * it('succeeds silently!', function() { // <= No done callback 133 | * chai.request('http://localhost:8080') 134 | * .get('/') 135 | * .end(function(err, res) { 136 | * expect(res).to.have.status(123); // <= Test completes before this runs 137 | * }); 138 | * }) ; 139 | * ``` 140 | * 141 | * When `done` is passed in, Mocha will wait until the call to `done()`, or until 142 | * the [timeout](http://mochajs.org/#timeouts) expires. `done` also accepts an 143 | * error parameter when signaling completion. 144 | * 145 | * #### Dealing with the response - Promises 146 | * 147 | * If `Promise` is available, `request()` becomes a Promise capable library - 148 | * and chaining of `then`s becomes possible: 149 | * 150 | * ```js 151 | * chai.request(app) 152 | * .put('/user/me') 153 | * .send({ password: '123', confirmPassword: '123' }) 154 | * .then(function (res) { 155 | * expect(res).to.have.status(200); 156 | * }) 157 | * .catch(function (err) { 158 | * throw err; 159 | * }) 160 | * ``` 161 | * 162 | * __Note:__ Node.js version 0.10.x and some older web browsers do not have 163 | * native promise support. You can use any spec compliant library, such as: 164 | * - [kriskowal/q](https://github.com/kriskowal/q) 165 | * - [stefanpenner/es6-promise](https://github.com/stefanpenner/es6-promise) 166 | * - [petkaantonov/bluebird](https://github.com/petkaantonov/bluebird) 167 | * - [then/promise](https://github.com/then/promise) 168 | * You will need to set the library you use to `global.Promise`, before 169 | * requiring in chai-http. For example: 170 | * 171 | * ```js 172 | * // Add promise support if this does not exist natively. 173 | * if (!global.Promise) { 174 | * global.Promise = require('q'); 175 | * } 176 | * const chai = require('chai'); 177 | * chai.use(require('chai-http')); 178 | * 179 | * ``` 180 | * 181 | * #### Retaining cookies with each request 182 | * 183 | * Sometimes you need to keep cookies from one request, and send them with the 184 | * next. For this, `.request.agent()` is available: 185 | * 186 | * ```js 187 | * // Log in 188 | * const agent = chai.request.agent(app) 189 | * agent 190 | * .post('/session') 191 | * .send({ username: 'me', password: '123' }) 192 | * .then(function (res) { 193 | * expect(res).to.have.cookie('sessionid'); 194 | * // The `agent` now has the sessionid cookie saved, and will send it 195 | * // back to the server in the next request: 196 | * return agent.get('/user/me') 197 | * .then(function (res) { 198 | * expect(res).to.have.status(200); 199 | * }) 200 | * }) 201 | * ``` 202 | * 203 | */ 204 | 205 | /** 206 | * 207 | * @param {ChaiHttpRequest} app 208 | * @returns {ChaiHttp.Agent} 209 | */ 210 | function execute(app) { 211 | /*! 212 | * @param {Mixed} function or server 213 | * @returns {Object} API 214 | */ 215 | 216 | let server = 'function' === typeof app ? http.createServer(app) : app, 217 | obj = {}; 218 | 219 | let keepOpen = false; 220 | if (typeof server !== 'string' && server && server.listen && server.address) { 221 | if (!server.address()) { 222 | server = server.listen(0); 223 | } 224 | } 225 | obj.keepOpen = function () { 226 | keepOpen = true; 227 | return this; 228 | }; 229 | obj.close = function (callback) { 230 | if (server && server.close) { 231 | server.close(callback); 232 | } else if (callback) { 233 | callback(); 234 | } 235 | 236 | return this; 237 | }; 238 | methods.forEach(function (method) { 239 | obj[method] = function (path) { 240 | return new Test(server, method, path).on('end', function () { 241 | if (keepOpen === false) { 242 | obj.close(); 243 | } 244 | }); 245 | }; 246 | }); 247 | obj.del = obj.delete; 248 | return obj; 249 | } 250 | 251 | /*! 252 | * Test 253 | * 254 | * An extension of superagent.Request, 255 | * this provides the same chainable api 256 | * as superagent so all things can be modified. 257 | * 258 | * @param {Object|String} server, app, or url 259 | * @param {String} method 260 | * @param {String} path 261 | * @api private 262 | */ 263 | 264 | function Test(app, method, path) { 265 | Request.call(this, method, path); 266 | this.app = app; 267 | this.url = typeof app === 'string' ? app + path : serverAddress(app, path); 268 | this.ok(function () { 269 | return true; 270 | }); 271 | } 272 | util.inherits(Test, Request); 273 | 274 | function serverAddress(app, path) { 275 | if ('string' === typeof app) { 276 | return app + path; 277 | } 278 | const addr = app.address(); 279 | if (!addr) { 280 | throw new Error('Server is not listening'); 281 | } 282 | const protocol = app instanceof https.Server ? 'https' : 'http'; 283 | // If address is "unroutable" IPv4/6 address, then set to localhost 284 | if (addr.address === '0.0.0.0' || addr.address === '::') { 285 | addr.address = '127.0.0.1'; 286 | } 287 | return protocol + '://' + addr.address + ':' + addr.port + path; 288 | } 289 | 290 | /*! 291 | * agent 292 | * 293 | * Follows the same API as superagent.Request, 294 | * but allows persisting of cookies between requests. 295 | * 296 | * @param {Object|String} server, app, or url 297 | * @param {String} method 298 | * @param {String} path 299 | * @api private 300 | */ 301 | 302 | function TestAgent(app, options = {}) { 303 | if (!(this instanceof TestAgent)) return new TestAgent(app); 304 | if (typeof app === 'function') app = http.createServer(app); 305 | const agent = new Agent(options); 306 | Object.assign(this, agent); 307 | this.app = app; 308 | if ( 309 | typeof app !== 'string' && 310 | app && 311 | app.listen && 312 | app.address && 313 | !app.address() 314 | ) { 315 | this.app = app.listen(0); 316 | } 317 | } 318 | util.inherits(TestAgent, Agent || Request); 319 | 320 | TestAgent.prototype.close = function close(callback) { 321 | if (this.app && this.app.close) { 322 | this.app.close(callback); 323 | } 324 | return this; 325 | }; 326 | TestAgent.prototype.keepOpen = function keepOpen() { 327 | return this; 328 | }; 329 | 330 | // override HTTP verb methods 331 | methods.forEach(function (method) { 332 | TestAgent.prototype[method] = function (url) { 333 | const req = new Test(this.app, method, url), 334 | self = this; 335 | 336 | if (Agent) { 337 | // When running in Node, cookies are managed via 338 | // `Agent._saveCookies()` and `Agent._attachCookies()`. 339 | req.on('response', function (res) { 340 | self._saveCookies(res); 341 | }); 342 | req.on('redirect', function (res) { 343 | self._saveCookies(res); 344 | }); 345 | req.on('redirect', function () { 346 | self._attachCookies(req); 347 | }); 348 | this._attachCookies(req); 349 | } else { 350 | // When running in a web browser, cookies are managed via `Request.withCredentials()`. 351 | // The browser will attach cookies based on same-origin policy. 352 | // https://tools.ietf.org/html/rfc6454#section-3 353 | req.withCredentials(); 354 | } 355 | 356 | return req; 357 | }; 358 | }); 359 | 360 | TestAgent.prototype.del = TestAgent.prototype.delete; 361 | 362 | export {execute, Test as Request, TestAgent as agent}; 363 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chai-http", 3 | "version": "0.0.0-development", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "chai-http", 9 | "version": "0.0.0-development", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@types/superagent": "^8.1.7", 13 | "charset": "^1.0.1", 14 | "cookiejar": "^2.1.4", 15 | "is-ip": "^5.0.1", 16 | "methods": "^1.1.2", 17 | "qs": "^6.12.1", 18 | "superagent": "^10.0.0" 19 | }, 20 | "devDependencies": { 21 | "@eslint/js": "^9.3.0", 22 | "@types/chai": "^5.0.0", 23 | "c8": "^10.1.3", 24 | "chai": "^5.1.0", 25 | "coveralls": "^3.1.1", 26 | "eslint": "^9.3.0", 27 | "eslint-plugin-mocha": "^11.0.0", 28 | "http-server": "^14.1.1", 29 | "mocha": "^11.0.0", 30 | "npm-run-all2": "^8.0.0", 31 | "polka": "^1.0.0-next.28", 32 | "prettier": "^3.2.5", 33 | "typescript": "^5.4.5" 34 | }, 35 | "engines": { 36 | "node": ">=18.20.0" 37 | } 38 | }, 39 | "node_modules/@bcoe/v8-coverage": { 40 | "version": "1.0.2", 41 | "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-1.0.2.tgz", 42 | "integrity": "sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==", 43 | "dev": true, 44 | "license": "MIT", 45 | "engines": { 46 | "node": ">=18" 47 | } 48 | }, 49 | "node_modules/@eslint-community/eslint-utils": { 50 | "version": "4.6.1", 51 | "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.6.1.tgz", 52 | "integrity": "sha512-KTsJMmobmbrFLe3LDh0PC2FXpcSYJt/MLjlkh/9LEnmKYLSYmT/0EW9JWANjeoemiuZrmogti0tW5Ch+qNUYDw==", 53 | "dev": true, 54 | "license": "MIT", 55 | "dependencies": { 56 | "eslint-visitor-keys": "^3.4.3" 57 | }, 58 | "engines": { 59 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 60 | }, 61 | "funding": { 62 | "url": "https://opencollective.com/eslint" 63 | }, 64 | "peerDependencies": { 65 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 66 | } 67 | }, 68 | "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { 69 | "version": "3.4.3", 70 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", 71 | "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", 72 | "dev": true, 73 | "engines": { 74 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 75 | }, 76 | "funding": { 77 | "url": "https://opencollective.com/eslint" 78 | } 79 | }, 80 | "node_modules/@eslint-community/regexpp": { 81 | "version": "4.12.1", 82 | "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", 83 | "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", 84 | "dev": true, 85 | "license": "MIT", 86 | "engines": { 87 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 88 | } 89 | }, 90 | "node_modules/@eslint/config-array": { 91 | "version": "0.20.0", 92 | "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.20.0.tgz", 93 | "integrity": "sha512-fxlS1kkIjx8+vy2SjuCB94q3htSNrufYTXubwiBFeaQHbH6Ipi43gFJq2zCMt6PHhImH3Xmr0NksKDvchWlpQQ==", 94 | "dev": true, 95 | "license": "Apache-2.0", 96 | "dependencies": { 97 | "@eslint/object-schema": "^2.1.6", 98 | "debug": "^4.3.1", 99 | "minimatch": "^3.1.2" 100 | }, 101 | "engines": { 102 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 103 | } 104 | }, 105 | "node_modules/@eslint/config-helpers": { 106 | "version": "0.2.1", 107 | "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.2.1.tgz", 108 | "integrity": "sha512-RI17tsD2frtDu/3dmI7QRrD4bedNKPM08ziRYaC5AhkGrzIAJelm9kJU1TznK+apx6V+cqRz8tfpEeG3oIyjxw==", 109 | "dev": true, 110 | "license": "Apache-2.0", 111 | "engines": { 112 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 113 | } 114 | }, 115 | "node_modules/@eslint/core": { 116 | "version": "0.14.0", 117 | "resolved": "https://registry.npmjs.org/@eslint/core/-/core-0.14.0.tgz", 118 | "integrity": "sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==", 119 | "dev": true, 120 | "license": "Apache-2.0", 121 | "dependencies": { 122 | "@types/json-schema": "^7.0.15" 123 | }, 124 | "engines": { 125 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 126 | } 127 | }, 128 | "node_modules/@eslint/eslintrc": { 129 | "version": "3.3.1", 130 | "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.3.1.tgz", 131 | "integrity": "sha512-gtF186CXhIl1p4pJNGZw8Yc6RlshoePRvE0X91oPGb3vZ8pM3qOS9W9NGPat9LziaBV7XrJWGylNQXkGcnM3IQ==", 132 | "dev": true, 133 | "license": "MIT", 134 | "dependencies": { 135 | "ajv": "^6.12.4", 136 | "debug": "^4.3.2", 137 | "espree": "^10.0.1", 138 | "globals": "^14.0.0", 139 | "ignore": "^5.2.0", 140 | "import-fresh": "^3.2.1", 141 | "js-yaml": "^4.1.0", 142 | "minimatch": "^3.1.2", 143 | "strip-json-comments": "^3.1.1" 144 | }, 145 | "engines": { 146 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 147 | }, 148 | "funding": { 149 | "url": "https://opencollective.com/eslint" 150 | } 151 | }, 152 | "node_modules/@eslint/eslintrc/node_modules/argparse": { 153 | "version": "2.0.1", 154 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 155 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 156 | "dev": true 157 | }, 158 | "node_modules/@eslint/eslintrc/node_modules/js-yaml": { 159 | "version": "4.1.0", 160 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 161 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 162 | "dev": true, 163 | "dependencies": { 164 | "argparse": "^2.0.1" 165 | }, 166 | "bin": { 167 | "js-yaml": "bin/js-yaml.js" 168 | } 169 | }, 170 | "node_modules/@eslint/js": { 171 | "version": "9.28.0", 172 | "resolved": "https://registry.npmjs.org/@eslint/js/-/js-9.28.0.tgz", 173 | "integrity": "sha512-fnqSjGWd/CoIp4EXIxWVK/sHA6DOHN4+8Ix2cX5ycOY7LG0UY8nHCU5pIp2eaE1Mc7Qd8kHspYNzYXT2ojPLzg==", 174 | "dev": true, 175 | "license": "MIT", 176 | "engines": { 177 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 178 | }, 179 | "funding": { 180 | "url": "https://eslint.org/donate" 181 | } 182 | }, 183 | "node_modules/@eslint/object-schema": { 184 | "version": "2.1.6", 185 | "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-2.1.6.tgz", 186 | "integrity": "sha512-RBMg5FRL0I0gs51M/guSAj5/e14VQ4tpZnQNWwuDT66P14I43ItmPfIZRhO9fUVIPOAQXU47atlywZ/czoqFPA==", 187 | "dev": true, 188 | "license": "Apache-2.0", 189 | "engines": { 190 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 191 | } 192 | }, 193 | "node_modules/@eslint/plugin-kit": { 194 | "version": "0.3.1", 195 | "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.3.1.tgz", 196 | "integrity": "sha512-0J+zgWxHN+xXONWIyPWKFMgVuJoZuGiIFu8yxk7RJjxkzpGmyja5wRFqZIVtjDVOQpV+Rw0iOAjYPE2eQyjr0w==", 197 | "dev": true, 198 | "license": "Apache-2.0", 199 | "dependencies": { 200 | "@eslint/core": "^0.14.0", 201 | "levn": "^0.4.1" 202 | }, 203 | "engines": { 204 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 205 | } 206 | }, 207 | "node_modules/@humanfs/core": { 208 | "version": "0.19.1", 209 | "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", 210 | "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==", 211 | "dev": true, 212 | "license": "Apache-2.0", 213 | "engines": { 214 | "node": ">=18.18.0" 215 | } 216 | }, 217 | "node_modules/@humanfs/node": { 218 | "version": "0.16.6", 219 | "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.6.tgz", 220 | "integrity": "sha512-YuI2ZHQL78Q5HbhDiBA1X4LmYdXCKCMQIfw0pw7piHJwyREFebJUvrQN4cMssyES6x+vfUbx1CIpaQUKYdQZOw==", 221 | "dev": true, 222 | "license": "Apache-2.0", 223 | "dependencies": { 224 | "@humanfs/core": "^0.19.1", 225 | "@humanwhocodes/retry": "^0.3.0" 226 | }, 227 | "engines": { 228 | "node": ">=18.18.0" 229 | } 230 | }, 231 | "node_modules/@humanwhocodes/module-importer": { 232 | "version": "1.0.1", 233 | "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", 234 | "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", 235 | "dev": true, 236 | "engines": { 237 | "node": ">=12.22" 238 | }, 239 | "funding": { 240 | "type": "github", 241 | "url": "https://github.com/sponsors/nzakas" 242 | } 243 | }, 244 | "node_modules/@humanwhocodes/retry": { 245 | "version": "0.3.0", 246 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.3.0.tgz", 247 | "integrity": "sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==", 248 | "dev": true, 249 | "engines": { 250 | "node": ">=18.18" 251 | }, 252 | "funding": { 253 | "type": "github", 254 | "url": "https://github.com/sponsors/nzakas" 255 | } 256 | }, 257 | "node_modules/@isaacs/cliui": { 258 | "version": "8.0.2", 259 | "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", 260 | "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==", 261 | "dev": true, 262 | "license": "ISC", 263 | "dependencies": { 264 | "string-width": "^5.1.2", 265 | "string-width-cjs": "npm:string-width@^4.2.0", 266 | "strip-ansi": "^7.0.1", 267 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 268 | "wrap-ansi": "^8.1.0", 269 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 270 | }, 271 | "engines": { 272 | "node": ">=12" 273 | } 274 | }, 275 | "node_modules/@isaacs/cliui/node_modules/ansi-regex": { 276 | "version": "6.1.0", 277 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", 278 | "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", 279 | "dev": true, 280 | "license": "MIT", 281 | "engines": { 282 | "node": ">=12" 283 | }, 284 | "funding": { 285 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 286 | } 287 | }, 288 | "node_modules/@isaacs/cliui/node_modules/ansi-styles": { 289 | "version": "6.2.1", 290 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 291 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 292 | "dev": true, 293 | "license": "MIT", 294 | "engines": { 295 | "node": ">=12" 296 | }, 297 | "funding": { 298 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 299 | } 300 | }, 301 | "node_modules/@isaacs/cliui/node_modules/emoji-regex": { 302 | "version": "9.2.2", 303 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", 304 | "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", 305 | "dev": true, 306 | "license": "MIT" 307 | }, 308 | "node_modules/@isaacs/cliui/node_modules/string-width": { 309 | "version": "5.1.2", 310 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", 311 | "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", 312 | "dev": true, 313 | "license": "MIT", 314 | "dependencies": { 315 | "eastasianwidth": "^0.2.0", 316 | "emoji-regex": "^9.2.2", 317 | "strip-ansi": "^7.0.1" 318 | }, 319 | "engines": { 320 | "node": ">=12" 321 | }, 322 | "funding": { 323 | "url": "https://github.com/sponsors/sindresorhus" 324 | } 325 | }, 326 | "node_modules/@isaacs/cliui/node_modules/strip-ansi": { 327 | "version": "7.1.0", 328 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", 329 | "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", 330 | "dev": true, 331 | "license": "MIT", 332 | "dependencies": { 333 | "ansi-regex": "^6.0.1" 334 | }, 335 | "engines": { 336 | "node": ">=12" 337 | }, 338 | "funding": { 339 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 340 | } 341 | }, 342 | "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { 343 | "version": "8.1.0", 344 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", 345 | "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", 346 | "dev": true, 347 | "license": "MIT", 348 | "dependencies": { 349 | "ansi-styles": "^6.1.0", 350 | "string-width": "^5.0.1", 351 | "strip-ansi": "^7.0.1" 352 | }, 353 | "engines": { 354 | "node": ">=12" 355 | }, 356 | "funding": { 357 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 358 | } 359 | }, 360 | "node_modules/@istanbuljs/schema": { 361 | "version": "0.1.3", 362 | "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", 363 | "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", 364 | "dev": true, 365 | "engines": { 366 | "node": ">=8" 367 | } 368 | }, 369 | "node_modules/@jridgewell/resolve-uri": { 370 | "version": "3.1.2", 371 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 372 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 373 | "dev": true, 374 | "engines": { 375 | "node": ">=6.0.0" 376 | } 377 | }, 378 | "node_modules/@jridgewell/sourcemap-codec": { 379 | "version": "1.4.15", 380 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", 381 | "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", 382 | "dev": true 383 | }, 384 | "node_modules/@jridgewell/trace-mapping": { 385 | "version": "0.3.25", 386 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 387 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 388 | "dev": true, 389 | "dependencies": { 390 | "@jridgewell/resolve-uri": "^3.1.0", 391 | "@jridgewell/sourcemap-codec": "^1.4.14" 392 | } 393 | }, 394 | "node_modules/@noble/hashes": { 395 | "version": "1.8.0", 396 | "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.8.0.tgz", 397 | "integrity": "sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==", 398 | "license": "MIT", 399 | "engines": { 400 | "node": "^14.21.3 || >=16" 401 | }, 402 | "funding": { 403 | "url": "https://paulmillr.com/funding/" 404 | } 405 | }, 406 | "node_modules/@paralleldrive/cuid2": { 407 | "version": "2.2.2", 408 | "resolved": "https://registry.npmjs.org/@paralleldrive/cuid2/-/cuid2-2.2.2.tgz", 409 | "integrity": "sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==", 410 | "license": "MIT", 411 | "dependencies": { 412 | "@noble/hashes": "^1.1.5" 413 | } 414 | }, 415 | "node_modules/@pkgjs/parseargs": { 416 | "version": "0.11.0", 417 | "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", 418 | "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==", 419 | "dev": true, 420 | "license": "MIT", 421 | "optional": true, 422 | "engines": { 423 | "node": ">=14" 424 | } 425 | }, 426 | "node_modules/@polka/url": { 427 | "version": "1.0.0-next.28", 428 | "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.28.tgz", 429 | "integrity": "sha512-8LduaNlMZGwdZ6qWrKlfa+2M4gahzFkprZiAt2TF8uS0qQgBizKXpXURqvTJ4WtmupWxaLqjRb2UCTe72mu+Aw==", 430 | "dev": true, 431 | "license": "MIT" 432 | }, 433 | "node_modules/@types/chai": { 434 | "version": "5.2.2", 435 | "resolved": "https://registry.npmjs.org/@types/chai/-/chai-5.2.2.tgz", 436 | "integrity": "sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==", 437 | "dev": true, 438 | "license": "MIT", 439 | "dependencies": { 440 | "@types/deep-eql": "*" 441 | } 442 | }, 443 | "node_modules/@types/cookiejar": { 444 | "version": "2.1.5", 445 | "resolved": "https://registry.npmjs.org/@types/cookiejar/-/cookiejar-2.1.5.tgz", 446 | "integrity": "sha512-he+DHOWReW0nghN24E1WUqM0efK4kI9oTqDm6XmK8ZPe2djZ90BSNdGnIyCLzCPw7/pogPlGbzI2wHGGmi4O/Q==" 447 | }, 448 | "node_modules/@types/deep-eql": { 449 | "version": "4.0.2", 450 | "resolved": "https://registry.npmjs.org/@types/deep-eql/-/deep-eql-4.0.2.tgz", 451 | "integrity": "sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==", 452 | "dev": true, 453 | "license": "MIT" 454 | }, 455 | "node_modules/@types/estree": { 456 | "version": "1.0.6", 457 | "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz", 458 | "integrity": "sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw==", 459 | "dev": true, 460 | "license": "MIT" 461 | }, 462 | "node_modules/@types/istanbul-lib-coverage": { 463 | "version": "2.0.6", 464 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", 465 | "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", 466 | "dev": true, 467 | "license": "MIT" 468 | }, 469 | "node_modules/@types/json-schema": { 470 | "version": "7.0.15", 471 | "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", 472 | "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", 473 | "dev": true, 474 | "license": "MIT" 475 | }, 476 | "node_modules/@types/methods": { 477 | "version": "1.1.4", 478 | "resolved": "https://registry.npmjs.org/@types/methods/-/methods-1.1.4.tgz", 479 | "integrity": "sha512-ymXWVrDiCxTBE3+RIrrP533E70eA+9qu7zdWoHuOmGujkYtzf4HQF96b8nwHLqhuf4ykX61IGRIB38CC6/sImQ==" 480 | }, 481 | "node_modules/@types/node": { 482 | "version": "20.12.8", 483 | "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.8.tgz", 484 | "integrity": "sha512-NU0rJLJnshZWdE/097cdCBbyW1h4hEg0xpovcoAQYHl8dnEyp/NAOiE45pvc+Bd1Dt+2r94v2eGFpQJ4R7g+2w==", 485 | "dependencies": { 486 | "undici-types": "~5.26.4" 487 | } 488 | }, 489 | "node_modules/@types/superagent": { 490 | "version": "8.1.9", 491 | "resolved": "https://registry.npmjs.org/@types/superagent/-/superagent-8.1.9.tgz", 492 | "integrity": "sha512-pTVjI73witn+9ILmoJdajHGW2jkSaOzhiFYF1Rd3EQ94kymLqB9PjD9ISg7WaALC7+dCHT0FGe9T2LktLq/3GQ==", 493 | "license": "MIT", 494 | "dependencies": { 495 | "@types/cookiejar": "^2.1.5", 496 | "@types/methods": "^1.1.4", 497 | "@types/node": "*", 498 | "form-data": "^4.0.0" 499 | } 500 | }, 501 | "node_modules/@types/superagent/node_modules/form-data": { 502 | "version": "4.0.1", 503 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", 504 | "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", 505 | "license": "MIT", 506 | "dependencies": { 507 | "asynckit": "^0.4.0", 508 | "combined-stream": "^1.0.8", 509 | "mime-types": "^2.1.12" 510 | }, 511 | "engines": { 512 | "node": ">= 6" 513 | } 514 | }, 515 | "node_modules/acorn": { 516 | "version": "8.14.0", 517 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", 518 | "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", 519 | "dev": true, 520 | "license": "MIT", 521 | "bin": { 522 | "acorn": "bin/acorn" 523 | }, 524 | "engines": { 525 | "node": ">=0.4.0" 526 | } 527 | }, 528 | "node_modules/acorn-jsx": { 529 | "version": "5.3.2", 530 | "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", 531 | "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", 532 | "dev": true, 533 | "peerDependencies": { 534 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 535 | } 536 | }, 537 | "node_modules/ajv": { 538 | "version": "6.12.6", 539 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", 540 | "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", 541 | "dev": true, 542 | "dependencies": { 543 | "fast-deep-equal": "^3.1.1", 544 | "fast-json-stable-stringify": "^2.0.0", 545 | "json-schema-traverse": "^0.4.1", 546 | "uri-js": "^4.2.2" 547 | }, 548 | "funding": { 549 | "type": "github", 550 | "url": "https://github.com/sponsors/epoberezkin" 551 | } 552 | }, 553 | "node_modules/ansi-regex": { 554 | "version": "5.0.1", 555 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 556 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 557 | "dev": true, 558 | "engines": { 559 | "node": ">=8" 560 | } 561 | }, 562 | "node_modules/ansi-styles": { 563 | "version": "4.3.0", 564 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 565 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 566 | "dev": true, 567 | "dependencies": { 568 | "color-convert": "^2.0.1" 569 | }, 570 | "engines": { 571 | "node": ">=8" 572 | }, 573 | "funding": { 574 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 575 | } 576 | }, 577 | "node_modules/argparse": { 578 | "version": "1.0.10", 579 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 580 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 581 | "dev": true, 582 | "dependencies": { 583 | "sprintf-js": "~1.0.2" 584 | } 585 | }, 586 | "node_modules/asap": { 587 | "version": "2.0.6", 588 | "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", 589 | "integrity": "sha512-BSHWgDSAiKs50o2Re8ppvp3seVHXSRM44cdSsT9FfNEUUZLOGWVCsiWaRPWM1Znn+mqZ1OfVZ3z3DWEzSp7hRA==" 590 | }, 591 | "node_modules/asn1": { 592 | "version": "0.2.6", 593 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", 594 | "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", 595 | "dev": true, 596 | "dependencies": { 597 | "safer-buffer": "~2.1.0" 598 | } 599 | }, 600 | "node_modules/assert-plus": { 601 | "version": "1.0.0", 602 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 603 | "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", 604 | "dev": true, 605 | "engines": { 606 | "node": ">=0.8" 607 | } 608 | }, 609 | "node_modules/assertion-error": { 610 | "version": "2.0.1", 611 | "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-2.0.1.tgz", 612 | "integrity": "sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==", 613 | "dev": true, 614 | "engines": { 615 | "node": ">=12" 616 | } 617 | }, 618 | "node_modules/async": { 619 | "version": "2.6.4", 620 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.4.tgz", 621 | "integrity": "sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==", 622 | "dev": true, 623 | "dependencies": { 624 | "lodash": "^4.17.14" 625 | } 626 | }, 627 | "node_modules/asynckit": { 628 | "version": "0.4.0", 629 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 630 | "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" 631 | }, 632 | "node_modules/aws-sign2": { 633 | "version": "0.7.0", 634 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 635 | "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", 636 | "dev": true, 637 | "engines": { 638 | "node": "*" 639 | } 640 | }, 641 | "node_modules/aws4": { 642 | "version": "1.12.0", 643 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", 644 | "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==", 645 | "dev": true 646 | }, 647 | "node_modules/balanced-match": { 648 | "version": "1.0.2", 649 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 650 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 651 | "dev": true 652 | }, 653 | "node_modules/basic-auth": { 654 | "version": "2.0.1", 655 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 656 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 657 | "dev": true, 658 | "dependencies": { 659 | "safe-buffer": "5.1.2" 660 | }, 661 | "engines": { 662 | "node": ">= 0.8" 663 | } 664 | }, 665 | "node_modules/basic-auth/node_modules/safe-buffer": { 666 | "version": "5.1.2", 667 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 668 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 669 | "dev": true 670 | }, 671 | "node_modules/bcrypt-pbkdf": { 672 | "version": "1.0.2", 673 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 674 | "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", 675 | "dev": true, 676 | "dependencies": { 677 | "tweetnacl": "^0.14.3" 678 | } 679 | }, 680 | "node_modules/brace-expansion": { 681 | "version": "1.1.11", 682 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 683 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 684 | "dev": true, 685 | "dependencies": { 686 | "balanced-match": "^1.0.0", 687 | "concat-map": "0.0.1" 688 | } 689 | }, 690 | "node_modules/browser-stdout": { 691 | "version": "1.3.1", 692 | "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", 693 | "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", 694 | "dev": true 695 | }, 696 | "node_modules/c8": { 697 | "version": "10.1.3", 698 | "resolved": "https://registry.npmjs.org/c8/-/c8-10.1.3.tgz", 699 | "integrity": "sha512-LvcyrOAaOnrrlMpW22n690PUvxiq4Uf9WMhQwNJ9vgagkL/ph1+D4uvjvDA5XCbykrc0sx+ay6pVi9YZ1GnhyA==", 700 | "dev": true, 701 | "license": "ISC", 702 | "dependencies": { 703 | "@bcoe/v8-coverage": "^1.0.1", 704 | "@istanbuljs/schema": "^0.1.3", 705 | "find-up": "^5.0.0", 706 | "foreground-child": "^3.1.1", 707 | "istanbul-lib-coverage": "^3.2.0", 708 | "istanbul-lib-report": "^3.0.1", 709 | "istanbul-reports": "^3.1.6", 710 | "test-exclude": "^7.0.1", 711 | "v8-to-istanbul": "^9.0.0", 712 | "yargs": "^17.7.2", 713 | "yargs-parser": "^21.1.1" 714 | }, 715 | "bin": { 716 | "c8": "bin/c8.js" 717 | }, 718 | "engines": { 719 | "node": ">=18" 720 | }, 721 | "peerDependencies": { 722 | "monocart-coverage-reports": "^2" 723 | }, 724 | "peerDependenciesMeta": { 725 | "monocart-coverage-reports": { 726 | "optional": true 727 | } 728 | } 729 | }, 730 | "node_modules/c8/node_modules/brace-expansion": { 731 | "version": "2.0.1", 732 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 733 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 734 | "dev": true, 735 | "license": "MIT", 736 | "dependencies": { 737 | "balanced-match": "^1.0.0" 738 | } 739 | }, 740 | "node_modules/c8/node_modules/minimatch": { 741 | "version": "9.0.5", 742 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 743 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 744 | "dev": true, 745 | "license": "ISC", 746 | "dependencies": { 747 | "brace-expansion": "^2.0.1" 748 | }, 749 | "engines": { 750 | "node": ">=16 || 14 >=14.17" 751 | }, 752 | "funding": { 753 | "url": "https://github.com/sponsors/isaacs" 754 | } 755 | }, 756 | "node_modules/c8/node_modules/test-exclude": { 757 | "version": "7.0.1", 758 | "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-7.0.1.tgz", 759 | "integrity": "sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==", 760 | "dev": true, 761 | "license": "ISC", 762 | "dependencies": { 763 | "@istanbuljs/schema": "^0.1.2", 764 | "glob": "^10.4.1", 765 | "minimatch": "^9.0.4" 766 | }, 767 | "engines": { 768 | "node": ">=18" 769 | } 770 | }, 771 | "node_modules/call-bind-apply-helpers": { 772 | "version": "1.0.1", 773 | "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.1.tgz", 774 | "integrity": "sha512-BhYE+WDaywFg2TBWYNXAE+8B1ATnThNBqXHP5nQu0jWJdVvY2hvkpyB3qOmtmDePiS5/BDQ8wASEWGMWRG148g==", 775 | "license": "MIT", 776 | "dependencies": { 777 | "es-errors": "^1.3.0", 778 | "function-bind": "^1.1.2" 779 | }, 780 | "engines": { 781 | "node": ">= 0.4" 782 | } 783 | }, 784 | "node_modules/call-bound": { 785 | "version": "1.0.3", 786 | "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.3.tgz", 787 | "integrity": "sha512-YTd+6wGlNlPxSuri7Y6X8tY2dmm12UMH66RpKMhiX6rsk5wXXnYgbUcOt8kiS31/AjfoTOvCsE+w8nZQLQnzHA==", 788 | "license": "MIT", 789 | "dependencies": { 790 | "call-bind-apply-helpers": "^1.0.1", 791 | "get-intrinsic": "^1.2.6" 792 | }, 793 | "engines": { 794 | "node": ">= 0.4" 795 | }, 796 | "funding": { 797 | "url": "https://github.com/sponsors/ljharb" 798 | } 799 | }, 800 | "node_modules/callsites": { 801 | "version": "3.1.0", 802 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 803 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 804 | "dev": true, 805 | "engines": { 806 | "node": ">=6" 807 | } 808 | }, 809 | "node_modules/caseless": { 810 | "version": "0.12.0", 811 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 812 | "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==", 813 | "dev": true 814 | }, 815 | "node_modules/chai": { 816 | "version": "5.2.0", 817 | "resolved": "https://registry.npmjs.org/chai/-/chai-5.2.0.tgz", 818 | "integrity": "sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==", 819 | "dev": true, 820 | "license": "MIT", 821 | "dependencies": { 822 | "assertion-error": "^2.0.1", 823 | "check-error": "^2.1.1", 824 | "deep-eql": "^5.0.1", 825 | "loupe": "^3.1.0", 826 | "pathval": "^2.0.0" 827 | }, 828 | "engines": { 829 | "node": ">=12" 830 | } 831 | }, 832 | "node_modules/chalk": { 833 | "version": "4.1.2", 834 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 835 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 836 | "dev": true, 837 | "dependencies": { 838 | "ansi-styles": "^4.1.0", 839 | "supports-color": "^7.1.0" 840 | }, 841 | "engines": { 842 | "node": ">=10" 843 | }, 844 | "funding": { 845 | "url": "https://github.com/chalk/chalk?sponsor=1" 846 | } 847 | }, 848 | "node_modules/charset": { 849 | "version": "1.0.1", 850 | "resolved": "https://registry.npmjs.org/charset/-/charset-1.0.1.tgz", 851 | "integrity": "sha512-6dVyOOYjpfFcL1Y4qChrAoQLRHvj2ziyhcm0QJlhOcAhykL/k1kTUPbeo+87MNRTRdk2OIIsIXbuF3x2wi5EXg==", 852 | "engines": { 853 | "node": ">=4.0.0" 854 | } 855 | }, 856 | "node_modules/check-error": { 857 | "version": "2.1.1", 858 | "resolved": "https://registry.npmjs.org/check-error/-/check-error-2.1.1.tgz", 859 | "integrity": "sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==", 860 | "dev": true, 861 | "license": "MIT", 862 | "engines": { 863 | "node": ">= 16" 864 | } 865 | }, 866 | "node_modules/chokidar": { 867 | "version": "4.0.3", 868 | "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-4.0.3.tgz", 869 | "integrity": "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==", 870 | "dev": true, 871 | "license": "MIT", 872 | "dependencies": { 873 | "readdirp": "^4.0.1" 874 | }, 875 | "engines": { 876 | "node": ">= 14.16.0" 877 | }, 878 | "funding": { 879 | "url": "https://paulmillr.com/funding/" 880 | } 881 | }, 882 | "node_modules/cliui": { 883 | "version": "8.0.1", 884 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 885 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 886 | "dev": true, 887 | "license": "ISC", 888 | "dependencies": { 889 | "string-width": "^4.2.0", 890 | "strip-ansi": "^6.0.1", 891 | "wrap-ansi": "^7.0.0" 892 | }, 893 | "engines": { 894 | "node": ">=12" 895 | } 896 | }, 897 | "node_modules/clone-regexp": { 898 | "version": "3.0.0", 899 | "resolved": "https://registry.npmjs.org/clone-regexp/-/clone-regexp-3.0.0.tgz", 900 | "integrity": "sha512-ujdnoq2Kxb8s3ItNBtnYeXdm07FcU0u8ARAT1lQ2YdMwQC+cdiXX8KoqMVuglztILivceTtp4ivqGSmEmhBUJw==", 901 | "dependencies": { 902 | "is-regexp": "^3.0.0" 903 | }, 904 | "engines": { 905 | "node": ">=12" 906 | }, 907 | "funding": { 908 | "url": "https://github.com/sponsors/sindresorhus" 909 | } 910 | }, 911 | "node_modules/color-convert": { 912 | "version": "2.0.1", 913 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 914 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 915 | "dev": true, 916 | "dependencies": { 917 | "color-name": "~1.1.4" 918 | }, 919 | "engines": { 920 | "node": ">=7.0.0" 921 | } 922 | }, 923 | "node_modules/color-name": { 924 | "version": "1.1.4", 925 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 926 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 927 | "dev": true 928 | }, 929 | "node_modules/combined-stream": { 930 | "version": "1.0.8", 931 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 932 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 933 | "dependencies": { 934 | "delayed-stream": "~1.0.0" 935 | }, 936 | "engines": { 937 | "node": ">= 0.8" 938 | } 939 | }, 940 | "node_modules/component-emitter": { 941 | "version": "1.3.1", 942 | "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", 943 | "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", 944 | "funding": { 945 | "url": "https://github.com/sponsors/sindresorhus" 946 | } 947 | }, 948 | "node_modules/concat-map": { 949 | "version": "0.0.1", 950 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 951 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 952 | "dev": true 953 | }, 954 | "node_modules/convert-hrtime": { 955 | "version": "5.0.0", 956 | "resolved": "https://registry.npmjs.org/convert-hrtime/-/convert-hrtime-5.0.0.tgz", 957 | "integrity": "sha512-lOETlkIeYSJWcbbcvjRKGxVMXJR+8+OQb/mTPbA4ObPMytYIsUbuOE0Jzy60hjARYszq1id0j8KgVhC+WGZVTg==", 958 | "engines": { 959 | "node": ">=12" 960 | }, 961 | "funding": { 962 | "url": "https://github.com/sponsors/sindresorhus" 963 | } 964 | }, 965 | "node_modules/cookiejar": { 966 | "version": "2.1.4", 967 | "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", 968 | "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" 969 | }, 970 | "node_modules/corser": { 971 | "version": "2.0.1", 972 | "resolved": "https://registry.npmjs.org/corser/-/corser-2.0.1.tgz", 973 | "integrity": "sha512-utCYNzRSQIZNPIcGZdQc92UVJYAhtGAteCFg0yRaFm8f0P+CPtyGyHXJcGXnffjCybUCEx3FQ2G7U3/o9eIkVQ==", 974 | "dev": true, 975 | "engines": { 976 | "node": ">= 0.4.0" 977 | } 978 | }, 979 | "node_modules/coveralls": { 980 | "version": "3.1.1", 981 | "resolved": "https://registry.npmjs.org/coveralls/-/coveralls-3.1.1.tgz", 982 | "integrity": "sha512-+dxnG2NHncSD1NrqbSM3dn/lE57O6Qf/koe9+I7c+wzkqRmEvcp0kgJdxKInzYzkICKkFMZsX3Vct3++tsF9ww==", 983 | "dev": true, 984 | "dependencies": { 985 | "js-yaml": "^3.13.1", 986 | "lcov-parse": "^1.0.0", 987 | "log-driver": "^1.2.7", 988 | "minimist": "^1.2.5", 989 | "request": "^2.88.2" 990 | }, 991 | "bin": { 992 | "coveralls": "bin/coveralls.js" 993 | }, 994 | "engines": { 995 | "node": ">=6" 996 | } 997 | }, 998 | "node_modules/cross-spawn": { 999 | "version": "7.0.6", 1000 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 1001 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 1002 | "dev": true, 1003 | "license": "MIT", 1004 | "dependencies": { 1005 | "path-key": "^3.1.0", 1006 | "shebang-command": "^2.0.0", 1007 | "which": "^2.0.1" 1008 | }, 1009 | "engines": { 1010 | "node": ">= 8" 1011 | } 1012 | }, 1013 | "node_modules/dashdash": { 1014 | "version": "1.14.1", 1015 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 1016 | "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", 1017 | "dev": true, 1018 | "dependencies": { 1019 | "assert-plus": "^1.0.0" 1020 | }, 1021 | "engines": { 1022 | "node": ">=0.10" 1023 | } 1024 | }, 1025 | "node_modules/debug": { 1026 | "version": "4.4.0", 1027 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1028 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1029 | "license": "MIT", 1030 | "dependencies": { 1031 | "ms": "^2.1.3" 1032 | }, 1033 | "engines": { 1034 | "node": ">=6.0" 1035 | }, 1036 | "peerDependenciesMeta": { 1037 | "supports-color": { 1038 | "optional": true 1039 | } 1040 | } 1041 | }, 1042 | "node_modules/deep-eql": { 1043 | "version": "5.0.1", 1044 | "resolved": "https://registry.npmjs.org/deep-eql/-/deep-eql-5.0.1.tgz", 1045 | "integrity": "sha512-nwQCf6ne2gez3o1MxWifqkciwt0zhl0LO1/UwVu4uMBuPmflWM4oQ70XMqHqnBJA+nhzncaqL9HVL6KkHJ28lw==", 1046 | "dev": true, 1047 | "engines": { 1048 | "node": ">=6" 1049 | } 1050 | }, 1051 | "node_modules/deep-is": { 1052 | "version": "0.1.4", 1053 | "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", 1054 | "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", 1055 | "dev": true 1056 | }, 1057 | "node_modules/delayed-stream": { 1058 | "version": "1.0.0", 1059 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 1060 | "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", 1061 | "engines": { 1062 | "node": ">=0.4.0" 1063 | } 1064 | }, 1065 | "node_modules/dezalgo": { 1066 | "version": "1.0.4", 1067 | "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", 1068 | "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", 1069 | "dependencies": { 1070 | "asap": "^2.0.0", 1071 | "wrappy": "1" 1072 | } 1073 | }, 1074 | "node_modules/diff": { 1075 | "version": "7.0.0", 1076 | "resolved": "https://registry.npmjs.org/diff/-/diff-7.0.0.tgz", 1077 | "integrity": "sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==", 1078 | "dev": true, 1079 | "license": "BSD-3-Clause", 1080 | "engines": { 1081 | "node": ">=0.3.1" 1082 | } 1083 | }, 1084 | "node_modules/dunder-proto": { 1085 | "version": "1.0.1", 1086 | "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", 1087 | "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", 1088 | "license": "MIT", 1089 | "dependencies": { 1090 | "call-bind-apply-helpers": "^1.0.1", 1091 | "es-errors": "^1.3.0", 1092 | "gopd": "^1.2.0" 1093 | }, 1094 | "engines": { 1095 | "node": ">= 0.4" 1096 | } 1097 | }, 1098 | "node_modules/eastasianwidth": { 1099 | "version": "0.2.0", 1100 | "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", 1101 | "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", 1102 | "dev": true, 1103 | "license": "MIT" 1104 | }, 1105 | "node_modules/ecc-jsbn": { 1106 | "version": "0.1.2", 1107 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 1108 | "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", 1109 | "dev": true, 1110 | "dependencies": { 1111 | "jsbn": "~0.1.0", 1112 | "safer-buffer": "^2.1.0" 1113 | } 1114 | }, 1115 | "node_modules/emoji-regex": { 1116 | "version": "8.0.0", 1117 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1118 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1119 | "dev": true 1120 | }, 1121 | "node_modules/es-define-property": { 1122 | "version": "1.0.1", 1123 | "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", 1124 | "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", 1125 | "license": "MIT", 1126 | "engines": { 1127 | "node": ">= 0.4" 1128 | } 1129 | }, 1130 | "node_modules/es-errors": { 1131 | "version": "1.3.0", 1132 | "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", 1133 | "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", 1134 | "license": "MIT", 1135 | "engines": { 1136 | "node": ">= 0.4" 1137 | } 1138 | }, 1139 | "node_modules/es-object-atoms": { 1140 | "version": "1.1.1", 1141 | "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", 1142 | "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", 1143 | "license": "MIT", 1144 | "dependencies": { 1145 | "es-errors": "^1.3.0" 1146 | }, 1147 | "engines": { 1148 | "node": ">= 0.4" 1149 | } 1150 | }, 1151 | "node_modules/es-set-tostringtag": { 1152 | "version": "2.1.0", 1153 | "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", 1154 | "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", 1155 | "license": "MIT", 1156 | "dependencies": { 1157 | "es-errors": "^1.3.0", 1158 | "get-intrinsic": "^1.2.6", 1159 | "has-tostringtag": "^1.0.2", 1160 | "hasown": "^2.0.2" 1161 | }, 1162 | "engines": { 1163 | "node": ">= 0.4" 1164 | } 1165 | }, 1166 | "node_modules/escalade": { 1167 | "version": "3.1.2", 1168 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", 1169 | "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", 1170 | "dev": true, 1171 | "engines": { 1172 | "node": ">=6" 1173 | } 1174 | }, 1175 | "node_modules/escape-string-regexp": { 1176 | "version": "4.0.0", 1177 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", 1178 | "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", 1179 | "dev": true, 1180 | "engines": { 1181 | "node": ">=10" 1182 | }, 1183 | "funding": { 1184 | "url": "https://github.com/sponsors/sindresorhus" 1185 | } 1186 | }, 1187 | "node_modules/eslint": { 1188 | "version": "9.28.0", 1189 | "resolved": "https://registry.npmjs.org/eslint/-/eslint-9.28.0.tgz", 1190 | "integrity": "sha512-ocgh41VhRlf9+fVpe7QKzwLj9c92fDiqOj8Y3Sd4/ZmVA4Btx4PlUYPq4pp9JDyupkf1upbEXecxL2mwNV7jPQ==", 1191 | "dev": true, 1192 | "license": "MIT", 1193 | "dependencies": { 1194 | "@eslint-community/eslint-utils": "^4.2.0", 1195 | "@eslint-community/regexpp": "^4.12.1", 1196 | "@eslint/config-array": "^0.20.0", 1197 | "@eslint/config-helpers": "^0.2.1", 1198 | "@eslint/core": "^0.14.0", 1199 | "@eslint/eslintrc": "^3.3.1", 1200 | "@eslint/js": "9.28.0", 1201 | "@eslint/plugin-kit": "^0.3.1", 1202 | "@humanfs/node": "^0.16.6", 1203 | "@humanwhocodes/module-importer": "^1.0.1", 1204 | "@humanwhocodes/retry": "^0.4.2", 1205 | "@types/estree": "^1.0.6", 1206 | "@types/json-schema": "^7.0.15", 1207 | "ajv": "^6.12.4", 1208 | "chalk": "^4.0.0", 1209 | "cross-spawn": "^7.0.6", 1210 | "debug": "^4.3.2", 1211 | "escape-string-regexp": "^4.0.0", 1212 | "eslint-scope": "^8.3.0", 1213 | "eslint-visitor-keys": "^4.2.0", 1214 | "espree": "^10.3.0", 1215 | "esquery": "^1.5.0", 1216 | "esutils": "^2.0.2", 1217 | "fast-deep-equal": "^3.1.3", 1218 | "file-entry-cache": "^8.0.0", 1219 | "find-up": "^5.0.0", 1220 | "glob-parent": "^6.0.2", 1221 | "ignore": "^5.2.0", 1222 | "imurmurhash": "^0.1.4", 1223 | "is-glob": "^4.0.0", 1224 | "json-stable-stringify-without-jsonify": "^1.0.1", 1225 | "lodash.merge": "^4.6.2", 1226 | "minimatch": "^3.1.2", 1227 | "natural-compare": "^1.4.0", 1228 | "optionator": "^0.9.3" 1229 | }, 1230 | "bin": { 1231 | "eslint": "bin/eslint.js" 1232 | }, 1233 | "engines": { 1234 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1235 | }, 1236 | "funding": { 1237 | "url": "https://eslint.org/donate" 1238 | }, 1239 | "peerDependencies": { 1240 | "jiti": "*" 1241 | }, 1242 | "peerDependenciesMeta": { 1243 | "jiti": { 1244 | "optional": true 1245 | } 1246 | } 1247 | }, 1248 | "node_modules/eslint-plugin-mocha": { 1249 | "version": "11.1.0", 1250 | "resolved": "https://registry.npmjs.org/eslint-plugin-mocha/-/eslint-plugin-mocha-11.1.0.tgz", 1251 | "integrity": "sha512-rKntVWRsQFPbf8OkSgVNRVRrcVAPaGTyEgWCEyXaPDJkTl0v5/lwu1vTk5sWiUJU8l2sxwvGUZzSNrEKdVMeQw==", 1252 | "dev": true, 1253 | "license": "MIT", 1254 | "dependencies": { 1255 | "@eslint-community/eslint-utils": "^4.4.1", 1256 | "globals": "^15.14.0" 1257 | }, 1258 | "peerDependencies": { 1259 | "eslint": ">=9.0.0" 1260 | } 1261 | }, 1262 | "node_modules/eslint-plugin-mocha/node_modules/globals": { 1263 | "version": "15.15.0", 1264 | "resolved": "https://registry.npmjs.org/globals/-/globals-15.15.0.tgz", 1265 | "integrity": "sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==", 1266 | "dev": true, 1267 | "license": "MIT", 1268 | "engines": { 1269 | "node": ">=18" 1270 | }, 1271 | "funding": { 1272 | "url": "https://github.com/sponsors/sindresorhus" 1273 | } 1274 | }, 1275 | "node_modules/eslint-scope": { 1276 | "version": "8.3.0", 1277 | "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-8.3.0.tgz", 1278 | "integrity": "sha512-pUNxi75F8MJ/GdeKtVLSbYg4ZI34J6C0C7sbL4YOp2exGwen7ZsuBqKzUhXd0qMQ362yET3z+uPwKeg/0C2XCQ==", 1279 | "dev": true, 1280 | "license": "BSD-2-Clause", 1281 | "dependencies": { 1282 | "esrecurse": "^4.3.0", 1283 | "estraverse": "^5.2.0" 1284 | }, 1285 | "engines": { 1286 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1287 | }, 1288 | "funding": { 1289 | "url": "https://opencollective.com/eslint" 1290 | } 1291 | }, 1292 | "node_modules/eslint-visitor-keys": { 1293 | "version": "4.2.0", 1294 | "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", 1295 | "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", 1296 | "dev": true, 1297 | "license": "Apache-2.0", 1298 | "engines": { 1299 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1300 | }, 1301 | "funding": { 1302 | "url": "https://opencollective.com/eslint" 1303 | } 1304 | }, 1305 | "node_modules/eslint/node_modules/@humanwhocodes/retry": { 1306 | "version": "0.4.3", 1307 | "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz", 1308 | "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==", 1309 | "dev": true, 1310 | "license": "Apache-2.0", 1311 | "engines": { 1312 | "node": ">=18.18" 1313 | }, 1314 | "funding": { 1315 | "type": "github", 1316 | "url": "https://github.com/sponsors/nzakas" 1317 | } 1318 | }, 1319 | "node_modules/espree": { 1320 | "version": "10.3.0", 1321 | "resolved": "https://registry.npmjs.org/espree/-/espree-10.3.0.tgz", 1322 | "integrity": "sha512-0QYC8b24HWY8zjRnDTL6RiHfDbAWn63qb4LMj1Z4b076A4une81+z03Kg7l7mn/48PUTqoLptSXez8oknU8Clg==", 1323 | "dev": true, 1324 | "license": "BSD-2-Clause", 1325 | "dependencies": { 1326 | "acorn": "^8.14.0", 1327 | "acorn-jsx": "^5.3.2", 1328 | "eslint-visitor-keys": "^4.2.0" 1329 | }, 1330 | "engines": { 1331 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1332 | }, 1333 | "funding": { 1334 | "url": "https://opencollective.com/eslint" 1335 | } 1336 | }, 1337 | "node_modules/esprima": { 1338 | "version": "4.0.1", 1339 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 1340 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 1341 | "dev": true, 1342 | "bin": { 1343 | "esparse": "bin/esparse.js", 1344 | "esvalidate": "bin/esvalidate.js" 1345 | }, 1346 | "engines": { 1347 | "node": ">=4" 1348 | } 1349 | }, 1350 | "node_modules/esquery": { 1351 | "version": "1.5.0", 1352 | "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.5.0.tgz", 1353 | "integrity": "sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==", 1354 | "dev": true, 1355 | "dependencies": { 1356 | "estraverse": "^5.1.0" 1357 | }, 1358 | "engines": { 1359 | "node": ">=0.10" 1360 | } 1361 | }, 1362 | "node_modules/esrecurse": { 1363 | "version": "4.3.0", 1364 | "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz", 1365 | "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==", 1366 | "dev": true, 1367 | "dependencies": { 1368 | "estraverse": "^5.2.0" 1369 | }, 1370 | "engines": { 1371 | "node": ">=4.0" 1372 | } 1373 | }, 1374 | "node_modules/estraverse": { 1375 | "version": "5.3.0", 1376 | "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", 1377 | "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", 1378 | "dev": true, 1379 | "engines": { 1380 | "node": ">=4.0" 1381 | } 1382 | }, 1383 | "node_modules/esutils": { 1384 | "version": "2.0.3", 1385 | "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", 1386 | "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", 1387 | "dev": true, 1388 | "engines": { 1389 | "node": ">=0.10.0" 1390 | } 1391 | }, 1392 | "node_modules/eventemitter3": { 1393 | "version": "4.0.7", 1394 | "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", 1395 | "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==", 1396 | "dev": true 1397 | }, 1398 | "node_modules/extend": { 1399 | "version": "3.0.2", 1400 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 1401 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", 1402 | "dev": true 1403 | }, 1404 | "node_modules/extsprintf": { 1405 | "version": "1.3.0", 1406 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 1407 | "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", 1408 | "dev": true, 1409 | "engines": [ 1410 | "node >=0.6.0" 1411 | ] 1412 | }, 1413 | "node_modules/fast-deep-equal": { 1414 | "version": "3.1.3", 1415 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", 1416 | "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", 1417 | "dev": true 1418 | }, 1419 | "node_modules/fast-json-stable-stringify": { 1420 | "version": "2.1.0", 1421 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1422 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1423 | "dev": true 1424 | }, 1425 | "node_modules/fast-levenshtein": { 1426 | "version": "2.0.6", 1427 | "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", 1428 | "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", 1429 | "dev": true 1430 | }, 1431 | "node_modules/fast-safe-stringify": { 1432 | "version": "2.1.1", 1433 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", 1434 | "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" 1435 | }, 1436 | "node_modules/file-entry-cache": { 1437 | "version": "8.0.0", 1438 | "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", 1439 | "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==", 1440 | "dev": true, 1441 | "dependencies": { 1442 | "flat-cache": "^4.0.0" 1443 | }, 1444 | "engines": { 1445 | "node": ">=16.0.0" 1446 | } 1447 | }, 1448 | "node_modules/find-up": { 1449 | "version": "5.0.0", 1450 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", 1451 | "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", 1452 | "dev": true, 1453 | "dependencies": { 1454 | "locate-path": "^6.0.0", 1455 | "path-exists": "^4.0.0" 1456 | }, 1457 | "engines": { 1458 | "node": ">=10" 1459 | }, 1460 | "funding": { 1461 | "url": "https://github.com/sponsors/sindresorhus" 1462 | } 1463 | }, 1464 | "node_modules/flat": { 1465 | "version": "5.0.2", 1466 | "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", 1467 | "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", 1468 | "dev": true, 1469 | "bin": { 1470 | "flat": "cli.js" 1471 | } 1472 | }, 1473 | "node_modules/flat-cache": { 1474 | "version": "4.0.1", 1475 | "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz", 1476 | "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==", 1477 | "dev": true, 1478 | "dependencies": { 1479 | "flatted": "^3.2.9", 1480 | "keyv": "^4.5.4" 1481 | }, 1482 | "engines": { 1483 | "node": ">=16" 1484 | } 1485 | }, 1486 | "node_modules/flatted": { 1487 | "version": "3.3.1", 1488 | "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.1.tgz", 1489 | "integrity": "sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==", 1490 | "dev": true 1491 | }, 1492 | "node_modules/follow-redirects": { 1493 | "version": "1.15.6", 1494 | "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", 1495 | "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", 1496 | "dev": true, 1497 | "funding": [ 1498 | { 1499 | "type": "individual", 1500 | "url": "https://github.com/sponsors/RubenVerborgh" 1501 | } 1502 | ], 1503 | "engines": { 1504 | "node": ">=4.0" 1505 | }, 1506 | "peerDependenciesMeta": { 1507 | "debug": { 1508 | "optional": true 1509 | } 1510 | } 1511 | }, 1512 | "node_modules/foreground-child": { 1513 | "version": "3.3.0", 1514 | "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.0.tgz", 1515 | "integrity": "sha512-Ld2g8rrAyMYFXBhEqMz8ZAHBi4J4uS1i/CxGMDnjyFWddMXLVcDp051DZfu+t7+ab7Wv6SMqpWmyFIj5UbfFvg==", 1516 | "dev": true, 1517 | "license": "ISC", 1518 | "dependencies": { 1519 | "cross-spawn": "^7.0.0", 1520 | "signal-exit": "^4.0.1" 1521 | }, 1522 | "engines": { 1523 | "node": ">=14" 1524 | }, 1525 | "funding": { 1526 | "url": "https://github.com/sponsors/isaacs" 1527 | } 1528 | }, 1529 | "node_modules/forever-agent": { 1530 | "version": "0.6.1", 1531 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 1532 | "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", 1533 | "dev": true, 1534 | "engines": { 1535 | "node": "*" 1536 | } 1537 | }, 1538 | "node_modules/form-data": { 1539 | "version": "2.3.3", 1540 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 1541 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 1542 | "dev": true, 1543 | "dependencies": { 1544 | "asynckit": "^0.4.0", 1545 | "combined-stream": "^1.0.6", 1546 | "mime-types": "^2.1.12" 1547 | }, 1548 | "engines": { 1549 | "node": ">= 0.12" 1550 | } 1551 | }, 1552 | "node_modules/formidable": { 1553 | "version": "3.5.4", 1554 | "resolved": "https://registry.npmjs.org/formidable/-/formidable-3.5.4.tgz", 1555 | "integrity": "sha512-YikH+7CUTOtP44ZTnUhR7Ic2UASBPOqmaRkRKxRbywPTe5VxF7RRCck4af9wutiZ/QKM5nME9Bie2fFaPz5Gug==", 1556 | "license": "MIT", 1557 | "dependencies": { 1558 | "@paralleldrive/cuid2": "^2.2.2", 1559 | "dezalgo": "^1.0.4", 1560 | "once": "^1.4.0" 1561 | }, 1562 | "engines": { 1563 | "node": ">=14.0.0" 1564 | }, 1565 | "funding": { 1566 | "url": "https://ko-fi.com/tunnckoCore/commissions" 1567 | } 1568 | }, 1569 | "node_modules/function-bind": { 1570 | "version": "1.1.2", 1571 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1572 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1573 | "license": "MIT", 1574 | "funding": { 1575 | "url": "https://github.com/sponsors/ljharb" 1576 | } 1577 | }, 1578 | "node_modules/function-timeout": { 1579 | "version": "0.1.1", 1580 | "resolved": "https://registry.npmjs.org/function-timeout/-/function-timeout-0.1.1.tgz", 1581 | "integrity": "sha512-0NVVC0TaP7dSTvn1yMiy6d6Q8gifzbvQafO46RtLG/kHJUBNd+pVRGOBoK44wNBvtSPUJRfdVvkFdD3p0xvyZg==", 1582 | "engines": { 1583 | "node": ">=14.16" 1584 | }, 1585 | "funding": { 1586 | "url": "https://github.com/sponsors/sindresorhus" 1587 | } 1588 | }, 1589 | "node_modules/get-caller-file": { 1590 | "version": "2.0.5", 1591 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1592 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1593 | "dev": true, 1594 | "engines": { 1595 | "node": "6.* || 8.* || >= 10.*" 1596 | } 1597 | }, 1598 | "node_modules/get-func-name": { 1599 | "version": "2.0.2", 1600 | "resolved": "https://registry.npmjs.org/get-func-name/-/get-func-name-2.0.2.tgz", 1601 | "integrity": "sha512-8vXOvuE167CtIc3OyItco7N/dpRtBbYOsPsXCz7X/PMnlGjYjSGuZJgM1Y7mmew7BKf9BqvLX2tnOVy1BBUsxQ==", 1602 | "dev": true, 1603 | "engines": { 1604 | "node": "*" 1605 | } 1606 | }, 1607 | "node_modules/get-intrinsic": { 1608 | "version": "1.2.7", 1609 | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", 1610 | "integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", 1611 | "license": "MIT", 1612 | "dependencies": { 1613 | "call-bind-apply-helpers": "^1.0.1", 1614 | "es-define-property": "^1.0.1", 1615 | "es-errors": "^1.3.0", 1616 | "es-object-atoms": "^1.0.0", 1617 | "function-bind": "^1.1.2", 1618 | "get-proto": "^1.0.0", 1619 | "gopd": "^1.2.0", 1620 | "has-symbols": "^1.1.0", 1621 | "hasown": "^2.0.2", 1622 | "math-intrinsics": "^1.1.0" 1623 | }, 1624 | "engines": { 1625 | "node": ">= 0.4" 1626 | }, 1627 | "funding": { 1628 | "url": "https://github.com/sponsors/ljharb" 1629 | } 1630 | }, 1631 | "node_modules/get-proto": { 1632 | "version": "1.0.1", 1633 | "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", 1634 | "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", 1635 | "license": "MIT", 1636 | "dependencies": { 1637 | "dunder-proto": "^1.0.1", 1638 | "es-object-atoms": "^1.0.0" 1639 | }, 1640 | "engines": { 1641 | "node": ">= 0.4" 1642 | } 1643 | }, 1644 | "node_modules/getpass": { 1645 | "version": "0.1.7", 1646 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 1647 | "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", 1648 | "dev": true, 1649 | "dependencies": { 1650 | "assert-plus": "^1.0.0" 1651 | } 1652 | }, 1653 | "node_modules/glob": { 1654 | "version": "10.4.5", 1655 | "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz", 1656 | "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==", 1657 | "dev": true, 1658 | "license": "ISC", 1659 | "dependencies": { 1660 | "foreground-child": "^3.1.0", 1661 | "jackspeak": "^3.1.2", 1662 | "minimatch": "^9.0.4", 1663 | "minipass": "^7.1.2", 1664 | "package-json-from-dist": "^1.0.0", 1665 | "path-scurry": "^1.11.1" 1666 | }, 1667 | "bin": { 1668 | "glob": "dist/esm/bin.mjs" 1669 | }, 1670 | "funding": { 1671 | "url": "https://github.com/sponsors/isaacs" 1672 | } 1673 | }, 1674 | "node_modules/glob-parent": { 1675 | "version": "6.0.2", 1676 | "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz", 1677 | "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==", 1678 | "dev": true, 1679 | "license": "ISC", 1680 | "dependencies": { 1681 | "is-glob": "^4.0.3" 1682 | }, 1683 | "engines": { 1684 | "node": ">=10.13.0" 1685 | } 1686 | }, 1687 | "node_modules/glob/node_modules/brace-expansion": { 1688 | "version": "2.0.1", 1689 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1690 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1691 | "dev": true, 1692 | "license": "MIT", 1693 | "dependencies": { 1694 | "balanced-match": "^1.0.0" 1695 | } 1696 | }, 1697 | "node_modules/glob/node_modules/minimatch": { 1698 | "version": "9.0.5", 1699 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 1700 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 1701 | "dev": true, 1702 | "license": "ISC", 1703 | "dependencies": { 1704 | "brace-expansion": "^2.0.1" 1705 | }, 1706 | "engines": { 1707 | "node": ">=16 || 14 >=14.17" 1708 | }, 1709 | "funding": { 1710 | "url": "https://github.com/sponsors/isaacs" 1711 | } 1712 | }, 1713 | "node_modules/globals": { 1714 | "version": "14.0.0", 1715 | "resolved": "https://registry.npmjs.org/globals/-/globals-14.0.0.tgz", 1716 | "integrity": "sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==", 1717 | "dev": true, 1718 | "engines": { 1719 | "node": ">=18" 1720 | }, 1721 | "funding": { 1722 | "url": "https://github.com/sponsors/sindresorhus" 1723 | } 1724 | }, 1725 | "node_modules/gopd": { 1726 | "version": "1.2.0", 1727 | "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", 1728 | "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", 1729 | "license": "MIT", 1730 | "engines": { 1731 | "node": ">= 0.4" 1732 | }, 1733 | "funding": { 1734 | "url": "https://github.com/sponsors/ljharb" 1735 | } 1736 | }, 1737 | "node_modules/har-schema": { 1738 | "version": "2.0.0", 1739 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1740 | "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", 1741 | "dev": true, 1742 | "engines": { 1743 | "node": ">=4" 1744 | } 1745 | }, 1746 | "node_modules/har-validator": { 1747 | "version": "5.1.5", 1748 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", 1749 | "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", 1750 | "deprecated": "this library is no longer supported", 1751 | "dev": true, 1752 | "dependencies": { 1753 | "ajv": "^6.12.3", 1754 | "har-schema": "^2.0.0" 1755 | }, 1756 | "engines": { 1757 | "node": ">=6" 1758 | } 1759 | }, 1760 | "node_modules/has-flag": { 1761 | "version": "4.0.0", 1762 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1763 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1764 | "dev": true, 1765 | "engines": { 1766 | "node": ">=8" 1767 | } 1768 | }, 1769 | "node_modules/has-symbols": { 1770 | "version": "1.1.0", 1771 | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", 1772 | "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", 1773 | "license": "MIT", 1774 | "engines": { 1775 | "node": ">= 0.4" 1776 | }, 1777 | "funding": { 1778 | "url": "https://github.com/sponsors/ljharb" 1779 | } 1780 | }, 1781 | "node_modules/has-tostringtag": { 1782 | "version": "1.0.2", 1783 | "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", 1784 | "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", 1785 | "license": "MIT", 1786 | "dependencies": { 1787 | "has-symbols": "^1.0.3" 1788 | }, 1789 | "engines": { 1790 | "node": ">= 0.4" 1791 | }, 1792 | "funding": { 1793 | "url": "https://github.com/sponsors/ljharb" 1794 | } 1795 | }, 1796 | "node_modules/hasown": { 1797 | "version": "2.0.2", 1798 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1799 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1800 | "license": "MIT", 1801 | "dependencies": { 1802 | "function-bind": "^1.1.2" 1803 | }, 1804 | "engines": { 1805 | "node": ">= 0.4" 1806 | } 1807 | }, 1808 | "node_modules/he": { 1809 | "version": "1.2.0", 1810 | "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", 1811 | "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", 1812 | "dev": true, 1813 | "bin": { 1814 | "he": "bin/he" 1815 | } 1816 | }, 1817 | "node_modules/html-encoding-sniffer": { 1818 | "version": "3.0.0", 1819 | "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", 1820 | "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", 1821 | "dev": true, 1822 | "dependencies": { 1823 | "whatwg-encoding": "^2.0.0" 1824 | }, 1825 | "engines": { 1826 | "node": ">=12" 1827 | } 1828 | }, 1829 | "node_modules/html-escaper": { 1830 | "version": "2.0.2", 1831 | "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", 1832 | "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", 1833 | "dev": true 1834 | }, 1835 | "node_modules/http-proxy": { 1836 | "version": "1.18.1", 1837 | "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", 1838 | "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", 1839 | "dev": true, 1840 | "dependencies": { 1841 | "eventemitter3": "^4.0.0", 1842 | "follow-redirects": "^1.0.0", 1843 | "requires-port": "^1.0.0" 1844 | }, 1845 | "engines": { 1846 | "node": ">=8.0.0" 1847 | } 1848 | }, 1849 | "node_modules/http-server": { 1850 | "version": "14.1.1", 1851 | "resolved": "https://registry.npmjs.org/http-server/-/http-server-14.1.1.tgz", 1852 | "integrity": "sha512-+cbxadF40UXd9T01zUHgA+rlo2Bg1Srer4+B4NwIHdaGxAGGv59nYRnGGDJ9LBk7alpS0US+J+bLLdQOOkJq4A==", 1853 | "dev": true, 1854 | "dependencies": { 1855 | "basic-auth": "^2.0.1", 1856 | "chalk": "^4.1.2", 1857 | "corser": "^2.0.1", 1858 | "he": "^1.2.0", 1859 | "html-encoding-sniffer": "^3.0.0", 1860 | "http-proxy": "^1.18.1", 1861 | "mime": "^1.6.0", 1862 | "minimist": "^1.2.6", 1863 | "opener": "^1.5.1", 1864 | "portfinder": "^1.0.28", 1865 | "secure-compare": "3.0.1", 1866 | "union": "~0.5.0", 1867 | "url-join": "^4.0.1" 1868 | }, 1869 | "bin": { 1870 | "http-server": "bin/http-server" 1871 | }, 1872 | "engines": { 1873 | "node": ">=12" 1874 | } 1875 | }, 1876 | "node_modules/http-signature": { 1877 | "version": "1.2.0", 1878 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1879 | "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", 1880 | "dev": true, 1881 | "dependencies": { 1882 | "assert-plus": "^1.0.0", 1883 | "jsprim": "^1.2.2", 1884 | "sshpk": "^1.7.0" 1885 | }, 1886 | "engines": { 1887 | "node": ">=0.8", 1888 | "npm": ">=1.3.7" 1889 | } 1890 | }, 1891 | "node_modules/iconv-lite": { 1892 | "version": "0.6.3", 1893 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", 1894 | "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", 1895 | "dev": true, 1896 | "dependencies": { 1897 | "safer-buffer": ">= 2.1.2 < 3.0.0" 1898 | }, 1899 | "engines": { 1900 | "node": ">=0.10.0" 1901 | } 1902 | }, 1903 | "node_modules/ignore": { 1904 | "version": "5.3.1", 1905 | "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz", 1906 | "integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==", 1907 | "dev": true, 1908 | "engines": { 1909 | "node": ">= 4" 1910 | } 1911 | }, 1912 | "node_modules/import-fresh": { 1913 | "version": "3.3.0", 1914 | "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz", 1915 | "integrity": "sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw==", 1916 | "dev": true, 1917 | "dependencies": { 1918 | "parent-module": "^1.0.0", 1919 | "resolve-from": "^4.0.0" 1920 | }, 1921 | "engines": { 1922 | "node": ">=6" 1923 | }, 1924 | "funding": { 1925 | "url": "https://github.com/sponsors/sindresorhus" 1926 | } 1927 | }, 1928 | "node_modules/import-fresh/node_modules/resolve-from": { 1929 | "version": "4.0.0", 1930 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", 1931 | "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", 1932 | "dev": true, 1933 | "engines": { 1934 | "node": ">=4" 1935 | } 1936 | }, 1937 | "node_modules/imurmurhash": { 1938 | "version": "0.1.4", 1939 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1940 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1941 | "dev": true, 1942 | "engines": { 1943 | "node": ">=0.8.19" 1944 | } 1945 | }, 1946 | "node_modules/ip-regex": { 1947 | "version": "5.0.0", 1948 | "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-5.0.0.tgz", 1949 | "integrity": "sha512-fOCG6lhoKKakwv+C6KdsOnGvgXnmgfmp0myi3bcNwj3qfwPAxRKWEuFhvEFF7ceYIz6+1jRZ+yguLFAmUNPEfw==", 1950 | "engines": { 1951 | "node": "^12.20.0 || ^14.13.1 || >=16.0.0" 1952 | }, 1953 | "funding": { 1954 | "url": "https://github.com/sponsors/sindresorhus" 1955 | } 1956 | }, 1957 | "node_modules/is-extglob": { 1958 | "version": "2.1.1", 1959 | "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", 1960 | "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", 1961 | "dev": true, 1962 | "engines": { 1963 | "node": ">=0.10.0" 1964 | } 1965 | }, 1966 | "node_modules/is-fullwidth-code-point": { 1967 | "version": "3.0.0", 1968 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1969 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1970 | "dev": true, 1971 | "engines": { 1972 | "node": ">=8" 1973 | } 1974 | }, 1975 | "node_modules/is-glob": { 1976 | "version": "4.0.3", 1977 | "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", 1978 | "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", 1979 | "dev": true, 1980 | "dependencies": { 1981 | "is-extglob": "^2.1.1" 1982 | }, 1983 | "engines": { 1984 | "node": ">=0.10.0" 1985 | } 1986 | }, 1987 | "node_modules/is-ip": { 1988 | "version": "5.0.1", 1989 | "resolved": "https://registry.npmjs.org/is-ip/-/is-ip-5.0.1.tgz", 1990 | "integrity": "sha512-FCsGHdlrOnZQcp0+XT5a+pYowf33itBalCl+7ovNXC/7o5BhIpG14M3OrpPPdBSIQJCm+0M5+9mO7S9VVTTCFw==", 1991 | "dependencies": { 1992 | "ip-regex": "^5.0.0", 1993 | "super-regex": "^0.2.0" 1994 | }, 1995 | "engines": { 1996 | "node": ">=14.16" 1997 | }, 1998 | "funding": { 1999 | "url": "https://github.com/sponsors/sindresorhus" 2000 | } 2001 | }, 2002 | "node_modules/is-plain-obj": { 2003 | "version": "2.1.0", 2004 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", 2005 | "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", 2006 | "dev": true, 2007 | "engines": { 2008 | "node": ">=8" 2009 | } 2010 | }, 2011 | "node_modules/is-regexp": { 2012 | "version": "3.1.0", 2013 | "resolved": "https://registry.npmjs.org/is-regexp/-/is-regexp-3.1.0.tgz", 2014 | "integrity": "sha512-rbku49cWloU5bSMI+zaRaXdQHXnthP6DZ/vLnfdSKyL4zUzuWnomtOEiZZOd+ioQ+avFo/qau3KPTc7Fjy1uPA==", 2015 | "engines": { 2016 | "node": ">=12" 2017 | }, 2018 | "funding": { 2019 | "url": "https://github.com/sponsors/sindresorhus" 2020 | } 2021 | }, 2022 | "node_modules/is-typedarray": { 2023 | "version": "1.0.0", 2024 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 2025 | "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==", 2026 | "dev": true 2027 | }, 2028 | "node_modules/is-unicode-supported": { 2029 | "version": "0.1.0", 2030 | "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", 2031 | "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", 2032 | "dev": true, 2033 | "engines": { 2034 | "node": ">=10" 2035 | }, 2036 | "funding": { 2037 | "url": "https://github.com/sponsors/sindresorhus" 2038 | } 2039 | }, 2040 | "node_modules/isexe": { 2041 | "version": "2.0.0", 2042 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2043 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 2044 | "dev": true 2045 | }, 2046 | "node_modules/isstream": { 2047 | "version": "0.1.2", 2048 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 2049 | "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==", 2050 | "dev": true 2051 | }, 2052 | "node_modules/istanbul-lib-coverage": { 2053 | "version": "3.2.2", 2054 | "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", 2055 | "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", 2056 | "dev": true, 2057 | "license": "BSD-3-Clause", 2058 | "engines": { 2059 | "node": ">=8" 2060 | } 2061 | }, 2062 | "node_modules/istanbul-lib-report": { 2063 | "version": "3.0.1", 2064 | "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", 2065 | "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", 2066 | "dev": true, 2067 | "dependencies": { 2068 | "istanbul-lib-coverage": "^3.0.0", 2069 | "make-dir": "^4.0.0", 2070 | "supports-color": "^7.1.0" 2071 | }, 2072 | "engines": { 2073 | "node": ">=10" 2074 | } 2075 | }, 2076 | "node_modules/istanbul-lib-report/node_modules/make-dir": { 2077 | "version": "4.0.0", 2078 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", 2079 | "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", 2080 | "dev": true, 2081 | "dependencies": { 2082 | "semver": "^7.5.3" 2083 | }, 2084 | "engines": { 2085 | "node": ">=10" 2086 | }, 2087 | "funding": { 2088 | "url": "https://github.com/sponsors/sindresorhus" 2089 | } 2090 | }, 2091 | "node_modules/istanbul-reports": { 2092 | "version": "3.1.7", 2093 | "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", 2094 | "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", 2095 | "dev": true, 2096 | "dependencies": { 2097 | "html-escaper": "^2.0.0", 2098 | "istanbul-lib-report": "^3.0.0" 2099 | }, 2100 | "engines": { 2101 | "node": ">=8" 2102 | } 2103 | }, 2104 | "node_modules/jackspeak": { 2105 | "version": "3.4.3", 2106 | "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz", 2107 | "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==", 2108 | "dev": true, 2109 | "license": "BlueOak-1.0.0", 2110 | "dependencies": { 2111 | "@isaacs/cliui": "^8.0.2" 2112 | }, 2113 | "funding": { 2114 | "url": "https://github.com/sponsors/isaacs" 2115 | }, 2116 | "optionalDependencies": { 2117 | "@pkgjs/parseargs": "^0.11.0" 2118 | } 2119 | }, 2120 | "node_modules/js-yaml": { 2121 | "version": "3.14.1", 2122 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 2123 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 2124 | "dev": true, 2125 | "dependencies": { 2126 | "argparse": "^1.0.7", 2127 | "esprima": "^4.0.0" 2128 | }, 2129 | "bin": { 2130 | "js-yaml": "bin/js-yaml.js" 2131 | } 2132 | }, 2133 | "node_modules/jsbn": { 2134 | "version": "0.1.1", 2135 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 2136 | "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==", 2137 | "dev": true 2138 | }, 2139 | "node_modules/json-buffer": { 2140 | "version": "3.0.1", 2141 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", 2142 | "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==", 2143 | "dev": true 2144 | }, 2145 | "node_modules/json-parse-even-better-errors": { 2146 | "version": "4.0.0", 2147 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-4.0.0.tgz", 2148 | "integrity": "sha512-lR4MXjGNgkJc7tkQ97kb2nuEMnNCyU//XYVH0MKTGcXEiSudQ5MKGKen3C5QubYy0vmq+JGitUg92uuywGEwIA==", 2149 | "dev": true, 2150 | "license": "MIT", 2151 | "engines": { 2152 | "node": "^18.17.0 || >=20.5.0" 2153 | } 2154 | }, 2155 | "node_modules/json-schema": { 2156 | "version": "0.4.0", 2157 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", 2158 | "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==", 2159 | "dev": true 2160 | }, 2161 | "node_modules/json-schema-traverse": { 2162 | "version": "0.4.1", 2163 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 2164 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 2165 | "dev": true 2166 | }, 2167 | "node_modules/json-stable-stringify-without-jsonify": { 2168 | "version": "1.0.1", 2169 | "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", 2170 | "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", 2171 | "dev": true 2172 | }, 2173 | "node_modules/json-stringify-safe": { 2174 | "version": "5.0.1", 2175 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 2176 | "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", 2177 | "dev": true 2178 | }, 2179 | "node_modules/jsprim": { 2180 | "version": "1.4.2", 2181 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", 2182 | "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", 2183 | "dev": true, 2184 | "dependencies": { 2185 | "assert-plus": "1.0.0", 2186 | "extsprintf": "1.3.0", 2187 | "json-schema": "0.4.0", 2188 | "verror": "1.10.0" 2189 | }, 2190 | "engines": { 2191 | "node": ">=0.6.0" 2192 | } 2193 | }, 2194 | "node_modules/keyv": { 2195 | "version": "4.5.4", 2196 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz", 2197 | "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==", 2198 | "dev": true, 2199 | "dependencies": { 2200 | "json-buffer": "3.0.1" 2201 | } 2202 | }, 2203 | "node_modules/lcov-parse": { 2204 | "version": "1.0.0", 2205 | "resolved": "https://registry.npmjs.org/lcov-parse/-/lcov-parse-1.0.0.tgz", 2206 | "integrity": "sha512-aprLII/vPzuQvYZnDRU78Fns9I2Ag3gi4Ipga/hxnVMCZC8DnR2nI7XBqrPoywGfxqIx/DgarGvDJZAD3YBTgQ==", 2207 | "dev": true, 2208 | "bin": { 2209 | "lcov-parse": "bin/cli.js" 2210 | } 2211 | }, 2212 | "node_modules/levn": { 2213 | "version": "0.4.1", 2214 | "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz", 2215 | "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==", 2216 | "dev": true, 2217 | "dependencies": { 2218 | "prelude-ls": "^1.2.1", 2219 | "type-check": "~0.4.0" 2220 | }, 2221 | "engines": { 2222 | "node": ">= 0.8.0" 2223 | } 2224 | }, 2225 | "node_modules/locate-path": { 2226 | "version": "6.0.0", 2227 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", 2228 | "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", 2229 | "dev": true, 2230 | "dependencies": { 2231 | "p-locate": "^5.0.0" 2232 | }, 2233 | "engines": { 2234 | "node": ">=10" 2235 | }, 2236 | "funding": { 2237 | "url": "https://github.com/sponsors/sindresorhus" 2238 | } 2239 | }, 2240 | "node_modules/lodash": { 2241 | "version": "4.17.21", 2242 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 2243 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", 2244 | "dev": true 2245 | }, 2246 | "node_modules/lodash.merge": { 2247 | "version": "4.6.2", 2248 | "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", 2249 | "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==", 2250 | "dev": true 2251 | }, 2252 | "node_modules/log-driver": { 2253 | "version": "1.2.7", 2254 | "resolved": "https://registry.npmjs.org/log-driver/-/log-driver-1.2.7.tgz", 2255 | "integrity": "sha512-U7KCmLdqsGHBLeWqYlFA0V0Sl6P08EE1ZrmA9cxjUE0WVqT9qnyVDPz1kzpFEP0jdJuFnasWIfSd7fsaNXkpbg==", 2256 | "dev": true, 2257 | "engines": { 2258 | "node": ">=0.8.6" 2259 | } 2260 | }, 2261 | "node_modules/log-symbols": { 2262 | "version": "4.1.0", 2263 | "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", 2264 | "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", 2265 | "dev": true, 2266 | "dependencies": { 2267 | "chalk": "^4.1.0", 2268 | "is-unicode-supported": "^0.1.0" 2269 | }, 2270 | "engines": { 2271 | "node": ">=10" 2272 | }, 2273 | "funding": { 2274 | "url": "https://github.com/sponsors/sindresorhus" 2275 | } 2276 | }, 2277 | "node_modules/loupe": { 2278 | "version": "3.1.0", 2279 | "resolved": "https://registry.npmjs.org/loupe/-/loupe-3.1.0.tgz", 2280 | "integrity": "sha512-qKl+FrLXUhFuHUoDJG7f8P8gEMHq9NFS0c6ghXG1J0rldmZFQZoNVv/vyirE9qwCIhWZDsvEFd1sbFu3GvRQFg==", 2281 | "dev": true, 2282 | "dependencies": { 2283 | "get-func-name": "^2.0.1" 2284 | } 2285 | }, 2286 | "node_modules/lru-cache": { 2287 | "version": "10.4.3", 2288 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz", 2289 | "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==", 2290 | "dev": true, 2291 | "license": "ISC" 2292 | }, 2293 | "node_modules/math-intrinsics": { 2294 | "version": "1.1.0", 2295 | "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", 2296 | "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", 2297 | "license": "MIT", 2298 | "engines": { 2299 | "node": ">= 0.4" 2300 | } 2301 | }, 2302 | "node_modules/memorystream": { 2303 | "version": "0.3.1", 2304 | "resolved": "https://registry.npmjs.org/memorystream/-/memorystream-0.3.1.tgz", 2305 | "integrity": "sha512-S3UwM3yj5mtUSEfP41UZmt/0SCoVYUcU1rkXv+BQ5Ig8ndL4sPoJNBUJERafdPb5jjHJGuMgytgKvKIf58XNBw==", 2306 | "dev": true, 2307 | "engines": { 2308 | "node": ">= 0.10.0" 2309 | } 2310 | }, 2311 | "node_modules/methods": { 2312 | "version": "1.1.2", 2313 | "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", 2314 | "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", 2315 | "engines": { 2316 | "node": ">= 0.6" 2317 | } 2318 | }, 2319 | "node_modules/mime": { 2320 | "version": "1.6.0", 2321 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 2322 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 2323 | "dev": true, 2324 | "bin": { 2325 | "mime": "cli.js" 2326 | }, 2327 | "engines": { 2328 | "node": ">=4" 2329 | } 2330 | }, 2331 | "node_modules/mime-db": { 2332 | "version": "1.52.0", 2333 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", 2334 | "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", 2335 | "engines": { 2336 | "node": ">= 0.6" 2337 | } 2338 | }, 2339 | "node_modules/mime-types": { 2340 | "version": "2.1.35", 2341 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", 2342 | "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", 2343 | "dependencies": { 2344 | "mime-db": "1.52.0" 2345 | }, 2346 | "engines": { 2347 | "node": ">= 0.6" 2348 | } 2349 | }, 2350 | "node_modules/minimatch": { 2351 | "version": "3.1.2", 2352 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2353 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2354 | "dev": true, 2355 | "dependencies": { 2356 | "brace-expansion": "^1.1.7" 2357 | }, 2358 | "engines": { 2359 | "node": "*" 2360 | } 2361 | }, 2362 | "node_modules/minimist": { 2363 | "version": "1.2.8", 2364 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 2365 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 2366 | "dev": true, 2367 | "funding": { 2368 | "url": "https://github.com/sponsors/ljharb" 2369 | } 2370 | }, 2371 | "node_modules/minipass": { 2372 | "version": "7.1.2", 2373 | "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz", 2374 | "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==", 2375 | "dev": true, 2376 | "license": "ISC", 2377 | "engines": { 2378 | "node": ">=16 || 14 >=14.17" 2379 | } 2380 | }, 2381 | "node_modules/mkdirp": { 2382 | "version": "0.5.6", 2383 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 2384 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 2385 | "dev": true, 2386 | "dependencies": { 2387 | "minimist": "^1.2.6" 2388 | }, 2389 | "bin": { 2390 | "mkdirp": "bin/cmd.js" 2391 | } 2392 | }, 2393 | "node_modules/mocha": { 2394 | "version": "11.5.0", 2395 | "resolved": "https://registry.npmjs.org/mocha/-/mocha-11.5.0.tgz", 2396 | "integrity": "sha512-VKDjhy6LMTKm0WgNEdlY77YVsD49LZnPSXJAaPNL9NRYQADxvORsyG1DIQY6v53BKTnlNbEE2MbVCDbnxr4K3w==", 2397 | "dev": true, 2398 | "license": "MIT", 2399 | "dependencies": { 2400 | "browser-stdout": "^1.3.1", 2401 | "chokidar": "^4.0.1", 2402 | "debug": "^4.3.5", 2403 | "diff": "^7.0.0", 2404 | "escape-string-regexp": "^4.0.0", 2405 | "find-up": "^5.0.0", 2406 | "glob": "^10.4.5", 2407 | "he": "^1.2.0", 2408 | "js-yaml": "^4.1.0", 2409 | "log-symbols": "^4.1.0", 2410 | "minimatch": "^9.0.5", 2411 | "ms": "^2.1.3", 2412 | "picocolors": "^1.1.1", 2413 | "serialize-javascript": "^6.0.2", 2414 | "strip-json-comments": "^3.1.1", 2415 | "supports-color": "^8.1.1", 2416 | "workerpool": "^6.5.1", 2417 | "yargs": "^17.7.2", 2418 | "yargs-parser": "^21.1.1", 2419 | "yargs-unparser": "^2.0.0" 2420 | }, 2421 | "bin": { 2422 | "_mocha": "bin/_mocha", 2423 | "mocha": "bin/mocha.js" 2424 | }, 2425 | "engines": { 2426 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 2427 | } 2428 | }, 2429 | "node_modules/mocha/node_modules/argparse": { 2430 | "version": "2.0.1", 2431 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", 2432 | "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", 2433 | "dev": true, 2434 | "license": "Python-2.0" 2435 | }, 2436 | "node_modules/mocha/node_modules/brace-expansion": { 2437 | "version": "2.0.1", 2438 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 2439 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 2440 | "dev": true, 2441 | "license": "MIT", 2442 | "dependencies": { 2443 | "balanced-match": "^1.0.0" 2444 | } 2445 | }, 2446 | "node_modules/mocha/node_modules/js-yaml": { 2447 | "version": "4.1.0", 2448 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", 2449 | "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", 2450 | "dev": true, 2451 | "license": "MIT", 2452 | "dependencies": { 2453 | "argparse": "^2.0.1" 2454 | }, 2455 | "bin": { 2456 | "js-yaml": "bin/js-yaml.js" 2457 | } 2458 | }, 2459 | "node_modules/mocha/node_modules/minimatch": { 2460 | "version": "9.0.5", 2461 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", 2462 | "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", 2463 | "dev": true, 2464 | "license": "ISC", 2465 | "dependencies": { 2466 | "brace-expansion": "^2.0.1" 2467 | }, 2468 | "engines": { 2469 | "node": ">=16 || 14 >=14.17" 2470 | }, 2471 | "funding": { 2472 | "url": "https://github.com/sponsors/isaacs" 2473 | } 2474 | }, 2475 | "node_modules/mocha/node_modules/supports-color": { 2476 | "version": "8.1.1", 2477 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 2478 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 2479 | "dev": true, 2480 | "license": "MIT", 2481 | "dependencies": { 2482 | "has-flag": "^4.0.0" 2483 | }, 2484 | "engines": { 2485 | "node": ">=10" 2486 | }, 2487 | "funding": { 2488 | "url": "https://github.com/chalk/supports-color?sponsor=1" 2489 | } 2490 | }, 2491 | "node_modules/ms": { 2492 | "version": "2.1.3", 2493 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2494 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2495 | "license": "MIT" 2496 | }, 2497 | "node_modules/natural-compare": { 2498 | "version": "1.4.0", 2499 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 2500 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 2501 | "dev": true 2502 | }, 2503 | "node_modules/npm-normalize-package-bin": { 2504 | "version": "4.0.0", 2505 | "resolved": "https://registry.npmjs.org/npm-normalize-package-bin/-/npm-normalize-package-bin-4.0.0.tgz", 2506 | "integrity": "sha512-TZKxPvItzai9kN9H/TkmCtx/ZN/hvr3vUycjlfmH0ootY9yFBzNOpiXAdIn1Iteqsvk4lQn6B5PTrt+n6h8k/w==", 2507 | "dev": true, 2508 | "license": "ISC", 2509 | "engines": { 2510 | "node": "^18.17.0 || >=20.5.0" 2511 | } 2512 | }, 2513 | "node_modules/npm-run-all2": { 2514 | "version": "8.0.4", 2515 | "resolved": "https://registry.npmjs.org/npm-run-all2/-/npm-run-all2-8.0.4.tgz", 2516 | "integrity": "sha512-wdbB5My48XKp2ZfJUlhnLVihzeuA1hgBnqB2J9ahV77wLS+/YAJAlN8I+X3DIFIPZ3m5L7nplmlbhNiFDmXRDA==", 2517 | "dev": true, 2518 | "license": "MIT", 2519 | "dependencies": { 2520 | "ansi-styles": "^6.2.1", 2521 | "cross-spawn": "^7.0.6", 2522 | "memorystream": "^0.3.1", 2523 | "picomatch": "^4.0.2", 2524 | "pidtree": "^0.6.0", 2525 | "read-package-json-fast": "^4.0.0", 2526 | "shell-quote": "^1.7.3", 2527 | "which": "^5.0.0" 2528 | }, 2529 | "bin": { 2530 | "npm-run-all": "bin/npm-run-all/index.js", 2531 | "npm-run-all2": "bin/npm-run-all/index.js", 2532 | "run-p": "bin/run-p/index.js", 2533 | "run-s": "bin/run-s/index.js" 2534 | }, 2535 | "engines": { 2536 | "node": "^20.5.0 || >=22.0.0", 2537 | "npm": ">= 10" 2538 | } 2539 | }, 2540 | "node_modules/npm-run-all2/node_modules/ansi-styles": { 2541 | "version": "6.2.1", 2542 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", 2543 | "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", 2544 | "dev": true, 2545 | "license": "MIT", 2546 | "engines": { 2547 | "node": ">=12" 2548 | }, 2549 | "funding": { 2550 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2551 | } 2552 | }, 2553 | "node_modules/npm-run-all2/node_modules/isexe": { 2554 | "version": "3.1.1", 2555 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-3.1.1.tgz", 2556 | "integrity": "sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ==", 2557 | "dev": true, 2558 | "license": "ISC", 2559 | "engines": { 2560 | "node": ">=16" 2561 | } 2562 | }, 2563 | "node_modules/npm-run-all2/node_modules/which": { 2564 | "version": "5.0.0", 2565 | "resolved": "https://registry.npmjs.org/which/-/which-5.0.0.tgz", 2566 | "integrity": "sha512-JEdGzHwwkrbWoGOlIHqQ5gtprKGOenpDHpxE9zVR1bWbOtYRyPPHMe9FaP6x61CmNaTThSkb0DAJte5jD+DmzQ==", 2567 | "dev": true, 2568 | "license": "ISC", 2569 | "dependencies": { 2570 | "isexe": "^3.1.1" 2571 | }, 2572 | "bin": { 2573 | "node-which": "bin/which.js" 2574 | }, 2575 | "engines": { 2576 | "node": "^18.17.0 || >=20.5.0" 2577 | } 2578 | }, 2579 | "node_modules/oauth-sign": { 2580 | "version": "0.9.0", 2581 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 2582 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", 2583 | "dev": true, 2584 | "engines": { 2585 | "node": "*" 2586 | } 2587 | }, 2588 | "node_modules/object-inspect": { 2589 | "version": "1.13.4", 2590 | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", 2591 | "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", 2592 | "license": "MIT", 2593 | "engines": { 2594 | "node": ">= 0.4" 2595 | }, 2596 | "funding": { 2597 | "url": "https://github.com/sponsors/ljharb" 2598 | } 2599 | }, 2600 | "node_modules/once": { 2601 | "version": "1.4.0", 2602 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2603 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 2604 | "dependencies": { 2605 | "wrappy": "1" 2606 | } 2607 | }, 2608 | "node_modules/opener": { 2609 | "version": "1.5.2", 2610 | "resolved": "https://registry.npmjs.org/opener/-/opener-1.5.2.tgz", 2611 | "integrity": "sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==", 2612 | "dev": true, 2613 | "bin": { 2614 | "opener": "bin/opener-bin.js" 2615 | } 2616 | }, 2617 | "node_modules/optionator": { 2618 | "version": "0.9.4", 2619 | "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", 2620 | "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", 2621 | "dev": true, 2622 | "dependencies": { 2623 | "deep-is": "^0.1.3", 2624 | "fast-levenshtein": "^2.0.6", 2625 | "levn": "^0.4.1", 2626 | "prelude-ls": "^1.2.1", 2627 | "type-check": "^0.4.0", 2628 | "word-wrap": "^1.2.5" 2629 | }, 2630 | "engines": { 2631 | "node": ">= 0.8.0" 2632 | } 2633 | }, 2634 | "node_modules/p-limit": { 2635 | "version": "3.1.0", 2636 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2637 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2638 | "dev": true, 2639 | "dependencies": { 2640 | "yocto-queue": "^0.1.0" 2641 | }, 2642 | "engines": { 2643 | "node": ">=10" 2644 | }, 2645 | "funding": { 2646 | "url": "https://github.com/sponsors/sindresorhus" 2647 | } 2648 | }, 2649 | "node_modules/p-locate": { 2650 | "version": "5.0.0", 2651 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", 2652 | "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", 2653 | "dev": true, 2654 | "dependencies": { 2655 | "p-limit": "^3.0.2" 2656 | }, 2657 | "engines": { 2658 | "node": ">=10" 2659 | }, 2660 | "funding": { 2661 | "url": "https://github.com/sponsors/sindresorhus" 2662 | } 2663 | }, 2664 | "node_modules/package-json-from-dist": { 2665 | "version": "1.0.1", 2666 | "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", 2667 | "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==", 2668 | "dev": true, 2669 | "license": "BlueOak-1.0.0" 2670 | }, 2671 | "node_modules/parent-module": { 2672 | "version": "1.0.1", 2673 | "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", 2674 | "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", 2675 | "dev": true, 2676 | "dependencies": { 2677 | "callsites": "^3.0.0" 2678 | }, 2679 | "engines": { 2680 | "node": ">=6" 2681 | } 2682 | }, 2683 | "node_modules/path-exists": { 2684 | "version": "4.0.0", 2685 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 2686 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 2687 | "dev": true, 2688 | "engines": { 2689 | "node": ">=8" 2690 | } 2691 | }, 2692 | "node_modules/path-key": { 2693 | "version": "3.1.1", 2694 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 2695 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 2696 | "dev": true, 2697 | "engines": { 2698 | "node": ">=8" 2699 | } 2700 | }, 2701 | "node_modules/path-scurry": { 2702 | "version": "1.11.1", 2703 | "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz", 2704 | "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==", 2705 | "dev": true, 2706 | "license": "BlueOak-1.0.0", 2707 | "dependencies": { 2708 | "lru-cache": "^10.2.0", 2709 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 2710 | }, 2711 | "engines": { 2712 | "node": ">=16 || 14 >=14.18" 2713 | }, 2714 | "funding": { 2715 | "url": "https://github.com/sponsors/isaacs" 2716 | } 2717 | }, 2718 | "node_modules/pathval": { 2719 | "version": "2.0.0", 2720 | "resolved": "https://registry.npmjs.org/pathval/-/pathval-2.0.0.tgz", 2721 | "integrity": "sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==", 2722 | "dev": true, 2723 | "engines": { 2724 | "node": ">= 14.16" 2725 | } 2726 | }, 2727 | "node_modules/performance-now": { 2728 | "version": "2.1.0", 2729 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 2730 | "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==", 2731 | "dev": true 2732 | }, 2733 | "node_modules/picocolors": { 2734 | "version": "1.1.1", 2735 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 2736 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 2737 | "dev": true, 2738 | "license": "ISC" 2739 | }, 2740 | "node_modules/picomatch": { 2741 | "version": "4.0.2", 2742 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.2.tgz", 2743 | "integrity": "sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==", 2744 | "dev": true, 2745 | "license": "MIT", 2746 | "engines": { 2747 | "node": ">=12" 2748 | }, 2749 | "funding": { 2750 | "url": "https://github.com/sponsors/jonschlinkert" 2751 | } 2752 | }, 2753 | "node_modules/pidtree": { 2754 | "version": "0.6.0", 2755 | "resolved": "https://registry.npmjs.org/pidtree/-/pidtree-0.6.0.tgz", 2756 | "integrity": "sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==", 2757 | "dev": true, 2758 | "bin": { 2759 | "pidtree": "bin/pidtree.js" 2760 | }, 2761 | "engines": { 2762 | "node": ">=0.10" 2763 | } 2764 | }, 2765 | "node_modules/polka": { 2766 | "version": "1.0.0-next.28", 2767 | "resolved": "https://registry.npmjs.org/polka/-/polka-1.0.0-next.28.tgz", 2768 | "integrity": "sha512-ryc8D/B5E/YnlWHkNMnRvNntPc4GwU1/+iDBjiXVz1SUjDRqlxYX5Ic0IaDLA/cQ+g7/x+jUzEjv2K16u1J+wA==", 2769 | "dev": true, 2770 | "license": "MIT", 2771 | "dependencies": { 2772 | "@polka/url": "^1.0.0-next.21", 2773 | "trouter": "^4.0.0" 2774 | }, 2775 | "engines": { 2776 | "node": ">=8" 2777 | } 2778 | }, 2779 | "node_modules/portfinder": { 2780 | "version": "1.0.32", 2781 | "resolved": "https://registry.npmjs.org/portfinder/-/portfinder-1.0.32.tgz", 2782 | "integrity": "sha512-on2ZJVVDXRADWE6jnQaX0ioEylzgBpQk8r55NE4wjXW1ZxO+BgDlY6DXwj20i0V8eB4SenDQ00WEaxfiIQPcxg==", 2783 | "dev": true, 2784 | "dependencies": { 2785 | "async": "^2.6.4", 2786 | "debug": "^3.2.7", 2787 | "mkdirp": "^0.5.6" 2788 | }, 2789 | "engines": { 2790 | "node": ">= 0.12.0" 2791 | } 2792 | }, 2793 | "node_modules/portfinder/node_modules/debug": { 2794 | "version": "3.2.7", 2795 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.7.tgz", 2796 | "integrity": "sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==", 2797 | "dev": true, 2798 | "dependencies": { 2799 | "ms": "^2.1.1" 2800 | } 2801 | }, 2802 | "node_modules/prelude-ls": { 2803 | "version": "1.2.1", 2804 | "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz", 2805 | "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==", 2806 | "dev": true, 2807 | "engines": { 2808 | "node": ">= 0.8.0" 2809 | } 2810 | }, 2811 | "node_modules/prettier": { 2812 | "version": "3.5.3", 2813 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", 2814 | "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", 2815 | "dev": true, 2816 | "license": "MIT", 2817 | "bin": { 2818 | "prettier": "bin/prettier.cjs" 2819 | }, 2820 | "engines": { 2821 | "node": ">=14" 2822 | }, 2823 | "funding": { 2824 | "url": "https://github.com/prettier/prettier?sponsor=1" 2825 | } 2826 | }, 2827 | "node_modules/psl": { 2828 | "version": "1.9.0", 2829 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", 2830 | "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", 2831 | "dev": true 2832 | }, 2833 | "node_modules/qs": { 2834 | "version": "6.14.0", 2835 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", 2836 | "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", 2837 | "license": "BSD-3-Clause", 2838 | "dependencies": { 2839 | "side-channel": "^1.1.0" 2840 | }, 2841 | "engines": { 2842 | "node": ">=0.6" 2843 | }, 2844 | "funding": { 2845 | "url": "https://github.com/sponsors/ljharb" 2846 | } 2847 | }, 2848 | "node_modules/randombytes": { 2849 | "version": "2.1.0", 2850 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 2851 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 2852 | "dev": true, 2853 | "dependencies": { 2854 | "safe-buffer": "^5.1.0" 2855 | } 2856 | }, 2857 | "node_modules/read-package-json-fast": { 2858 | "version": "4.0.0", 2859 | "resolved": "https://registry.npmjs.org/read-package-json-fast/-/read-package-json-fast-4.0.0.tgz", 2860 | "integrity": "sha512-qpt8EwugBWDw2cgE2W+/3oxC+KTez2uSVR8JU9Q36TXPAGCaozfQUs59v4j4GFpWTaw0i6hAZSvOmu1J0uOEUg==", 2861 | "dev": true, 2862 | "license": "ISC", 2863 | "dependencies": { 2864 | "json-parse-even-better-errors": "^4.0.0", 2865 | "npm-normalize-package-bin": "^4.0.0" 2866 | }, 2867 | "engines": { 2868 | "node": "^18.17.0 || >=20.5.0" 2869 | } 2870 | }, 2871 | "node_modules/readdirp": { 2872 | "version": "4.1.2", 2873 | "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz", 2874 | "integrity": "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==", 2875 | "dev": true, 2876 | "license": "MIT", 2877 | "engines": { 2878 | "node": ">= 14.18.0" 2879 | }, 2880 | "funding": { 2881 | "type": "individual", 2882 | "url": "https://paulmillr.com/funding/" 2883 | } 2884 | }, 2885 | "node_modules/regexparam": { 2886 | "version": "3.0.0", 2887 | "resolved": "https://registry.npmjs.org/regexparam/-/regexparam-3.0.0.tgz", 2888 | "integrity": "sha512-RSYAtP31mvYLkAHrOlh25pCNQ5hWnT106VukGaaFfuJrZFkGRX5GhUAdPqpSDXxOhA2c4akmRuplv1mRqnBn6Q==", 2889 | "dev": true, 2890 | "license": "MIT", 2891 | "engines": { 2892 | "node": ">=8" 2893 | } 2894 | }, 2895 | "node_modules/request": { 2896 | "version": "2.88.2", 2897 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", 2898 | "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", 2899 | "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", 2900 | "dev": true, 2901 | "dependencies": { 2902 | "aws-sign2": "~0.7.0", 2903 | "aws4": "^1.8.0", 2904 | "caseless": "~0.12.0", 2905 | "combined-stream": "~1.0.6", 2906 | "extend": "~3.0.2", 2907 | "forever-agent": "~0.6.1", 2908 | "form-data": "~2.3.2", 2909 | "har-validator": "~5.1.3", 2910 | "http-signature": "~1.2.0", 2911 | "is-typedarray": "~1.0.0", 2912 | "isstream": "~0.1.2", 2913 | "json-stringify-safe": "~5.0.1", 2914 | "mime-types": "~2.1.19", 2915 | "oauth-sign": "~0.9.0", 2916 | "performance-now": "^2.1.0", 2917 | "qs": "~6.5.2", 2918 | "safe-buffer": "^5.1.2", 2919 | "tough-cookie": "~2.5.0", 2920 | "tunnel-agent": "^0.6.0", 2921 | "uuid": "^3.3.2" 2922 | }, 2923 | "engines": { 2924 | "node": ">= 6" 2925 | } 2926 | }, 2927 | "node_modules/request/node_modules/qs": { 2928 | "version": "6.5.3", 2929 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", 2930 | "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", 2931 | "dev": true, 2932 | "engines": { 2933 | "node": ">=0.6" 2934 | } 2935 | }, 2936 | "node_modules/request/node_modules/uuid": { 2937 | "version": "3.4.0", 2938 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 2939 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", 2940 | "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", 2941 | "dev": true, 2942 | "bin": { 2943 | "uuid": "bin/uuid" 2944 | } 2945 | }, 2946 | "node_modules/require-directory": { 2947 | "version": "2.1.1", 2948 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 2949 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 2950 | "dev": true, 2951 | "engines": { 2952 | "node": ">=0.10.0" 2953 | } 2954 | }, 2955 | "node_modules/requires-port": { 2956 | "version": "1.0.0", 2957 | "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", 2958 | "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", 2959 | "dev": true 2960 | }, 2961 | "node_modules/safe-buffer": { 2962 | "version": "5.2.1", 2963 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 2964 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 2965 | "dev": true, 2966 | "funding": [ 2967 | { 2968 | "type": "github", 2969 | "url": "https://github.com/sponsors/feross" 2970 | }, 2971 | { 2972 | "type": "patreon", 2973 | "url": "https://www.patreon.com/feross" 2974 | }, 2975 | { 2976 | "type": "consulting", 2977 | "url": "https://feross.org/support" 2978 | } 2979 | ] 2980 | }, 2981 | "node_modules/safer-buffer": { 2982 | "version": "2.1.2", 2983 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 2984 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 2985 | "dev": true 2986 | }, 2987 | "node_modules/secure-compare": { 2988 | "version": "3.0.1", 2989 | "resolved": "https://registry.npmjs.org/secure-compare/-/secure-compare-3.0.1.tgz", 2990 | "integrity": "sha512-AckIIV90rPDcBcglUwXPF3kg0P0qmPsPXAj6BBEENQE1p5yA1xfmDJzfi1Tappj37Pv2mVbKpL3Z1T+Nn7k1Qw==", 2991 | "dev": true 2992 | }, 2993 | "node_modules/semver": { 2994 | "version": "7.6.0", 2995 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", 2996 | "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", 2997 | "dev": true, 2998 | "dependencies": { 2999 | "lru-cache": "^6.0.0" 3000 | }, 3001 | "bin": { 3002 | "semver": "bin/semver.js" 3003 | }, 3004 | "engines": { 3005 | "node": ">=10" 3006 | } 3007 | }, 3008 | "node_modules/semver/node_modules/lru-cache": { 3009 | "version": "6.0.0", 3010 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", 3011 | "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", 3012 | "dev": true, 3013 | "dependencies": { 3014 | "yallist": "^4.0.0" 3015 | }, 3016 | "engines": { 3017 | "node": ">=10" 3018 | } 3019 | }, 3020 | "node_modules/semver/node_modules/yallist": { 3021 | "version": "4.0.0", 3022 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", 3023 | "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", 3024 | "dev": true 3025 | }, 3026 | "node_modules/serialize-javascript": { 3027 | "version": "6.0.2", 3028 | "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", 3029 | "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", 3030 | "dev": true, 3031 | "license": "BSD-3-Clause", 3032 | "dependencies": { 3033 | "randombytes": "^2.1.0" 3034 | } 3035 | }, 3036 | "node_modules/shebang-command": { 3037 | "version": "2.0.0", 3038 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 3039 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 3040 | "dev": true, 3041 | "dependencies": { 3042 | "shebang-regex": "^3.0.0" 3043 | }, 3044 | "engines": { 3045 | "node": ">=8" 3046 | } 3047 | }, 3048 | "node_modules/shebang-regex": { 3049 | "version": "3.0.0", 3050 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 3051 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 3052 | "dev": true, 3053 | "engines": { 3054 | "node": ">=8" 3055 | } 3056 | }, 3057 | "node_modules/shell-quote": { 3058 | "version": "1.8.1", 3059 | "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.1.tgz", 3060 | "integrity": "sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA==", 3061 | "dev": true, 3062 | "funding": { 3063 | "url": "https://github.com/sponsors/ljharb" 3064 | } 3065 | }, 3066 | "node_modules/side-channel": { 3067 | "version": "1.1.0", 3068 | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", 3069 | "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", 3070 | "license": "MIT", 3071 | "dependencies": { 3072 | "es-errors": "^1.3.0", 3073 | "object-inspect": "^1.13.3", 3074 | "side-channel-list": "^1.0.0", 3075 | "side-channel-map": "^1.0.1", 3076 | "side-channel-weakmap": "^1.0.2" 3077 | }, 3078 | "engines": { 3079 | "node": ">= 0.4" 3080 | }, 3081 | "funding": { 3082 | "url": "https://github.com/sponsors/ljharb" 3083 | } 3084 | }, 3085 | "node_modules/side-channel-list": { 3086 | "version": "1.0.0", 3087 | "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", 3088 | "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", 3089 | "license": "MIT", 3090 | "dependencies": { 3091 | "es-errors": "^1.3.0", 3092 | "object-inspect": "^1.13.3" 3093 | }, 3094 | "engines": { 3095 | "node": ">= 0.4" 3096 | }, 3097 | "funding": { 3098 | "url": "https://github.com/sponsors/ljharb" 3099 | } 3100 | }, 3101 | "node_modules/side-channel-map": { 3102 | "version": "1.0.1", 3103 | "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", 3104 | "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", 3105 | "license": "MIT", 3106 | "dependencies": { 3107 | "call-bound": "^1.0.2", 3108 | "es-errors": "^1.3.0", 3109 | "get-intrinsic": "^1.2.5", 3110 | "object-inspect": "^1.13.3" 3111 | }, 3112 | "engines": { 3113 | "node": ">= 0.4" 3114 | }, 3115 | "funding": { 3116 | "url": "https://github.com/sponsors/ljharb" 3117 | } 3118 | }, 3119 | "node_modules/side-channel-weakmap": { 3120 | "version": "1.0.2", 3121 | "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", 3122 | "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", 3123 | "license": "MIT", 3124 | "dependencies": { 3125 | "call-bound": "^1.0.2", 3126 | "es-errors": "^1.3.0", 3127 | "get-intrinsic": "^1.2.5", 3128 | "object-inspect": "^1.13.3", 3129 | "side-channel-map": "^1.0.1" 3130 | }, 3131 | "engines": { 3132 | "node": ">= 0.4" 3133 | }, 3134 | "funding": { 3135 | "url": "https://github.com/sponsors/ljharb" 3136 | } 3137 | }, 3138 | "node_modules/signal-exit": { 3139 | "version": "4.1.0", 3140 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", 3141 | "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", 3142 | "dev": true, 3143 | "license": "ISC", 3144 | "engines": { 3145 | "node": ">=14" 3146 | }, 3147 | "funding": { 3148 | "url": "https://github.com/sponsors/isaacs" 3149 | } 3150 | }, 3151 | "node_modules/sprintf-js": { 3152 | "version": "1.0.3", 3153 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 3154 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 3155 | "dev": true 3156 | }, 3157 | "node_modules/sshpk": { 3158 | "version": "1.18.0", 3159 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", 3160 | "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", 3161 | "dev": true, 3162 | "dependencies": { 3163 | "asn1": "~0.2.3", 3164 | "assert-plus": "^1.0.0", 3165 | "bcrypt-pbkdf": "^1.0.0", 3166 | "dashdash": "^1.12.0", 3167 | "ecc-jsbn": "~0.1.1", 3168 | "getpass": "^0.1.1", 3169 | "jsbn": "~0.1.0", 3170 | "safer-buffer": "^2.0.2", 3171 | "tweetnacl": "~0.14.0" 3172 | }, 3173 | "bin": { 3174 | "sshpk-conv": "bin/sshpk-conv", 3175 | "sshpk-sign": "bin/sshpk-sign", 3176 | "sshpk-verify": "bin/sshpk-verify" 3177 | }, 3178 | "engines": { 3179 | "node": ">=0.10.0" 3180 | } 3181 | }, 3182 | "node_modules/string-width": { 3183 | "version": "4.2.3", 3184 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 3185 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 3186 | "dev": true, 3187 | "dependencies": { 3188 | "emoji-regex": "^8.0.0", 3189 | "is-fullwidth-code-point": "^3.0.0", 3190 | "strip-ansi": "^6.0.1" 3191 | }, 3192 | "engines": { 3193 | "node": ">=8" 3194 | } 3195 | }, 3196 | "node_modules/string-width-cjs": { 3197 | "name": "string-width", 3198 | "version": "4.2.3", 3199 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 3200 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 3201 | "dev": true, 3202 | "license": "MIT", 3203 | "dependencies": { 3204 | "emoji-regex": "^8.0.0", 3205 | "is-fullwidth-code-point": "^3.0.0", 3206 | "strip-ansi": "^6.0.1" 3207 | }, 3208 | "engines": { 3209 | "node": ">=8" 3210 | } 3211 | }, 3212 | "node_modules/strip-ansi": { 3213 | "version": "6.0.1", 3214 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 3215 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 3216 | "dev": true, 3217 | "dependencies": { 3218 | "ansi-regex": "^5.0.1" 3219 | }, 3220 | "engines": { 3221 | "node": ">=8" 3222 | } 3223 | }, 3224 | "node_modules/strip-ansi-cjs": { 3225 | "name": "strip-ansi", 3226 | "version": "6.0.1", 3227 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 3228 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 3229 | "dev": true, 3230 | "license": "MIT", 3231 | "dependencies": { 3232 | "ansi-regex": "^5.0.1" 3233 | }, 3234 | "engines": { 3235 | "node": ">=8" 3236 | } 3237 | }, 3238 | "node_modules/strip-json-comments": { 3239 | "version": "3.1.1", 3240 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 3241 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 3242 | "dev": true, 3243 | "engines": { 3244 | "node": ">=8" 3245 | }, 3246 | "funding": { 3247 | "url": "https://github.com/sponsors/sindresorhus" 3248 | } 3249 | }, 3250 | "node_modules/super-regex": { 3251 | "version": "0.2.0", 3252 | "resolved": "https://registry.npmjs.org/super-regex/-/super-regex-0.2.0.tgz", 3253 | "integrity": "sha512-WZzIx3rC1CvbMDloLsVw0lkZVKJWbrkJ0k1ghKFmcnPrW1+jWbgTkTEWVtD9lMdmI4jZEz40+naBxl1dCUhXXw==", 3254 | "dependencies": { 3255 | "clone-regexp": "^3.0.0", 3256 | "function-timeout": "^0.1.0", 3257 | "time-span": "^5.1.0" 3258 | }, 3259 | "engines": { 3260 | "node": ">=14.16" 3261 | }, 3262 | "funding": { 3263 | "url": "https://github.com/sponsors/sindresorhus" 3264 | } 3265 | }, 3266 | "node_modules/superagent": { 3267 | "version": "10.2.1", 3268 | "resolved": "https://registry.npmjs.org/superagent/-/superagent-10.2.1.tgz", 3269 | "integrity": "sha512-O+PCv11lgTNJUzy49teNAWLjBZfc+A1enOwTpLlH6/rsvKcTwcdTT8m9azGkVqM7HBl5jpyZ7KTPhHweokBcdg==", 3270 | "license": "MIT", 3271 | "dependencies": { 3272 | "component-emitter": "^1.3.0", 3273 | "cookiejar": "^2.1.4", 3274 | "debug": "^4.3.4", 3275 | "fast-safe-stringify": "^2.1.1", 3276 | "form-data": "^4.0.0", 3277 | "formidable": "^3.5.4", 3278 | "methods": "^1.1.2", 3279 | "mime": "2.6.0", 3280 | "qs": "^6.11.0" 3281 | }, 3282 | "engines": { 3283 | "node": ">=14.18.0" 3284 | } 3285 | }, 3286 | "node_modules/superagent/node_modules/form-data": { 3287 | "version": "4.0.2", 3288 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.2.tgz", 3289 | "integrity": "sha512-hGfm/slu0ZabnNt4oaRZ6uREyfCj6P4fT/n6A1rGV+Z0VdGXjfOhVUpkn6qVQONHGIFwmveGXyDs75+nr6FM8w==", 3290 | "license": "MIT", 3291 | "dependencies": { 3292 | "asynckit": "^0.4.0", 3293 | "combined-stream": "^1.0.8", 3294 | "es-set-tostringtag": "^2.1.0", 3295 | "mime-types": "^2.1.12" 3296 | }, 3297 | "engines": { 3298 | "node": ">= 6" 3299 | } 3300 | }, 3301 | "node_modules/superagent/node_modules/mime": { 3302 | "version": "2.6.0", 3303 | "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", 3304 | "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", 3305 | "license": "MIT", 3306 | "bin": { 3307 | "mime": "cli.js" 3308 | }, 3309 | "engines": { 3310 | "node": ">=4.0.0" 3311 | } 3312 | }, 3313 | "node_modules/supports-color": { 3314 | "version": "7.2.0", 3315 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 3316 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 3317 | "dev": true, 3318 | "dependencies": { 3319 | "has-flag": "^4.0.0" 3320 | }, 3321 | "engines": { 3322 | "node": ">=8" 3323 | } 3324 | }, 3325 | "node_modules/time-span": { 3326 | "version": "5.1.0", 3327 | "resolved": "https://registry.npmjs.org/time-span/-/time-span-5.1.0.tgz", 3328 | "integrity": "sha512-75voc/9G4rDIJleOo4jPvN4/YC4GRZrY8yy1uU4lwrB3XEQbWve8zXoO5No4eFrGcTAMYyoY67p8jRQdtA1HbA==", 3329 | "dependencies": { 3330 | "convert-hrtime": "^5.0.0" 3331 | }, 3332 | "engines": { 3333 | "node": ">=12" 3334 | }, 3335 | "funding": { 3336 | "url": "https://github.com/sponsors/sindresorhus" 3337 | } 3338 | }, 3339 | "node_modules/tough-cookie": { 3340 | "version": "2.5.0", 3341 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", 3342 | "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", 3343 | "dev": true, 3344 | "dependencies": { 3345 | "psl": "^1.1.28", 3346 | "punycode": "^2.1.1" 3347 | }, 3348 | "engines": { 3349 | "node": ">=0.8" 3350 | } 3351 | }, 3352 | "node_modules/tough-cookie/node_modules/punycode": { 3353 | "version": "2.3.1", 3354 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 3355 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 3356 | "dev": true, 3357 | "engines": { 3358 | "node": ">=6" 3359 | } 3360 | }, 3361 | "node_modules/trouter": { 3362 | "version": "4.0.0", 3363 | "resolved": "https://registry.npmjs.org/trouter/-/trouter-4.0.0.tgz", 3364 | "integrity": "sha512-bwwr76BThfiVwAFZqks5cJ+VoKNM3/2Yg1ZwJslkdmAUQ6S0UNoCoGYFDxdw+u1skfexggdmD2p35kW5Td4Cug==", 3365 | "dev": true, 3366 | "license": "MIT", 3367 | "dependencies": { 3368 | "regexparam": "^3.0.0" 3369 | }, 3370 | "engines": { 3371 | "node": ">=6" 3372 | } 3373 | }, 3374 | "node_modules/tunnel-agent": { 3375 | "version": "0.6.0", 3376 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 3377 | "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", 3378 | "dev": true, 3379 | "dependencies": { 3380 | "safe-buffer": "^5.0.1" 3381 | }, 3382 | "engines": { 3383 | "node": "*" 3384 | } 3385 | }, 3386 | "node_modules/tweetnacl": { 3387 | "version": "0.14.5", 3388 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 3389 | "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==", 3390 | "dev": true 3391 | }, 3392 | "node_modules/type-check": { 3393 | "version": "0.4.0", 3394 | "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", 3395 | "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==", 3396 | "dev": true, 3397 | "dependencies": { 3398 | "prelude-ls": "^1.2.1" 3399 | }, 3400 | "engines": { 3401 | "node": ">= 0.8.0" 3402 | } 3403 | }, 3404 | "node_modules/typescript": { 3405 | "version": "5.8.3", 3406 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", 3407 | "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", 3408 | "dev": true, 3409 | "license": "Apache-2.0", 3410 | "bin": { 3411 | "tsc": "bin/tsc", 3412 | "tsserver": "bin/tsserver" 3413 | }, 3414 | "engines": { 3415 | "node": ">=14.17" 3416 | } 3417 | }, 3418 | "node_modules/undici-types": { 3419 | "version": "5.26.5", 3420 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", 3421 | "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" 3422 | }, 3423 | "node_modules/union": { 3424 | "version": "0.5.0", 3425 | "resolved": "https://registry.npmjs.org/union/-/union-0.5.0.tgz", 3426 | "integrity": "sha512-N6uOhuW6zO95P3Mel2I2zMsbsanvvtgn6jVqJv4vbVcz/JN0OkL9suomjQGmWtxJQXOCqUJvquc1sMeNz/IwlA==", 3427 | "dev": true, 3428 | "dependencies": { 3429 | "qs": "^6.4.0" 3430 | }, 3431 | "engines": { 3432 | "node": ">= 0.8.0" 3433 | } 3434 | }, 3435 | "node_modules/uri-js": { 3436 | "version": "4.4.1", 3437 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", 3438 | "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", 3439 | "dev": true, 3440 | "dependencies": { 3441 | "punycode": "^2.1.0" 3442 | } 3443 | }, 3444 | "node_modules/uri-js/node_modules/punycode": { 3445 | "version": "2.3.1", 3446 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", 3447 | "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", 3448 | "dev": true, 3449 | "engines": { 3450 | "node": ">=6" 3451 | } 3452 | }, 3453 | "node_modules/url-join": { 3454 | "version": "4.0.1", 3455 | "resolved": "https://registry.npmjs.org/url-join/-/url-join-4.0.1.tgz", 3456 | "integrity": "sha512-jk1+QP6ZJqyOiuEI9AEWQfju/nB2Pw466kbA0LEZljHwKeMgd9WrAEgEGxjPDD2+TNbbb37rTyhEfrCXfuKXnA==", 3457 | "dev": true 3458 | }, 3459 | "node_modules/v8-to-istanbul": { 3460 | "version": "9.3.0", 3461 | "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", 3462 | "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", 3463 | "dev": true, 3464 | "license": "ISC", 3465 | "dependencies": { 3466 | "@jridgewell/trace-mapping": "^0.3.12", 3467 | "@types/istanbul-lib-coverage": "^2.0.1", 3468 | "convert-source-map": "^2.0.0" 3469 | }, 3470 | "engines": { 3471 | "node": ">=10.12.0" 3472 | } 3473 | }, 3474 | "node_modules/v8-to-istanbul/node_modules/convert-source-map": { 3475 | "version": "2.0.0", 3476 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", 3477 | "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", 3478 | "dev": true, 3479 | "license": "MIT" 3480 | }, 3481 | "node_modules/verror": { 3482 | "version": "1.10.0", 3483 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 3484 | "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", 3485 | "dev": true, 3486 | "engines": [ 3487 | "node >=0.6.0" 3488 | ], 3489 | "dependencies": { 3490 | "assert-plus": "^1.0.0", 3491 | "core-util-is": "1.0.2", 3492 | "extsprintf": "^1.2.0" 3493 | } 3494 | }, 3495 | "node_modules/verror/node_modules/core-util-is": { 3496 | "version": "1.0.2", 3497 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 3498 | "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==", 3499 | "dev": true 3500 | }, 3501 | "node_modules/whatwg-encoding": { 3502 | "version": "2.0.0", 3503 | "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", 3504 | "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", 3505 | "dev": true, 3506 | "dependencies": { 3507 | "iconv-lite": "0.6.3" 3508 | }, 3509 | "engines": { 3510 | "node": ">=12" 3511 | } 3512 | }, 3513 | "node_modules/which": { 3514 | "version": "2.0.2", 3515 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 3516 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 3517 | "dev": true, 3518 | "dependencies": { 3519 | "isexe": "^2.0.0" 3520 | }, 3521 | "bin": { 3522 | "node-which": "bin/node-which" 3523 | }, 3524 | "engines": { 3525 | "node": ">= 8" 3526 | } 3527 | }, 3528 | "node_modules/word-wrap": { 3529 | "version": "1.2.5", 3530 | "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", 3531 | "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", 3532 | "dev": true, 3533 | "engines": { 3534 | "node": ">=0.10.0" 3535 | } 3536 | }, 3537 | "node_modules/workerpool": { 3538 | "version": "6.5.1", 3539 | "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", 3540 | "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", 3541 | "dev": true, 3542 | "license": "Apache-2.0" 3543 | }, 3544 | "node_modules/wrap-ansi": { 3545 | "version": "7.0.0", 3546 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3547 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3548 | "dev": true, 3549 | "license": "MIT", 3550 | "dependencies": { 3551 | "ansi-styles": "^4.0.0", 3552 | "string-width": "^4.1.0", 3553 | "strip-ansi": "^6.0.0" 3554 | }, 3555 | "engines": { 3556 | "node": ">=10" 3557 | }, 3558 | "funding": { 3559 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3560 | } 3561 | }, 3562 | "node_modules/wrap-ansi-cjs": { 3563 | "name": "wrap-ansi", 3564 | "version": "7.0.0", 3565 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3566 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3567 | "dev": true, 3568 | "license": "MIT", 3569 | "dependencies": { 3570 | "ansi-styles": "^4.0.0", 3571 | "string-width": "^4.1.0", 3572 | "strip-ansi": "^6.0.0" 3573 | }, 3574 | "engines": { 3575 | "node": ">=10" 3576 | }, 3577 | "funding": { 3578 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3579 | } 3580 | }, 3581 | "node_modules/wrappy": { 3582 | "version": "1.0.2", 3583 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3584 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 3585 | }, 3586 | "node_modules/y18n": { 3587 | "version": "5.0.8", 3588 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 3589 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 3590 | "dev": true, 3591 | "engines": { 3592 | "node": ">=10" 3593 | } 3594 | }, 3595 | "node_modules/yargs": { 3596 | "version": "17.7.2", 3597 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 3598 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 3599 | "dev": true, 3600 | "license": "MIT", 3601 | "dependencies": { 3602 | "cliui": "^8.0.1", 3603 | "escalade": "^3.1.1", 3604 | "get-caller-file": "^2.0.5", 3605 | "require-directory": "^2.1.1", 3606 | "string-width": "^4.2.3", 3607 | "y18n": "^5.0.5", 3608 | "yargs-parser": "^21.1.1" 3609 | }, 3610 | "engines": { 3611 | "node": ">=12" 3612 | } 3613 | }, 3614 | "node_modules/yargs-parser": { 3615 | "version": "21.1.1", 3616 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 3617 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 3618 | "dev": true, 3619 | "license": "ISC", 3620 | "engines": { 3621 | "node": ">=12" 3622 | } 3623 | }, 3624 | "node_modules/yargs-unparser": { 3625 | "version": "2.0.0", 3626 | "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", 3627 | "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", 3628 | "dev": true, 3629 | "dependencies": { 3630 | "camelcase": "^6.0.0", 3631 | "decamelize": "^4.0.0", 3632 | "flat": "^5.0.2", 3633 | "is-plain-obj": "^2.1.0" 3634 | }, 3635 | "engines": { 3636 | "node": ">=10" 3637 | } 3638 | }, 3639 | "node_modules/yargs-unparser/node_modules/camelcase": { 3640 | "version": "6.3.0", 3641 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 3642 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 3643 | "dev": true, 3644 | "engines": { 3645 | "node": ">=10" 3646 | }, 3647 | "funding": { 3648 | "url": "https://github.com/sponsors/sindresorhus" 3649 | } 3650 | }, 3651 | "node_modules/yargs-unparser/node_modules/decamelize": { 3652 | "version": "4.0.0", 3653 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", 3654 | "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", 3655 | "dev": true, 3656 | "engines": { 3657 | "node": ">=10" 3658 | }, 3659 | "funding": { 3660 | "url": "https://github.com/sponsors/sindresorhus" 3661 | } 3662 | }, 3663 | "node_modules/yocto-queue": { 3664 | "version": "0.1.0", 3665 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 3666 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 3667 | "dev": true, 3668 | "engines": { 3669 | "node": ">=10" 3670 | }, 3671 | "funding": { 3672 | "url": "https://github.com/sponsors/sindresorhus" 3673 | } 3674 | } 3675 | } 3676 | } 3677 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "chai-http", 3 | "version": "0.0.0-development", 4 | "description": "Extend Chai Assertion library with tests for http apis", 5 | "author": "Jake Luer ", 6 | "license": "MIT", 7 | "keywords": [ 8 | "chai", 9 | "chai-plugin", 10 | "browser", 11 | "http", 12 | "request", 13 | "vendor", 14 | "supertest", 15 | "superagent" 16 | ], 17 | "contributors": [ 18 | "Jake Luer ", 19 | "Veselin Todorov ", 20 | "Keith Cirkel (http://keithcirkel.co.uk)" 21 | ], 22 | "files": [ 23 | "lib/*.js", 24 | "index.js", 25 | "types/index.d.ts" 26 | ], 27 | "main": "./index.js", 28 | "exports": { 29 | ".": { 30 | "default": "./index.js", 31 | "types": "./types/index.d.ts" 32 | } 33 | }, 34 | "types": "./types/index.d.ts", 35 | "repository": { 36 | "type": "git", 37 | "url": "git@github.com:chaijs/chai-http.git" 38 | }, 39 | "scripts": { 40 | "build": "npm run build:ts", 41 | "build:ts": "cd types && tsc", 42 | "start": "npm-run-all --parallel watch server", 43 | "server": "http-server -o -c-1", 44 | "test": "c8 --reporter=lcovonly --reporter=text-summary mocha", 45 | "coverage": "if [ -z \"$COVERALLS_REPO_TOKEN\" ]; then cat coverage/lcov.info | coveralls; fi", 46 | "eslint": "eslint" 47 | }, 48 | "browser": { 49 | "http": false, 50 | "https": false, 51 | "net": "./lib/net.js", 52 | "querystring": "qs" 53 | }, 54 | "dependencies": { 55 | "@types/superagent": "^8.1.7", 56 | "charset": "^1.0.1", 57 | "cookiejar": "^2.1.4", 58 | "is-ip": "^5.0.1", 59 | "methods": "^1.1.2", 60 | "qs": "^6.12.1", 61 | "superagent": "^10.0.0" 62 | }, 63 | "devDependencies": { 64 | "@eslint/js": "^9.3.0", 65 | "@types/chai": "^5.0.0", 66 | "c8": "^10.1.3", 67 | "chai": "^5.1.0", 68 | "coveralls": "^3.1.1", 69 | "eslint": "^9.3.0", 70 | "eslint-plugin-mocha": "^11.0.0", 71 | "http-server": "^14.1.1", 72 | "mocha": "^11.0.0", 73 | "npm-run-all2": "^8.0.0", 74 | "polka": "^1.0.0-next.28", 75 | "prettier": "^3.2.5", 76 | "typescript": "^5.4.5" 77 | }, 78 | "engines": { 79 | "node": ">=18.20.0" 80 | }, 81 | "type": "module", 82 | "mocha": { 83 | "reporter": "spec", 84 | "require": "./test/bootstrap/index.js" 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /test/bootstrap/index.js: -------------------------------------------------------------------------------- 1 | import * as originalChai from 'chai'; 2 | import * as http from 'http'; 3 | // this import is available from defining `imports` in package.json 4 | import {default as project} from 'chai-http'; 5 | 6 | global.http = http; 7 | 8 | global.should = originalChai.should(); 9 | global.expect = originalChai.expect; 10 | 11 | global['chai'] = originalChai.use(project); 12 | -------------------------------------------------------------------------------- /test/http.js: -------------------------------------------------------------------------------- 1 | describe('assertions', function () { 2 | it('#status property "status"', function () { 3 | const res = {status: 200}; 4 | res.should.to.have.status(200); 5 | 6 | (function () { 7 | res.should.not.have.status(200); 8 | }).should.throw('expected { status: 200 } to not have status code 200'); 9 | 10 | (function () { 11 | ({}).should.not.to.have.status(200); 12 | }).should.throw("expected {} to have keys 'status', or 'statusCode'"); 13 | }); 14 | 15 | it('#status property "statusCode"', function () { 16 | const res = {statusCode: 200}; 17 | res.should.to.have.status(200); 18 | }); 19 | 20 | it('#status property "status" should work with inheritance', function () { 21 | function TestError() {} 22 | TestError.prototype.status = 404; 23 | const testError = new TestError(); 24 | testError.should.have.status(404); 25 | }); 26 | 27 | it('#ip', function () { 28 | '127.0.0.1'.should.be.an.ip; 29 | '2001:0db8:85a3:0000:0000:8a2e:0370:7334'.should.be.an.ip; 30 | 31 | (function () { 32 | '127.0.0.1'.should.not.be.an.ip; 33 | }).should.throw("expected '127.0.0.1' to not be an ip"); 34 | 35 | (function () { 36 | '2001:0db8:85a3:0000:0000:8a2e:0370:7334'.should.not.be.an.ip; 37 | }).should.throw( 38 | "expected '2001:0db8:85a3:0000:0000:8a2e:0370:73…' to not be an ip" 39 | ); 40 | }); 41 | 42 | it('#header test existence', function () { 43 | const req = {headers: {foo: 'bar'}}; 44 | const res = { 45 | getHeader: function (key) { 46 | return key == 'foo' ? 'bar' : undefined; 47 | } 48 | }; 49 | 50 | req.should.have.header('foo'); 51 | req.should.not.have.header('bar'); 52 | 53 | res.should.have.header('foo'); 54 | res.should.not.have.header('bar'); 55 | 56 | (function () { 57 | req.should.have.header('bar'); 58 | }).should.throw("expected header 'bar' to exist"); 59 | 60 | (function () { 61 | res.should.have.header('bar'); 62 | }).should.throw("expected header 'bar' to exist"); 63 | }); 64 | 65 | it('#header test value', function () { 66 | const req = {headers: {foo: 'bar'}}; 67 | const res = { 68 | getHeader: function () { 69 | return 'foo'; 70 | } 71 | }; 72 | 73 | req.should.have.header('foo', 'bar'); 74 | res.should.have.header('bar', 'foo'); 75 | res.should.have.header('bar', /^fo/); 76 | 77 | (function () { 78 | req.should.not.have.header('foo', 'bar'); 79 | }), 80 | "expected header 'foo' to not have value bar"; 81 | 82 | (function () { 83 | res.should.not.have.header('bar', 'foo'); 84 | }).should.throw("expected header 'bar' to not have value foo"); 85 | 86 | (function () { 87 | res.should.not.have.header('bar', /^fo/); 88 | }).should.throw("expected header 'bar' not to match /^fo/ but got 'foo'"); 89 | }); 90 | 91 | it('#header case insensitive', function () { 92 | const req = {headers: {foo: 'bar'}}; 93 | const res = { 94 | getHeader: function () { 95 | return 'foo'; 96 | } 97 | }; 98 | 99 | res.should.have.header('Foo'); 100 | res.should.have.header('Bar'); 101 | req.should.have.header('FoO', 'bar'); 102 | res.should.have.header('BAr', 'foo'); 103 | }); 104 | 105 | it('#headers', function () { 106 | const req = {headers: {foo: 'bar'}}; 107 | const res = { 108 | getHeader: function () { 109 | return 'foo'; 110 | } 111 | }; 112 | 113 | req.should.have.headers; 114 | res.should.have.headers; 115 | 116 | (function () { 117 | req.should.not.have.headers; 118 | }).should.throw( 119 | "expected { headers: { foo: 'bar' } } to not have headers or getHeader method" 120 | ); 121 | 122 | (function () { 123 | res.should.not.have.headers; 124 | }).should.throw( 125 | /expected .*getHeader.* to not have headers or getHeader method/ 126 | ); 127 | }); 128 | 129 | it('#json', function () { 130 | const req = {headers: {'content-type': ['application/json']}}; 131 | const res = { 132 | getHeader: function () { 133 | return 'application/json'; 134 | } 135 | }; 136 | 137 | req.should.be.json; 138 | res.should.be.json; 139 | 140 | (function () { 141 | req.should.not.be.json; 142 | }).should.throw( 143 | "expected [ 'application/json' ] to not include 'application/json'" 144 | ); 145 | 146 | (function () { 147 | res.should.not.be.json; 148 | }).should.throw( 149 | "expected 'application/json' to not include 'application/json'" 150 | ); 151 | }); 152 | 153 | it('#text', function () { 154 | const req = {headers: {'content-type': ['text/plain']}}; 155 | const res = { 156 | getHeader: function () { 157 | return 'text/plain'; 158 | } 159 | }; 160 | 161 | req.should.be.text; 162 | res.should.be.text; 163 | 164 | (function () { 165 | req.should.not.be.text; 166 | }).should.throw("expected [ 'text/plain' ] to not include 'text/plain'"); 167 | 168 | (function () { 169 | res.should.not.be.text; 170 | }).should.throw("expected 'text/plain' to not include 'text/plain'"); 171 | }); 172 | 173 | it('#html', function () { 174 | const req = {headers: {'content-type': ['text/html']}}; 175 | const res = { 176 | getHeader: function () { 177 | return 'text/html'; 178 | } 179 | }; 180 | 181 | req.should.be.html; 182 | res.should.be.html; 183 | 184 | (function () { 185 | req.should.not.be.html; 186 | }).should.throw("expected [ 'text/html' ] to not include 'text/html'"); 187 | 188 | (function () { 189 | res.should.not.be.html; 190 | }).should.throw("expected 'text/html' to not include 'text/html'"); 191 | }); 192 | 193 | it('#redirect', function () { 194 | const res = {status: 200}; 195 | res.should.not.redirect; 196 | 197 | [301, 302, 303, 307, 308].forEach(function (status) { 198 | const res = {status: status}; 199 | res.should.redirect; 200 | }); 201 | 202 | ({ 203 | status: 200, 204 | redirects: ['http://example.com'] 205 | }).should.redirect; 206 | 207 | ({ 208 | status: 200, 209 | redirects: [] 210 | }).should.not.redirect; 211 | 212 | (function () { 213 | const res = {status: 200}; 214 | res.should.redirect; 215 | }).should.throw('expected redirect with 30X status code but got 200'); 216 | 217 | (function () { 218 | const res = {status: 301}; 219 | res.should.not.redirect; 220 | }).should.throw('expected not to redirect but got 301 status'); 221 | }); 222 | 223 | it('#redirectTo', function () { 224 | let res = {status: 301, headers: {location: 'foo'}}; 225 | res.should.redirectTo('foo'); 226 | 227 | res = {status: 301, headers: {location: 'bar'}}; 228 | res.should.not.redirectTo('foo'); 229 | 230 | res = {status: 200, redirects: ['bar']}; 231 | res.should.redirectTo('bar'); 232 | 233 | res = {status: 200, redirects: ['bar']}; 234 | res.should.not.redirectTo('foo'); 235 | 236 | res = {status: 200, redirects: ['foo']}; 237 | res.should.redirectTo(/foo/); 238 | 239 | res = {status: 200, redirects: ['foo/bar?baz=qux']}; 240 | res.should.redirectTo(/^foo\/bar/); 241 | 242 | (function () { 243 | const res = {status: 301, headers: {location: 'foo'}}; 244 | res.should.not.redirectTo('foo'); 245 | }).should.throw("expected header 'location' to not have value foo"); 246 | 247 | (function () { 248 | const res = {status: 301, headers: {location: 'bar'}}; 249 | res.should.redirectTo('foo'); 250 | }).should.throw("expected header 'location' to have value foo"); 251 | 252 | (function () { 253 | const res = {status: 200, redirects: ['bar', 'baz']}; 254 | res.should.redirectTo('foo'); 255 | }).should.throw('expected redirect to foo but got bar then baz'); 256 | 257 | (function () { 258 | const res = {status: 301, headers: {location: 'foo'}}; 259 | res.should.not.redirectTo(/foo/); 260 | }).should.throw( 261 | "expected header 'location' not to match /foo/ but got 'foo'" 262 | ); 263 | 264 | (function () { 265 | const res = {status: 200, redirects: ['bar', 'baz']}; 266 | res.should.redirectTo(/foo/); 267 | }).should.throw('expected redirect to /foo/ but got bar then baz'); 268 | }); 269 | 270 | it('#param', function () { 271 | const req = {url: '/test?x=y&foo=bar'}; 272 | req.should.have.param('x'); 273 | req.should.have.param('foo'); 274 | req.should.have.param('x', 'y'); 275 | req.should.have.param('foo', 'bar'); 276 | req.should.not.have.param('bar'); 277 | req.should.not.have.param('y'); 278 | req.should.not.have.param('x', 'z'); 279 | req.should.not.have.param('foo', 'baz'); 280 | 281 | (function () { 282 | req.should.not.have.param('foo'); 283 | }).should.throw(/expected .* to not have property 'foo'/); 284 | 285 | (function () { 286 | req.should.not.have.param('foo', 'bar'); 287 | }).should.throw(/expected .* to not have property 'foo' of 'bar'/); 288 | }); 289 | 290 | it('#param (nested)', function () { 291 | const req = {url: '/test?form[name]=jim&form[lastName]=bob'}; 292 | req.should.have.param('form'); 293 | req.should.have.nested.param('form.name'); 294 | req.should.have.nested.param('form.name', 'jim'); 295 | req.should.have.nested.param('form.lastName'); 296 | req.should.have.nested.param('form.lastName', 'bob'); 297 | req.should.not.have.param('bar'); 298 | req.should.not.have.nested.param('form.bar'); 299 | req.should.not.have.nested.param('form.name', 'sue'); 300 | 301 | (function () { 302 | req.should.not.have.nested.param('form.name'); 303 | }).should.throw(/expected .* to not have nested property 'form.name'/); 304 | 305 | (function () { 306 | req.should.not.have.nested.param('form.lastName', 'bob'); 307 | }).should.throw( 308 | /expected .* to not have nested property 'form.lastName' of 'bob'/ 309 | ); 310 | }); 311 | 312 | it('#cookie', function () { 313 | const res = { 314 | headers: { 315 | 'set-cookie': [ 316 | 'name=value', 317 | 'name2=value2; Expires=Wed, 09 Jun 2038 10:18:14 GMT' 318 | ] 319 | } 320 | }; 321 | res.should.have.cookie('name'); 322 | res.should.have.cookie('name2'); 323 | res.should.have.cookie('name', 'value'); 324 | res.should.have.cookie('name2', 'value2'); 325 | res.should.not.have.cookie('bar'); 326 | res.should.not.have.cookie('name2', 'bar'); 327 | 328 | (function () { 329 | res.should.not.have.cookie('name'); 330 | }).should.throw("expected cookie 'name' to not exist"); 331 | 332 | (function () { 333 | res.should.have.cookie('foo'); 334 | }).should.throw("expected cookie 'foo' to exist"); 335 | 336 | (function () { 337 | res.should.not.have.cookie('name', 'value'); 338 | }).should.throw("expected cookie 'name' to not have value 'value'"); 339 | 340 | (function () { 341 | res.should.have.cookie('name2', 'value'); 342 | }).should.throw( 343 | "expected cookie 'name2' to have value 'value' but got 'value2'" 344 | ); 345 | }); 346 | 347 | it('#cookie (request)', function () { 348 | const req = { 349 | headers: { 350 | 'set-cookie': [ 351 | 'name=value;', 352 | 'name2=value2; Expires=Wed, 09 Jun 2038 10:18:14 GMT', 353 | 'name3=value3; Domain=.somedomain.com' 354 | ] 355 | } 356 | }; 357 | req.should.have.cookie('name'); 358 | req.should.have.cookie('name2'); 359 | req.should.have.cookie('name3'); 360 | req.should.have.cookie('name', 'value'); 361 | req.should.have.cookie('name2', 'value2'); 362 | req.should.have.cookie('name3', 'value3'); 363 | req.should.not.have.cookie('bar'); 364 | req.should.not.have.cookie('name2', 'bar'); 365 | 366 | (function () { 367 | req.should.not.have.cookie('name'); 368 | }).should.throw("expected cookie 'name' to not exist"); 369 | 370 | (function () { 371 | req.should.have.cookie('foo'); 372 | }).should.throw("expected cookie 'foo' to exist"); 373 | 374 | (function () { 375 | req.should.not.have.cookie('name', 'value'); 376 | }).should.throw("expected cookie 'name' to not have value 'value'"); 377 | 378 | (function () { 379 | req.should.have.cookie('name2', 'value'); 380 | }).should.throw( 381 | "expected cookie 'name2' to have value 'value' but got 'value2'" 382 | ); 383 | }); 384 | 385 | it('#cookie (agent)', function () { 386 | const agent = chai.request.agent(); 387 | const cookies = [ 388 | 'name=value', 389 | 'name2=value2; Expires=Wed, 09 Jun 2038 10:18:14 GMT', 390 | 'name3=value3; Domain=.somedomain.com' 391 | ]; 392 | if (agent.jar) 393 | // Using superagent.Agent (node) 394 | agent.jar.setCookies(cookies); 395 | // using superagent.Request (browser) 396 | else agent.set('set-cookie', cookies); 397 | 398 | agent.should.have.cookie('name'); 399 | agent.should.have.cookie('name2'); 400 | agent.should.have.cookie('name3'); 401 | agent.should.have.cookie('name', 'value'); 402 | agent.should.have.cookie('name2', 'value2'); 403 | agent.should.have.cookie('name3', 'value3'); 404 | agent.should.not.have.cookie('bar'); 405 | agent.should.not.have.cookie('name2', 'bar'); 406 | 407 | (function () { 408 | agent.should.not.have.cookie('name'); 409 | }).should.throw("expected cookie 'name' to not exist"); 410 | 411 | (function () { 412 | agent.should.have.cookie('foo'); 413 | }).should.throw("expected cookie 'foo' to exist"); 414 | 415 | (function () { 416 | agent.should.not.have.cookie('name', 'value'); 417 | }).should.throw("expected cookie 'name' to not have value 'value'"); 418 | 419 | (function () { 420 | agent.should.have.cookie('name2', 'value'); 421 | }).should.throw( 422 | "expected cookie 'name2' to have value 'value' but got 'value2'" 423 | ); 424 | }); 425 | 426 | describe('#charset', function () { 427 | it('should match charset in content type', function () { 428 | const req = { 429 | headers: {'content-type': ['text/plain; charset=utf-8']} 430 | }; 431 | req.should.to.have.charset('utf-8'); 432 | 433 | (function () { 434 | req.should.not.have.charset('utf-8'); 435 | }).should.throw('expected content type to not have utf-8 charset'); 436 | }); 437 | 438 | it('should handle no content type', function () { 439 | const req = {headers: {}}; 440 | req.should.not.have.charset('utf-8'); 441 | 442 | (function () { 443 | req.should.to.have.charset('utf-8'); 444 | }).should.throw('expected content type to have utf-8 charset'); 445 | }); 446 | 447 | it('should handle no charset in content type', function () { 448 | const req = {headers: {'content-type': ['text/plain']}}; 449 | req.should.not.have.charset('utf-8'); 450 | 451 | (function () { 452 | req.should.to.have.charset('utf-8'); 453 | }).should.throw('expected content type to have utf-8 charset'); 454 | }); 455 | }); 456 | }); 457 | -------------------------------------------------------------------------------- /test/request.js: -------------------------------------------------------------------------------- 1 | import superagent from 'superagent'; 2 | import {request} from 'chai-http'; 3 | import polka from 'polka'; 4 | 5 | const SERVER_URL = 'http://localhost:8008'; 6 | 7 | describe('request', function () { 8 | let server; 9 | let aborter; 10 | 11 | beforeEach(() => { 12 | aborter = new AbortController(); 13 | server = polka(); 14 | server.listen({ 15 | port: 8008, 16 | signal: aborter.signal 17 | }); 18 | }); 19 | 20 | afterEach(() => { 21 | aborter.abort(); 22 | }); 23 | 24 | describe('Browser and Node.js', function () { 25 | it('is present on chai', function () { 26 | expect(chai.request).to.not.eq('undefined'); 27 | expect(chai.request).to.respondTo('execute'); 28 | }); 29 | 30 | it('request method returns instanceof superagent', function () { 31 | server.get('/', (_req, res) => { 32 | res.statusCode = 200; 33 | }); 34 | const req = request.execute(SERVER_URL).get('/'); 35 | req.should.be.instanceof(request.Request.super_); 36 | req.should.be.instanceof(superagent.Request); 37 | }); 38 | 39 | it('can request a web page', function (done) { 40 | server.get('/foo', (_req, res) => { 41 | res.statusCode = 200; 42 | res.setHeader('content-type', 'text/html'); 43 | res.end('

bleep bloop

'); 44 | }); 45 | 46 | request 47 | .execute(SERVER_URL) 48 | .get('/foo') 49 | .end(function (err, res) { 50 | res.should.have.status(200); 51 | res.should.be.html; 52 | res.should.not.be.text; 53 | res.should.not.be.json; 54 | res.text.should.be.a('string').with.length.above(0); 55 | 56 | res.body.should.deep.equal({}); 57 | 58 | done(err); 59 | }); 60 | }); 61 | 62 | it('can request JSON data', function (done) { 63 | server.get('/foo', (_req, res) => { 64 | res.statusCode = 200; 65 | res.setHeader('content-type', 'application/json'); 66 | res.end('{"foo":"bar"}'); 67 | }); 68 | 69 | request 70 | .execute(SERVER_URL) 71 | .get('/foo') 72 | .end(function (err, res) { 73 | res.should.have.status(200); 74 | res.should.be.json; 75 | res.should.not.be.html; 76 | res.should.not.be.text; 77 | res.text.should.be.a('string').with.length.above(0); 78 | res.body.should.be.an('object'); 79 | done(err); 80 | }); 81 | }); 82 | 83 | it('can read response headers', function (done) { 84 | server.get('/foo', (_req, res) => { 85 | res.statusCode = 200; 86 | res.setHeader('content-type', 'application/json'); 87 | res.setHeader('x-foo', '303'); 88 | res.setHeader('x-bar', '808'); 89 | res.end('{"foo":"bar"}'); 90 | }); 91 | 92 | request 93 | .execute(SERVER_URL) 94 | .get('/foo') 95 | .end(function (err, res) { 96 | res.should.be.json; 97 | res.headers.should.have.property('x-foo', '303'); 98 | res.headers.should.have.property('x-bar', '808'); 99 | done(err); 100 | }); 101 | }); 102 | 103 | it('succeeds when response has an error status', function (done) { 104 | server.get('/foo', (_req, res) => { 105 | res.statusCode = 404; 106 | res.end(); 107 | }); 108 | request 109 | .execute(SERVER_URL) 110 | .get('/foo') 111 | .end(function (err, res) { 112 | res.should.have.status(404); 113 | done(err); 114 | }); 115 | }); 116 | 117 | it('can be augmented with promises', async function () { 118 | server.get('/foo', (_req, res) => { 119 | res.statusCode = 200; 120 | res.setHeader('content-type', 'application/json'); 121 | res.end('{"foo":"bar"}'); 122 | }); 123 | const response = await request 124 | .execute(SERVER_URL) 125 | .get('/foo'); 126 | response.should.have.status(200); 127 | response.should.be.json; 128 | }); 129 | 130 | it('can resolve a promise given status code of 404', async function () { 131 | server.get('/foo', (_req, res) => { 132 | res.statusCode = 404; 133 | res.end(); 134 | }); 135 | 136 | const response = await request 137 | .execute(SERVER_URL) 138 | .get('/foo'); 139 | response.should.have.status(404); 140 | }); 141 | }); 142 | 143 | describe('Node.js', function () { 144 | it('can request a functioned "app"', function (done) { 145 | const app = function (req, res) { 146 | req.headers['x-api-key'].should.equal('testing'); 147 | res.writeHeader(200, {'content-type': 'text/plain'}); 148 | res.end('hello universe'); 149 | }; 150 | 151 | request 152 | .execute(app) 153 | .get('/') 154 | .set('X-API-Key', 'testing') 155 | .end(function (err, res) { 156 | if (err) return done(err); 157 | res.should.have.status(200); 158 | res.text.should.equal('hello universe'); 159 | done(); 160 | }); 161 | }); 162 | 163 | it('can request an already existing url', function (done) { 164 | const server = http.createServer(function (req, res) { 165 | req.headers['x-api-key'].should.equal('test2'); 166 | res.writeHeader(200, {'content-type': 'text/plain'}); 167 | res.end('hello world'); 168 | }); 169 | 170 | server.listen(0, function () { 171 | request 172 | .execute('http://127.0.0.1:' + server.address().port) 173 | .get('/') 174 | .set('X-API-Key', 'test2') 175 | .end(function (err, res) { 176 | res.should.have.status(200); 177 | res.text.should.equal('hello world'); 178 | server.once('close', function () { 179 | done(err); 180 | }); 181 | server.close(); 182 | }); 183 | }); 184 | }); 185 | 186 | it('agent can be used to persist cookies', function (done) { 187 | const app = function (req, res) { 188 | res.setHeader('Set-Cookie', 'mycookie=test'); 189 | res.writeHeader(200, {'content-type': 'text/plain'}); 190 | res.end('your cookie: ' + req.headers.cookie); 191 | }; 192 | const agent = request.agent(app); 193 | 194 | agent 195 | .get('/') 196 | .then(function (res) { 197 | res.headers['set-cookie'][0].should.equal('mycookie=test'); 198 | res.text.should.equal('your cookie: undefined'); 199 | }) 200 | .then(function () { 201 | return agent.get('/'); 202 | }) 203 | .then(function (res) { 204 | res.text.should.equal('your cookie: mycookie=test'); 205 | agent.close(); 206 | }) 207 | .then(done, done); 208 | }); 209 | 210 | it('automatically closes the server down once done with it', function (done) { 211 | const server = http.createServer(function (_req, res) { 212 | res.writeHeader(200, {'content-type': 'text/plain'}); 213 | res.end('hello world'); 214 | }); 215 | 216 | request 217 | .execute(server) 218 | .get('/') 219 | .end(function (err, res) { 220 | res.should.have.status(200); 221 | res.text.should.equal('hello world'); 222 | should.not.exist(server.address()); 223 | done(err); 224 | }); 225 | }); 226 | 227 | it('can use keepOpen() to not close the server', function (done) { 228 | const server = http.createServer(function (_req, res) { 229 | res.writeHeader(200, {'content-type': 'text/plain'}); 230 | res.end('hello world'); 231 | }); 232 | const cachedRequest = request.execute(server).keepOpen(); 233 | server.listen = function () { 234 | throw new Error('listen was called when it shouldnt have been'); 235 | }; 236 | cachedRequest.get('/').end(function (err) { 237 | cachedRequest.get('/').end(function (err2) { 238 | server.close(function () { 239 | done(err || err2); 240 | }); 241 | }); 242 | }); 243 | }); 244 | 245 | it('can close server after using keepOpen()', function (done) { 246 | const server = http.createServer(function (_req, res) { 247 | res.writeHeader(200, {'content-type': 'text/plain'}); 248 | res.end('hello world'); 249 | }); 250 | const cachedRequest = request.execute(server).keepOpen(); 251 | cachedRequest.close(function () { 252 | should.not.exist(server.address()); 253 | done(); 254 | }); 255 | }); 256 | }); 257 | }); 258 | -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- 1 | // Definitions by: Wim Looman 2 | // Liam Jones 3 | // Federico Caselli 4 | // Bas Luksenburg 5 | // Austin Cawley-Edwards 6 | // TypeScript Version: 3.0 7 | /// 8 | import * as superAgentRequest from 'superagent'; 9 | 10 | // Merge namespace with global chai 11 | declare global { 12 | namespace Chai { 13 | interface ChaiStatic { 14 | request: ChaiHttpRequest; 15 | } 16 | 17 | interface ChaiHttpRequest { 18 | agent(server: any): ChaiHttp.Agent; 19 | Request(app: string | any, method: string, path: string): void; 20 | execute: (app: string | any) => ChaiHttp.Agent; 21 | } 22 | 23 | interface Assertion { 24 | redirectTo(location: string | RegExp): Assertion; 25 | 26 | param(key: string, value?: string): Assertion; 27 | 28 | cookie(key: string, value?: string): Assertion; 29 | 30 | status(code: number): Assertion; 31 | 32 | statusCode(code: number): Assertion; 33 | 34 | header(key: string, value?: string | RegExp): Assertion; 35 | 36 | charset(charset: string): Assertion; 37 | 38 | headers: Assertion; 39 | json: Assertion; 40 | text: Assertion; 41 | html: Assertion; 42 | redirect: Assertion; 43 | } 44 | 45 | interface TypeComparison { 46 | ip: Assertion; 47 | } 48 | } 49 | 50 | namespace ChaiHttp { 51 | interface Response extends superAgentRequest.Response {} 52 | interface Agent extends superAgentRequest.SuperAgentStatic { 53 | keepOpen(): Agent; 54 | close(callback?: (err: any) => void): Agent; 55 | } 56 | } 57 | } 58 | 59 | declare function chaiHttp(chai: any, utils: any): void; 60 | 61 | export default chaiHttp; 62 | 63 | declare const request: Chai.ChaiHttpRequest; 64 | 65 | export {request}; 66 | -------------------------------------------------------------------------------- /types/test.ts: -------------------------------------------------------------------------------- 1 | import * as fs from 'fs'; 2 | import * as http from 'http'; 3 | import * as originalChai from 'chai'; 4 | import ChaiHttp from './index'; 5 | 6 | const chai = originalChai.use(ChaiHttp); 7 | 8 | declare const app: http.Server; 9 | 10 | chai.request.execute(app).get('/'); 11 | chai.request.execute('http://localhost:8080').get('/'); 12 | 13 | chai.request 14 | .execute(app) 15 | .put('/user/me') 16 | .set('X-API-Key', 'foobar') 17 | .send({password: '123', confirmPassword: '123'}); 18 | 19 | chai.request 20 | .execute(app) 21 | .post('/user/me') 22 | .field('_method', 'put') 23 | .field('password', '123') 24 | .field('confirmPassword', '123'); 25 | 26 | chai.request 27 | .execute(app) 28 | .post('/user/avatar') 29 | .attach('imageField', fs.readFileSync('avatar.png'), 'avatar.png'); 30 | 31 | chai.request.execute(app).get('/protected').auth('user', 'pass'); 32 | 33 | // HTTPS request, from: https://github.com/visionmedia/superagent/commit/6158efbf42cb93d77c1a70887284be783dd7dabe 34 | const ca = fs.readFileSync('ca.cert.pem'); 35 | const key = fs.readFileSync('key.pem'); 36 | const cert = fs.readFileSync('cert.pem'); 37 | const callback = (err: any, res: ChaiHttp.Response) => {}; 38 | 39 | chai.request 40 | .execute(app) 41 | .post('/secure') 42 | .ca(ca) 43 | .key(key) 44 | .cert(cert) 45 | .end(callback); 46 | 47 | const pfx = fs.readFileSync('cert.pfx'); 48 | chai.request.execute(app).post('/secure').pfx(pfx).end(callback); 49 | 50 | chai.request.execute(app).get('/search').query({name: 'foo', limit: 10}); 51 | 52 | chai.request 53 | .execute(app) 54 | .get('/download') 55 | .buffer() 56 | .parse((res, cb) => { 57 | let data = ''; 58 | res.setEncoding('binary'); 59 | res.on('data', (chunk: any) => { 60 | data += chunk; 61 | }); 62 | res.on('end', () => { 63 | cb(undefined, new Buffer(data, 'binary')); 64 | }); 65 | }); 66 | 67 | chai.request 68 | .execute(app) 69 | .put('/user/me') 70 | .send({passsword: '123', confirmPassword: '123'}) 71 | .end((err: any, res: ChaiHttp.Response) => { 72 | chai.expect(err).to.be.null; 73 | chai.expect(res).to.have.status(200); 74 | }); 75 | 76 | chai.request 77 | .execute(app) 78 | .put('/user/me') 79 | .send({passsword: '123', confirmPassword: '123'}) 80 | .then((res: ChaiHttp.Response) => chai.expect(res).to.have.status(200)) 81 | .catch((err: any) => { 82 | throw err; 83 | }); 84 | 85 | chai.request 86 | .execute(app) 87 | .keepOpen() 88 | .close((err: any) => { 89 | throw err; 90 | }); 91 | 92 | const agent = chai.request.agent(app); 93 | 94 | agent 95 | .post('/session') 96 | .send({username: 'me', password: '123'}) 97 | .then((res: ChaiHttp.Response) => { 98 | chai.expect(res).to.have.cookie('sessionid'); 99 | // The `agent` now has the sessionid cookie saved, and will send it 100 | // back to the server in the next request: 101 | return agent 102 | .get('/user/me') 103 | .then((res: ChaiHttp.Response) => chai.expect(res).to.have.status(200)); 104 | }); 105 | 106 | agent.close((err: any) => { 107 | throw err; 108 | }); 109 | 110 | function test1() { 111 | const req = chai.request.execute(app).get('/'); 112 | req.then( 113 | (res: ChaiHttp.Response) => { 114 | chai.expect(res).to.have.status(200); 115 | chai.expect(res).to.have.header('content-type', 'text/plain'); 116 | chai.expect(res).to.have.header('content-type', /^text/); 117 | chai.expect(res).to.have.headers; 118 | chai.expect('127.0.0.1').to.be.an.ip; 119 | chai.expect(res).to.be.json; 120 | chai.expect(res).to.be.html; 121 | chai.expect(res).to.be.text; 122 | chai.expect(res).to.redirect; 123 | chai.expect(res).to.redirectTo('http://example.com'); 124 | chai.expect(res).to.have.param('orderby'); 125 | chai.expect(res).to.have.param('orderby', 'date'); 126 | chai.expect(res).to.not.have.param('limit'); 127 | chai.expect(req).to.have.cookie('session_id'); 128 | chai.expect(req).to.have.cookie('session_id', '1234'); 129 | chai.expect(req).to.not.have.cookie('PHPSESSID'); 130 | chai.expect(res).to.have.cookie('session_id'); 131 | chai.expect(res).to.have.cookie('session_id', '1234'); 132 | chai.expect(res).to.not.have.cookie('PHPSESSID'); 133 | chai.expect(res.body).to.have.property('version', '4.0.0'); 134 | chai.expect(res.text).to.equal(''); 135 | }, 136 | (err: any) => { 137 | throw err; 138 | } 139 | ); 140 | } 141 | -------------------------------------------------------------------------------- /types/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "lib": [ 5 | "es6", 6 | "dom" 7 | ], 8 | "noImplicitAny": true, 9 | "noImplicitThis": true, 10 | "strictNullChecks": false, 11 | "strictFunctionTypes": true, 12 | "baseUrl": "../", 13 | "typeRoots": [], 14 | "types": [], 15 | "noEmit": true, 16 | "forceConsistentCasingInFileNames": true 17 | }, 18 | "files": [ 19 | "index.d.ts", 20 | "test.ts" 21 | ] 22 | } 23 | --------------------------------------------------------------------------------