├── .gitignore ├── .idea ├── .gitignore ├── FastFetch-Smart-API-Fetcher.iml ├── modules.xml └── vcs.xml ├── LICENSE ├── README.md ├── __tests__ ├── demo.js └── demo.test.ts ├── dist ├── fastFetch.d.ts ├── fastFetch.d.ts.map ├── fastFetch.js ├── index.d.ts ├── index.d.ts.map └── index.js ├── index.d.ts ├── package-lock.json ├── package.json ├── src ├── fastFetch.ts └── index.ts └── tsconfig.json /.gitignore: -------------------------------------------------------------------------------- 1 | /tmp 2 | /out-tsc 3 | 4 | /node_modules 5 | npm-debug.log* 6 | yarn-debug.log* 7 | yarn-error.log* 8 | /.pnp 9 | .pnp.js 10 | 11 | .vscode/* 12 | dist/ 13 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Editor-based HTTP Client requests 5 | /httpRequests/ 6 | # Datasource local storage ignored files 7 | /dataSources/ 8 | /dataSources.local.xml 9 | -------------------------------------------------------------------------------- /.idea/FastFetch-Smart-API-Fetcher.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2025 Son Nguyen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FastFetch - Improve API Fetching with Auto-Retry and Deduplication 2 | 3 | [![NPM version](https://img.shields.io/npm/v/@hoangsonw/fast-fetch.svg?style=flat&logo=npm)](https://www.npmjs.com/package/@hoangsonw/fast-fetch) 4 | [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat&logo=opensource)](LICENSE) 5 | [![Node.js](https://img.shields.io/badge/Node-%3E%3D14-brightgreen.svg?style=flat&logo=node.js)](https://nodejs.org/) 6 | [![TypeScript](https://img.shields.io/badge/TypeScript-5.0%2B-blue.svg?style=flat&logo=typescript)](https://www.typescriptlang.org/) 7 | [![Axios](https://img.shields.io/badge/Axios-1.3.0-blue.svg?style=flat&logo=axios)](https://github.com/axios/axios) 8 | 9 | **FastFetch** is a smarter `fetch()` wrapper that adds **auto-retry** and **request deduplication** to standard HTTP requests, reducing boilerplate and increasing resilience. It is designed to work seamlessly in both Node.js and browser environments using modern ES modules. 10 | 11 | Currently live on NPM at [https://www.npmjs.com/package/@hoangsonw/fast-fetch](https://www.npmjs.com/package/@hoangsonw/fast-fetch). This package is a work in progress, and we welcome contributions and feedback! 12 | 13 | > Note: Currently, **FastFetch** does not support caching. For caching, consider using [GhostCache](https://www.npmjs.com/package/ghost-cache) in conjunction with FastFetch :) 14 | 15 | ## Table of Contents 16 | 17 | - [Features](#features) 18 | - [Installation](#installation) 19 | - [Usage](#usage) 20 | - [Basic Usage with Fetch](#basic-usage-with-fetch) 21 | - [Using FastFetch with Auto-Retry & Deduplication](#using-fastfetch-with-auto-retry--deduplication) 22 | - [Using FastFetch with Axios](#using-fastfetch-with-axios) 23 | - [API Reference](#api-reference) 24 | - [Configuration Options](#configuration-options) 25 | - [Advanced Examples](#advanced-examples) 26 | - [Testing](#testing) 27 | - [Demo Script](#demo-script) 28 | - [License](#license) 29 | - [Contributing](#contributing) 30 | 31 | ## Features 32 | 33 | - **Auto-Retry:** Automatically retries failed HTTP requests with configurable delay and retry count. 34 | - **Request Deduplication:** Merges multiple identical in-flight requests into a single network call. 35 | - **Minimal Boilerplate:** Wraps the native `fetch()` function with enhanced functionality. 36 | - **TypeScript Support:** Fully written in TypeScript with complete type definitions. 37 | - **ESM Compatible:** Compiled using NodeNext module resolution for seamless ESM integration. 38 | 39 | ## Installation 40 | 41 | ### Prerequisites 42 | 43 | - Node.js v14 or higher 44 | - npm v6 or higher 45 | 46 | ### Installing via NPM 47 | 48 | ```bash 49 | npm install @hoangsonw/fast-fetch 50 | ``` 51 | 52 | ### Installing via Yarn 53 | 54 | ```bash 55 | yarn add @hoangsonw/fast-fetch 56 | ``` 57 | 58 | ## Usage 59 | 60 | FastFetch can be used as a drop-in replacement for the native `fetch()` function with additional options. 61 | 62 | ### Basic Usage with Fetch 63 | 64 | Below is a simple example that uses FastFetch to make an API call and print the results: 65 | 66 | ```js 67 | import { fastFetch } from "@hoangsonw/fast-fetch"; 68 | 69 | fastFetch("https://pokeapi.co/api/v2/pokemon/ditto") 70 | .then((res) => res.json()) 71 | .then((data) => { 72 | console.log("Fetched data:", data); 73 | }) 74 | .catch((err) => console.error("Fetch error:", err)); 75 | ``` 76 | 77 | ### Using FastFetch with Auto-Retry & Deduplication 78 | 79 | FastFetch supports auto-retry and deduplication through additional options. For example, you can automatically retry up to 2 times with a delay of 2000ms between attempts, and deduplicate in-flight requests: 80 | 81 | ```js 82 | import { fastFetch } from "@hoangsonw/fast-fetch"; 83 | 84 | fastFetch("https://pokeapi.co/api/v2/pokemon/ditto", { 85 | retries: 2, 86 | retryDelay: 2000, 87 | deduplicate: true, 88 | shouldRetry: (errorOrResponse, attempt) => { 89 | console.log(`Retry attempt #${attempt}`); 90 | // If response exists and status is 5xx, retry 91 | if (errorOrResponse instanceof Response) { 92 | return errorOrResponse.status >= 500; 93 | } 94 | // For network errors or other errors, retry 95 | return true; 96 | }, 97 | }) 98 | .then((res) => res.json()) 99 | .then((data) => console.log("FastFetch data:", data)) 100 | .catch((err) => console.error("FastFetch error:", err)); 101 | ``` 102 | 103 | ### Using FastFetch with Axios 104 | 105 | FastFetch can deduplicate in-flight requests even when used alongside Axios by registering an Axios instance. This means if multiple identical requests are made concurrently via Axios, only one network call is performed. 106 | 107 | ```js 108 | import axios from "axios"; 109 | import { fastFetch, registerAxios } from "@hoangsonw/fast-fetch"; 110 | 111 | // Create an Axios instance 112 | const api = axios.create({ baseURL: "https://pokeapi.co/api/v2" }); 113 | 114 | // Register the Axios instance with FastFetch 115 | registerAxios(api); 116 | 117 | api 118 | .get("/pokemon/ditto") 119 | .then((response) => { 120 | console.log("Axios fetched data:", response.data); 121 | }) 122 | .catch((error) => { 123 | console.error("Axios error:", error); 124 | }); 125 | ``` 126 | 127 | ## API Reference 128 | 129 | ### `fastFetch(input: RequestInfo, init?: RequestInit & FastFetchOptions): Promise` 130 | 131 | - **Parameters:** 132 | 133 | - `input`: URL or Request object. 134 | - `init`: An object that extends standard `RequestInit` with additional options: 135 | - `retries`: _number_ — Number of retry attempts (default: `0`). 136 | - `retryDelay`: _number_ — Delay in milliseconds between retries (default: `1000`). 137 | - `deduplicate`: _boolean_ — Whether to deduplicate in-flight requests (default: `true`). 138 | - `shouldRetry`: _function_ — A custom function `(errorOrResponse: Response | Error, attempt: number) => boolean` that determines whether to retry based on error or response status. 139 | 140 | - **Returns:** 141 | A `Promise` that resolves to a `Response` object. 142 | 143 | ### Additional Exports 144 | 145 | - **`registerAxios(instance: AxiosInstance): void`** 146 | Registers an Axios instance so that FastFetch can deduplicate in-flight requests for Axios as well. 147 | 148 | - **Other functions:** 149 | FastFetch only wraps the native `fetch()` and does not cache responses (use GhostCache if caching is required). 150 | 151 | ## Configuration Options 152 | 153 | - **retries**: Number of times to retry the fetch on failure. 154 | - **retryDelay**: Delay (in milliseconds) before retrying. 155 | - **deduplicate**: When set to `true`, identical in-flight requests are deduplicated. 156 | - **shouldRetry**: Custom function to decide whether to retry a request based on error or response. 157 | 158 | ## Advanced Examples 159 | 160 | ### Custom Retry Logic 161 | 162 | Implement custom logic to only retry on specific HTTP status codes: 163 | 164 | ```js 165 | import { fastFetch } from "@hoangsonw/fast-fetch"; 166 | 167 | fastFetch("https://example.com/api/data", { 168 | retries: 3, 169 | retryDelay: 1500, 170 | shouldRetry: (errorOrResponse, attempt) => { 171 | if (errorOrResponse instanceof Response) { 172 | // Only retry for server errors 173 | return errorOrResponse.status >= 500; 174 | } 175 | return true; 176 | }, 177 | }) 178 | .then((res) => res.json()) 179 | .then((data) => console.log("Custom retry data:", data)) 180 | .catch((err) => console.error("Error with custom retry:", err)); 181 | ``` 182 | 183 | ### Deduplication in Action 184 | 185 | Demonstrate deduplication by firing multiple identical requests simultaneously: 186 | 187 | ```js 188 | import { fastFetch } from "@hoangsonw/fast-fetch"; 189 | 190 | const url = "https://pokeapi.co/api/v2/pokemon/ditto"; 191 | 192 | // Fire two identical requests concurrently. 193 | Promise.all([fastFetch(url), fastFetch(url)]) 194 | .then(async ([res1, res2]) => { 195 | const data1 = await res1.json(); 196 | const data2 = await res2.json(); 197 | console.log("Deduplication demo, data1:", data1); 198 | console.log("Deduplication demo, data2:", data2); 199 | }) 200 | .catch((err) => console.error("Deduplication error:", err)); 201 | ``` 202 | 203 | ## Testing 204 | 205 | FastFetch comes with a Jest test suite. To run tests: 206 | 207 | 1. **Install dependencies:** 208 | 209 | ```bash 210 | npm install 211 | ``` 212 | 213 | 2. **Run tests:** 214 | ```bash 215 | npm test 216 | ``` 217 | 218 | Example test files (found in the `__tests__` directory) demonstrate auto-retry, deduplication, and basic fetch functionality. 219 | 220 | ## Demo Script 221 | 222 | A demo script is included in the `__tests__` directory. To run the demo: 223 | 224 | ```bash 225 | npm run demo 226 | ``` 227 | 228 | It will execute a series of fetch requests and demonstrate the auto-retry and deduplication features. 229 | 230 | ## Contributing 231 | 232 | Contributions are welcome! Please follow these steps: 233 | 234 | 1. **Fork the Repository** 235 | 2. **Create a Feature Branch** 236 | ```bash 237 | git checkout -b feature/my-new-feature 238 | ``` 239 | 3. **Commit Your Changes** 240 | 4. **Submit a Pull Request** 241 | 242 | For major changes, please open an issue first to discuss your ideas. 243 | 244 | ## License 245 | 246 | This project is licensed under the MIT License. 247 | 248 | ## Final Remarks 249 | 250 | FastFetch is designed to enhance the native `fetch()` experience by adding auto-retry and deduplication features, making your API requests more robust and efficient without caching (use GhostCache for caching). Enjoy building resilient applications! 251 | 252 | Happy fetching! 🚀 253 | -------------------------------------------------------------------------------- /__tests__/demo.js: -------------------------------------------------------------------------------- 1 | import { fastFetch } from "@hoangsonw/fast-fetch"; 2 | 3 | fastFetch("https://pokeapi.co/api/v2/pokemon/ditto", { 4 | retries: 2, 5 | retryDelay: 2000, 6 | deduplicate: true, 7 | shouldRetry: (errorOrResponse, attempt) => { 8 | console.log(`Retry attempt #${attempt}`); 9 | 10 | // If it's a Response object (failed request) 11 | if (errorOrResponse instanceof Response) { 12 | return errorOrResponse.status >= 500; // Retry on 5xx errors 13 | } 14 | 15 | // If it's a network or other error 16 | return true; 17 | }, 18 | }) 19 | .then((res) => res.json()) 20 | .then((data) => { 21 | console.log("FastFetch data:", data); 22 | }) 23 | .catch((err) => { 24 | console.error("FastFetch error:", err); 25 | }); 26 | 27 | // Should output something like: 28 | // [FastFetch] Starting request for: https://pokeapi.co/api/v2/pokemon/ditto 29 | // [FastFetch] Attempt #1 for: https://pokeapi.co/api/v2/pokemon/ditto 30 | // [FastFetch] Stored in-flight request with signature: {"url":"https://pokeapi.co/api/v2/pokemon/ditto","method":"GET","headers":{},"body":null} 31 | // [FastFetch] Request succeeded on attempt #1 32 | // [FastFetch] Removed in-flight record for signature: {"url":"https://pokeapi.co/api/v2/pokemon/ditto","method":"GET","headers":{},"body":null} 33 | // FastFetch data: { 34 | // abilities: [ 35 | // { ability: [Object], is_hidden: false, slot: 1 }, 36 | // { ability: [Object], is_hidden: true, slot: 3 } 37 | // ], 38 | // base_experience: 101, 39 | // cries: { 40 | // latest: 'https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/latest/132.ogg', 41 | // legacy: 'https://raw.githubusercontent.com/PokeAPI/cries/main/cries/pokemon/legacy/132.ogg' 42 | // }, 43 | // forms: [ 44 | // { 45 | // name: 'ditto', 46 | // url: 'https://pokeapi.co/api/v2/pokemon-form/132/' 47 | // } 48 | // ], 49 | // game_indices: [ 50 | // { game_index: 76, version: [Object] }, 51 | // { game_index: 76, version: [Object] }, 52 | // { game_index: 76, version: [Object] }, 53 | // { game_index: 132, version: [Object] }, 54 | // { game_index: 132, version: [Object] }, 55 | // { game_index: 132, version: [Object] }, 56 | // { game_index: 132, version: [Object] }, 57 | // { game_index: 132, version: [Object] }, 58 | // { game_index: 132, version: [Object] }, 59 | // { game_index: 132, version: [Object] }, 60 | // { game_index: 132, version: [Object] }, 61 | // { game_index: 132, version: [Object] }, 62 | // { game_index: 132, version: [Object] }, 63 | // { game_index: 132, version: [Object] }, 64 | // { game_index: 132, version: [Object] }, 65 | // { game_index: 132, version: [Object] }, 66 | // { game_index: 132, version: [Object] }, 67 | // { game_index: 132, version: [Object] }, 68 | // { game_index: 132, version: [Object] }, 69 | // { game_index: 132, version: [Object] } 70 | // ], 71 | // height: 3, 72 | // held_items: [ 73 | // { item: [Object], version_details: [Array] }, 74 | // { item: [Object], version_details: [Array] } 75 | // ], 76 | // id: 132, 77 | // is_default: true, 78 | // location_area_encounters: 'https://pokeapi.co/api/v2/pokemon/132/encounters', 79 | // moves: [ { move: [Object], version_group_details: [Array] } ], 80 | // name: 'ditto', 81 | // order: 214, 82 | // past_abilities: [], 83 | // past_types: [], 84 | // species: { 85 | // name: 'ditto', 86 | // url: 'https://pokeapi.co/api/v2/pokemon-species/132/' 87 | // }, 88 | // sprites: { 89 | // back_default: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/132.png', 90 | // back_female: null, 91 | // back_shiny: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/back/shiny/132.png', 92 | // back_shiny_female: null, 93 | // front_default: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/132.png', 94 | // front_female: null, 95 | // front_shiny: 'https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/shiny/132.png', 96 | // front_shiny_female: null, 97 | // other: { 98 | // dream_world: [Object], 99 | // home: [Object], 100 | // 'official-artwork': [Object], 101 | // showdown: [Object] 102 | // }, 103 | // versions: { 104 | // 'generation-i': [Object], 105 | // 'generation-ii': [Object], 106 | // 'generation-iii': [Object], 107 | // 'generation-iv': [Object], 108 | // 'generation-v': [Object], 109 | // 'generation-vi': [Object], 110 | // 'generation-vii': [Object], 111 | // 'generation-viii': [Object] 112 | // } 113 | // }, 114 | // stats: [ 115 | // { base_stat: 48, effort: 1, stat: [Object] }, 116 | // { base_stat: 48, effort: 0, stat: [Object] }, 117 | // { base_stat: 48, effort: 0, stat: [Object] }, 118 | // { base_stat: 48, effort: 0, stat: [Object] }, 119 | // { base_stat: 48, effort: 0, stat: [Object] }, 120 | // { base_stat: 48, effort: 0, stat: [Object] } 121 | // ], 122 | // types: [ { slot: 1, type: [Object] } ], 123 | // weight: 40 124 | // } 125 | -------------------------------------------------------------------------------- /__tests__/demo.test.ts: -------------------------------------------------------------------------------- 1 | import { fastFetch } from "../src/index.js"; 2 | 3 | describe("FastFetch Basic Tests", () => { 4 | const POKE_API = "https://pokeapi.co/api/v2/pokemon/ditto"; 5 | 6 | it("makes a basic fetch call successfully", async () => { 7 | const response = await fastFetch(POKE_API); 8 | expect(response.ok).toBe(true); 9 | 10 | const data = await response.json(); 11 | expect(data).toHaveProperty("name", "ditto"); 12 | }); 13 | 14 | it("deduplicates in-flight requests", async () => { 15 | const start = Date.now(); 16 | 17 | const [res1, res2] = await Promise.all([ 18 | fastFetch(POKE_API), 19 | fastFetch(POKE_API), 20 | ]); 21 | const time = Date.now() - start; 22 | 23 | // Should have same data 24 | expect((await res1.json()).name).toBe("ditto"); 25 | expect((await res2.clone().json()).name).toBe("ditto"); 26 | 27 | // We didn't do extra requests, so hopefully we didn't wait twice 28 | // Not a perfect check, but indicates we merged calls. 29 | expect(time).toBeLessThan(2000); 30 | }); 31 | }); 32 | -------------------------------------------------------------------------------- /dist/fastFetch.d.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Options for controlling FastFetch behavior: 3 | * - `retries` -> number of times to retry on failure 4 | * - `retryDelay` -> base delay in ms before next retry (will be multiplied exponentially) 5 | * - `deduplicate` -> whether to merge identical requests in-flight 6 | * - `shouldRetry` -> custom logic to decide if we retry 7 | */ 8 | export interface FastFetchOptions { 9 | retries?: number; 10 | retryDelay?: number; 11 | deduplicate?: boolean; 12 | shouldRetry?: (error: any, attempt: number) => boolean; 13 | } 14 | /** 15 | * FastFetch main function 16 | * - Retries on error with exponential backoff 17 | * - Deduplicates in-flight requests if deduplicate = true 18 | */ 19 | export declare function fastFetch(input: RequestInfo, init?: RequestInit & FastFetchOptions): Promise; 20 | //# sourceMappingURL=fastFetch.d.ts.map -------------------------------------------------------------------------------- /dist/fastFetch.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"fastFetch.d.ts","sourceRoot":"","sources":["../src/fastFetch.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC;CACxD;AA6BD;;;;GAIG;AACH,wBAAsB,SAAS,CAC7B,KAAK,EAAE,WAAW,EAClB,IAAI,CAAC,EAAE,WAAW,GAAG,gBAAgB,GACpC,OAAO,CAAC,QAAQ,CAAC,CAkGnB"} -------------------------------------------------------------------------------- /dist/fastFetch.js: -------------------------------------------------------------------------------- 1 | import fetch from "cross-fetch"; 2 | /** 3 | * Ongoing in-flight requests for deduplication: 4 | * Keyed by a stable signature of { url, method, headers, body } 5 | */ 6 | const inFlightMap = new Map(); 7 | /** 8 | * Generate a signature for dedup if deduplicate is true 9 | */ 10 | function makeSignature(input, init) { 11 | // Basic approach: 12 | const normalized = { 13 | url: typeof input === "string" ? input : input.url, 14 | method: init?.method ?? "GET", 15 | headers: init?.headers ?? {}, 16 | body: init?.body ?? null, 17 | }; 18 | return JSON.stringify(normalized); 19 | } 20 | /** 21 | * Sleep helper for retryDelay 22 | */ 23 | function sleep(ms) { 24 | return new Promise((resolve) => setTimeout(resolve, ms)); 25 | } 26 | /** 27 | * FastFetch main function 28 | * - Retries on error with exponential backoff 29 | * - Deduplicates in-flight requests if deduplicate = true 30 | */ 31 | export async function fastFetch(input, init) { 32 | const { retries = 0, retryDelay = 1000, deduplicate = true, shouldRetry, } = init || {}; 33 | console.log("[FastFetch] Starting request for:", input); 34 | // If deduplicating, check if a matching in-flight request exists 35 | let signature = ""; 36 | if (deduplicate) { 37 | signature = makeSignature(input, init); 38 | if (inFlightMap.has(signature)) { 39 | console.log("[FastFetch] Found in-flight request for signature:", signature); 40 | return inFlightMap.get(signature); 41 | } 42 | } 43 | // Build a promise chain that tries up to retries + 1 times with exponential backoff 44 | let attempt = 0; 45 | let promise = (async function fetchWithRetry() { 46 | while (true) { 47 | try { 48 | attempt++; 49 | console.log(`[FastFetch] Attempt #${attempt} for:`, input); 50 | const response = await fetch(input, init); 51 | if (!response.ok && shouldRetry) { 52 | const doRetry = shouldRetry(response, attempt); 53 | console.log(`[FastFetch] Response not ok (status: ${response.status}). Retry decision: ${doRetry}`); 54 | if (doRetry && attempt <= retries) { 55 | const delay = retryDelay * Math.pow(2, attempt - 1); 56 | console.log(`[FastFetch] Waiting ${delay}ms (exponential backoff) before retrying...`); 57 | await sleep(delay); 58 | continue; // try again 59 | } 60 | } 61 | console.log(`[FastFetch] Request succeeded on attempt #${attempt}`); 62 | return response; 63 | } 64 | catch (error) { 65 | console.log(`[FastFetch] Caught error on attempt #${attempt}:`, error); 66 | if (shouldRetry) { 67 | const doRetry = shouldRetry(error, attempt); 68 | console.log(`[FastFetch] Retry decision based on error: ${doRetry}`); 69 | if (doRetry && attempt <= retries) { 70 | const delay = retryDelay * Math.pow(2, attempt - 1); 71 | console.log(`[FastFetch] Waiting ${delay}ms (exponential backoff) before retrying after error...`); 72 | await sleep(delay); 73 | continue; 74 | } 75 | } 76 | else { 77 | if (attempt <= retries) { 78 | const delay = retryDelay * Math.pow(2, attempt - 1); 79 | console.log(`[FastFetch] Retrying attempt #${attempt} after error. Waiting ${delay}ms...`); 80 | await sleep(delay); 81 | continue; 82 | } 83 | } 84 | console.log("[FastFetch] No more retries. Throwing error."); 85 | throw error; 86 | } 87 | } 88 | })(); 89 | // If deduplicating, store in the map so subsequent calls get the same promise 90 | if (deduplicate) { 91 | inFlightMap.set(signature, promise); 92 | console.log("[FastFetch] Stored in-flight request with signature:", signature); 93 | } 94 | try { 95 | const result = await promise; 96 | return result; 97 | } 98 | finally { 99 | // Once done (success or fail), remove from inFlightMap 100 | if (deduplicate) { 101 | inFlightMap.delete(signature); 102 | console.log("[FastFetch] Removed in-flight record for signature:", signature); 103 | } 104 | } 105 | } 106 | -------------------------------------------------------------------------------- /dist/index.d.ts: -------------------------------------------------------------------------------- 1 | export { fastFetch } from "./fastFetch.js"; 2 | export type { FastFetchOptions } from "./fastFetch.js"; 3 | //# sourceMappingURL=index.d.ts.map -------------------------------------------------------------------------------- /dist/index.d.ts.map: -------------------------------------------------------------------------------- 1 | {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC"} -------------------------------------------------------------------------------- /dist/index.js: -------------------------------------------------------------------------------- 1 | export { fastFetch } from "./fastFetch.js"; 2 | -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- 1 | export interface FastFetchOptions { 2 | /** Number of retries if fetch fails (default: 0 = no retry) */ 3 | retries?: number; 4 | /** Time to wait (ms) before retry (default: 1000 ms) */ 5 | retryDelay?: number; 6 | /** Deduplicate in-flight requests with same signature (default: true) */ 7 | deduplicate?: boolean; 8 | /** Optional function to decide if a retry is needed based on status, error, etc. */ 9 | shouldRetry?: (error: any, attempt: number) => boolean; 10 | } 11 | 12 | export declare function fastFetch( 13 | input: RequestInfo, 14 | init?: RequestInit & FastFetchOptions, 15 | ): Promise; 16 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@hoangsonw/fast-fetch", 3 | "version": "1.1.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "@hoangsonw/fast-fetch", 9 | "version": "1.1.1", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@hoangsonw/fast-fetch": "^1.1.1", 13 | "cross-fetch": "^4.1.0", 14 | "prettier": "^3.5.3" 15 | }, 16 | "devDependencies": { 17 | "@types/jest": "^29.0.0", 18 | "jest": "^29.0.0", 19 | "ts-jest": "^29.0.0", 20 | "ts-node": "^10.9.2", 21 | "typescript": "^5.0.0" 22 | } 23 | }, 24 | "node_modules/@ampproject/remapping": { 25 | "version": "2.3.0", 26 | "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", 27 | "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", 28 | "dev": true, 29 | "dependencies": { 30 | "@jridgewell/gen-mapping": "^0.3.5", 31 | "@jridgewell/trace-mapping": "^0.3.24" 32 | }, 33 | "engines": { 34 | "node": ">=6.0.0" 35 | } 36 | }, 37 | "node_modules/@babel/code-frame": { 38 | "version": "7.26.2", 39 | "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", 40 | "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", 41 | "dev": true, 42 | "dependencies": { 43 | "@babel/helper-validator-identifier": "^7.25.9", 44 | "js-tokens": "^4.0.0", 45 | "picocolors": "^1.0.0" 46 | }, 47 | "engines": { 48 | "node": ">=6.9.0" 49 | } 50 | }, 51 | "node_modules/@babel/compat-data": { 52 | "version": "7.26.8", 53 | "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", 54 | "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", 55 | "dev": true, 56 | "engines": { 57 | "node": ">=6.9.0" 58 | } 59 | }, 60 | "node_modules/@babel/core": { 61 | "version": "7.26.10", 62 | "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", 63 | "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", 64 | "dev": true, 65 | "dependencies": { 66 | "@ampproject/remapping": "^2.2.0", 67 | "@babel/code-frame": "^7.26.2", 68 | "@babel/generator": "^7.26.10", 69 | "@babel/helper-compilation-targets": "^7.26.5", 70 | "@babel/helper-module-transforms": "^7.26.0", 71 | "@babel/helpers": "^7.26.10", 72 | "@babel/parser": "^7.26.10", 73 | "@babel/template": "^7.26.9", 74 | "@babel/traverse": "^7.26.10", 75 | "@babel/types": "^7.26.10", 76 | "convert-source-map": "^2.0.0", 77 | "debug": "^4.1.0", 78 | "gensync": "^1.0.0-beta.2", 79 | "json5": "^2.2.3", 80 | "semver": "^6.3.1" 81 | }, 82 | "engines": { 83 | "node": ">=6.9.0" 84 | }, 85 | "funding": { 86 | "type": "opencollective", 87 | "url": "https://opencollective.com/babel" 88 | } 89 | }, 90 | "node_modules/@babel/generator": { 91 | "version": "7.26.10", 92 | "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.10.tgz", 93 | "integrity": "sha512-rRHT8siFIXQrAYOYqZQVsAr8vJ+cBNqcVAY6m5V8/4QqzaPl+zDBe6cLEPRDuNOUf3ww8RfJVlOyQMoSI+5Ang==", 94 | "dev": true, 95 | "dependencies": { 96 | "@babel/parser": "^7.26.10", 97 | "@babel/types": "^7.26.10", 98 | "@jridgewell/gen-mapping": "^0.3.5", 99 | "@jridgewell/trace-mapping": "^0.3.25", 100 | "jsesc": "^3.0.2" 101 | }, 102 | "engines": { 103 | "node": ">=6.9.0" 104 | } 105 | }, 106 | "node_modules/@babel/helper-compilation-targets": { 107 | "version": "7.26.5", 108 | "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz", 109 | "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==", 110 | "dev": true, 111 | "dependencies": { 112 | "@babel/compat-data": "^7.26.5", 113 | "@babel/helper-validator-option": "^7.25.9", 114 | "browserslist": "^4.24.0", 115 | "lru-cache": "^5.1.1", 116 | "semver": "^6.3.1" 117 | }, 118 | "engines": { 119 | "node": ">=6.9.0" 120 | } 121 | }, 122 | "node_modules/@babel/helper-module-imports": { 123 | "version": "7.25.9", 124 | "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", 125 | "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", 126 | "dev": true, 127 | "dependencies": { 128 | "@babel/traverse": "^7.25.9", 129 | "@babel/types": "^7.25.9" 130 | }, 131 | "engines": { 132 | "node": ">=6.9.0" 133 | } 134 | }, 135 | "node_modules/@babel/helper-module-transforms": { 136 | "version": "7.26.0", 137 | "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", 138 | "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", 139 | "dev": true, 140 | "dependencies": { 141 | "@babel/helper-module-imports": "^7.25.9", 142 | "@babel/helper-validator-identifier": "^7.25.9", 143 | "@babel/traverse": "^7.25.9" 144 | }, 145 | "engines": { 146 | "node": ">=6.9.0" 147 | }, 148 | "peerDependencies": { 149 | "@babel/core": "^7.0.0" 150 | } 151 | }, 152 | "node_modules/@babel/helper-plugin-utils": { 153 | "version": "7.26.5", 154 | "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", 155 | "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", 156 | "dev": true, 157 | "engines": { 158 | "node": ">=6.9.0" 159 | } 160 | }, 161 | "node_modules/@babel/helper-string-parser": { 162 | "version": "7.25.9", 163 | "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", 164 | "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", 165 | "dev": true, 166 | "engines": { 167 | "node": ">=6.9.0" 168 | } 169 | }, 170 | "node_modules/@babel/helper-validator-identifier": { 171 | "version": "7.25.9", 172 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", 173 | "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", 174 | "dev": true, 175 | "engines": { 176 | "node": ">=6.9.0" 177 | } 178 | }, 179 | "node_modules/@babel/helper-validator-option": { 180 | "version": "7.25.9", 181 | "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", 182 | "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", 183 | "dev": true, 184 | "engines": { 185 | "node": ">=6.9.0" 186 | } 187 | }, 188 | "node_modules/@babel/helpers": { 189 | "version": "7.26.10", 190 | "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.10.tgz", 191 | "integrity": "sha512-UPYc3SauzZ3JGgj87GgZ89JVdC5dj0AoetR5Bw6wj4niittNyFh6+eOGonYvJ1ao6B8lEa3Q3klS7ADZ53bc5g==", 192 | "dev": true, 193 | "dependencies": { 194 | "@babel/template": "^7.26.9", 195 | "@babel/types": "^7.26.10" 196 | }, 197 | "engines": { 198 | "node": ">=6.9.0" 199 | } 200 | }, 201 | "node_modules/@babel/parser": { 202 | "version": "7.26.10", 203 | "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.10.tgz", 204 | "integrity": "sha512-6aQR2zGE/QFi8JpDLjUZEPYOs7+mhKXm86VaKFiLP35JQwQb6bwUE+XbvkH0EptsYhbNBSUGaUBLKqxH1xSgsA==", 205 | "dev": true, 206 | "dependencies": { 207 | "@babel/types": "^7.26.10" 208 | }, 209 | "bin": { 210 | "parser": "bin/babel-parser.js" 211 | }, 212 | "engines": { 213 | "node": ">=6.0.0" 214 | } 215 | }, 216 | "node_modules/@babel/plugin-syntax-async-generators": { 217 | "version": "7.8.4", 218 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", 219 | "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", 220 | "dev": true, 221 | "dependencies": { 222 | "@babel/helper-plugin-utils": "^7.8.0" 223 | }, 224 | "peerDependencies": { 225 | "@babel/core": "^7.0.0-0" 226 | } 227 | }, 228 | "node_modules/@babel/plugin-syntax-bigint": { 229 | "version": "7.8.3", 230 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", 231 | "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", 232 | "dev": true, 233 | "dependencies": { 234 | "@babel/helper-plugin-utils": "^7.8.0" 235 | }, 236 | "peerDependencies": { 237 | "@babel/core": "^7.0.0-0" 238 | } 239 | }, 240 | "node_modules/@babel/plugin-syntax-class-properties": { 241 | "version": "7.12.13", 242 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", 243 | "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", 244 | "dev": true, 245 | "dependencies": { 246 | "@babel/helper-plugin-utils": "^7.12.13" 247 | }, 248 | "peerDependencies": { 249 | "@babel/core": "^7.0.0-0" 250 | } 251 | }, 252 | "node_modules/@babel/plugin-syntax-class-static-block": { 253 | "version": "7.14.5", 254 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", 255 | "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", 256 | "dev": true, 257 | "dependencies": { 258 | "@babel/helper-plugin-utils": "^7.14.5" 259 | }, 260 | "engines": { 261 | "node": ">=6.9.0" 262 | }, 263 | "peerDependencies": { 264 | "@babel/core": "^7.0.0-0" 265 | } 266 | }, 267 | "node_modules/@babel/plugin-syntax-import-attributes": { 268 | "version": "7.26.0", 269 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", 270 | "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", 271 | "dev": true, 272 | "dependencies": { 273 | "@babel/helper-plugin-utils": "^7.25.9" 274 | }, 275 | "engines": { 276 | "node": ">=6.9.0" 277 | }, 278 | "peerDependencies": { 279 | "@babel/core": "^7.0.0-0" 280 | } 281 | }, 282 | "node_modules/@babel/plugin-syntax-import-meta": { 283 | "version": "7.10.4", 284 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", 285 | "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", 286 | "dev": true, 287 | "dependencies": { 288 | "@babel/helper-plugin-utils": "^7.10.4" 289 | }, 290 | "peerDependencies": { 291 | "@babel/core": "^7.0.0-0" 292 | } 293 | }, 294 | "node_modules/@babel/plugin-syntax-json-strings": { 295 | "version": "7.8.3", 296 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", 297 | "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", 298 | "dev": true, 299 | "dependencies": { 300 | "@babel/helper-plugin-utils": "^7.8.0" 301 | }, 302 | "peerDependencies": { 303 | "@babel/core": "^7.0.0-0" 304 | } 305 | }, 306 | "node_modules/@babel/plugin-syntax-jsx": { 307 | "version": "7.25.9", 308 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", 309 | "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", 310 | "dev": true, 311 | "dependencies": { 312 | "@babel/helper-plugin-utils": "^7.25.9" 313 | }, 314 | "engines": { 315 | "node": ">=6.9.0" 316 | }, 317 | "peerDependencies": { 318 | "@babel/core": "^7.0.0-0" 319 | } 320 | }, 321 | "node_modules/@babel/plugin-syntax-logical-assignment-operators": { 322 | "version": "7.10.4", 323 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", 324 | "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", 325 | "dev": true, 326 | "dependencies": { 327 | "@babel/helper-plugin-utils": "^7.10.4" 328 | }, 329 | "peerDependencies": { 330 | "@babel/core": "^7.0.0-0" 331 | } 332 | }, 333 | "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { 334 | "version": "7.8.3", 335 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", 336 | "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", 337 | "dev": true, 338 | "dependencies": { 339 | "@babel/helper-plugin-utils": "^7.8.0" 340 | }, 341 | "peerDependencies": { 342 | "@babel/core": "^7.0.0-0" 343 | } 344 | }, 345 | "node_modules/@babel/plugin-syntax-numeric-separator": { 346 | "version": "7.10.4", 347 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", 348 | "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", 349 | "dev": true, 350 | "dependencies": { 351 | "@babel/helper-plugin-utils": "^7.10.4" 352 | }, 353 | "peerDependencies": { 354 | "@babel/core": "^7.0.0-0" 355 | } 356 | }, 357 | "node_modules/@babel/plugin-syntax-object-rest-spread": { 358 | "version": "7.8.3", 359 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", 360 | "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", 361 | "dev": true, 362 | "dependencies": { 363 | "@babel/helper-plugin-utils": "^7.8.0" 364 | }, 365 | "peerDependencies": { 366 | "@babel/core": "^7.0.0-0" 367 | } 368 | }, 369 | "node_modules/@babel/plugin-syntax-optional-catch-binding": { 370 | "version": "7.8.3", 371 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", 372 | "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", 373 | "dev": true, 374 | "dependencies": { 375 | "@babel/helper-plugin-utils": "^7.8.0" 376 | }, 377 | "peerDependencies": { 378 | "@babel/core": "^7.0.0-0" 379 | } 380 | }, 381 | "node_modules/@babel/plugin-syntax-optional-chaining": { 382 | "version": "7.8.3", 383 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", 384 | "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", 385 | "dev": true, 386 | "dependencies": { 387 | "@babel/helper-plugin-utils": "^7.8.0" 388 | }, 389 | "peerDependencies": { 390 | "@babel/core": "^7.0.0-0" 391 | } 392 | }, 393 | "node_modules/@babel/plugin-syntax-private-property-in-object": { 394 | "version": "7.14.5", 395 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", 396 | "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", 397 | "dev": true, 398 | "dependencies": { 399 | "@babel/helper-plugin-utils": "^7.14.5" 400 | }, 401 | "engines": { 402 | "node": ">=6.9.0" 403 | }, 404 | "peerDependencies": { 405 | "@babel/core": "^7.0.0-0" 406 | } 407 | }, 408 | "node_modules/@babel/plugin-syntax-top-level-await": { 409 | "version": "7.14.5", 410 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", 411 | "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", 412 | "dev": true, 413 | "dependencies": { 414 | "@babel/helper-plugin-utils": "^7.14.5" 415 | }, 416 | "engines": { 417 | "node": ">=6.9.0" 418 | }, 419 | "peerDependencies": { 420 | "@babel/core": "^7.0.0-0" 421 | } 422 | }, 423 | "node_modules/@babel/plugin-syntax-typescript": { 424 | "version": "7.25.9", 425 | "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", 426 | "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", 427 | "dev": true, 428 | "dependencies": { 429 | "@babel/helper-plugin-utils": "^7.25.9" 430 | }, 431 | "engines": { 432 | "node": ">=6.9.0" 433 | }, 434 | "peerDependencies": { 435 | "@babel/core": "^7.0.0-0" 436 | } 437 | }, 438 | "node_modules/@babel/template": { 439 | "version": "7.26.9", 440 | "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.26.9.tgz", 441 | "integrity": "sha512-qyRplbeIpNZhmzOysF/wFMuP9sctmh2cFzRAZOn1YapxBsE1i9bJIY586R/WBLfLcmcBlM8ROBiQURnnNy+zfA==", 442 | "dev": true, 443 | "dependencies": { 444 | "@babel/code-frame": "^7.26.2", 445 | "@babel/parser": "^7.26.9", 446 | "@babel/types": "^7.26.9" 447 | }, 448 | "engines": { 449 | "node": ">=6.9.0" 450 | } 451 | }, 452 | "node_modules/@babel/traverse": { 453 | "version": "7.26.10", 454 | "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.10.tgz", 455 | "integrity": "sha512-k8NuDrxr0WrPH5Aupqb2LCVURP/S0vBEn5mK6iH+GIYob66U5EtoZvcdudR2jQ4cmTwhEwW1DLB+Yyas9zjF6A==", 456 | "dev": true, 457 | "dependencies": { 458 | "@babel/code-frame": "^7.26.2", 459 | "@babel/generator": "^7.26.10", 460 | "@babel/parser": "^7.26.10", 461 | "@babel/template": "^7.26.9", 462 | "@babel/types": "^7.26.10", 463 | "debug": "^4.3.1", 464 | "globals": "^11.1.0" 465 | }, 466 | "engines": { 467 | "node": ">=6.9.0" 468 | } 469 | }, 470 | "node_modules/@babel/types": { 471 | "version": "7.26.10", 472 | "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.10.tgz", 473 | "integrity": "sha512-emqcG3vHrpxUKTrxcblR36dcrcoRDvKmnL/dCL6ZsHaShW80qxCAcNhzQZrpeM765VzEos+xOi4s+r4IXzTwdQ==", 474 | "dev": true, 475 | "dependencies": { 476 | "@babel/helper-string-parser": "^7.25.9", 477 | "@babel/helper-validator-identifier": "^7.25.9" 478 | }, 479 | "engines": { 480 | "node": ">=6.9.0" 481 | } 482 | }, 483 | "node_modules/@bcoe/v8-coverage": { 484 | "version": "0.2.3", 485 | "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", 486 | "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", 487 | "dev": true 488 | }, 489 | "node_modules/@cspotcode/source-map-support": { 490 | "version": "0.8.1", 491 | "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz", 492 | "integrity": "sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==", 493 | "dev": true, 494 | "dependencies": { 495 | "@jridgewell/trace-mapping": "0.3.9" 496 | }, 497 | "engines": { 498 | "node": ">=12" 499 | } 500 | }, 501 | "node_modules/@cspotcode/source-map-support/node_modules/@jridgewell/trace-mapping": { 502 | "version": "0.3.9", 503 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz", 504 | "integrity": "sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==", 505 | "dev": true, 506 | "dependencies": { 507 | "@jridgewell/resolve-uri": "^3.0.3", 508 | "@jridgewell/sourcemap-codec": "^1.4.10" 509 | } 510 | }, 511 | "node_modules/@hoangsonw/fast-fetch": { 512 | "version": "1.1.1", 513 | "resolved": "https://registry.npmjs.org/@hoangsonw/fast-fetch/-/fast-fetch-1.1.1.tgz", 514 | "integrity": "sha512-qcdh7ci7gzJ0yZbmANHeiE8PAtBeF2yqCHabw7GX5zjVoWWYliGUaGgXPuLMSZJUoMWG09JYxs/yv3UUBln7mQ==", 515 | "dependencies": { 516 | "@hoangsonw/fast-fetch": "^1.0.0", 517 | "cross-fetch": "^4.1.0", 518 | "prettier": "^3.5.3" 519 | } 520 | }, 521 | "node_modules/@istanbuljs/load-nyc-config": { 522 | "version": "1.1.0", 523 | "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", 524 | "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", 525 | "dev": true, 526 | "dependencies": { 527 | "camelcase": "^5.3.1", 528 | "find-up": "^4.1.0", 529 | "get-package-type": "^0.1.0", 530 | "js-yaml": "^3.13.1", 531 | "resolve-from": "^5.0.0" 532 | }, 533 | "engines": { 534 | "node": ">=8" 535 | } 536 | }, 537 | "node_modules/@istanbuljs/schema": { 538 | "version": "0.1.3", 539 | "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", 540 | "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", 541 | "dev": true, 542 | "engines": { 543 | "node": ">=8" 544 | } 545 | }, 546 | "node_modules/@jest/console": { 547 | "version": "29.7.0", 548 | "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", 549 | "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", 550 | "dev": true, 551 | "dependencies": { 552 | "@jest/types": "^29.6.3", 553 | "@types/node": "*", 554 | "chalk": "^4.0.0", 555 | "jest-message-util": "^29.7.0", 556 | "jest-util": "^29.7.0", 557 | "slash": "^3.0.0" 558 | }, 559 | "engines": { 560 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 561 | } 562 | }, 563 | "node_modules/@jest/core": { 564 | "version": "29.7.0", 565 | "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", 566 | "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", 567 | "dev": true, 568 | "dependencies": { 569 | "@jest/console": "^29.7.0", 570 | "@jest/reporters": "^29.7.0", 571 | "@jest/test-result": "^29.7.0", 572 | "@jest/transform": "^29.7.0", 573 | "@jest/types": "^29.6.3", 574 | "@types/node": "*", 575 | "ansi-escapes": "^4.2.1", 576 | "chalk": "^4.0.0", 577 | "ci-info": "^3.2.0", 578 | "exit": "^0.1.2", 579 | "graceful-fs": "^4.2.9", 580 | "jest-changed-files": "^29.7.0", 581 | "jest-config": "^29.7.0", 582 | "jest-haste-map": "^29.7.0", 583 | "jest-message-util": "^29.7.0", 584 | "jest-regex-util": "^29.6.3", 585 | "jest-resolve": "^29.7.0", 586 | "jest-resolve-dependencies": "^29.7.0", 587 | "jest-runner": "^29.7.0", 588 | "jest-runtime": "^29.7.0", 589 | "jest-snapshot": "^29.7.0", 590 | "jest-util": "^29.7.0", 591 | "jest-validate": "^29.7.0", 592 | "jest-watcher": "^29.7.0", 593 | "micromatch": "^4.0.4", 594 | "pretty-format": "^29.7.0", 595 | "slash": "^3.0.0", 596 | "strip-ansi": "^6.0.0" 597 | }, 598 | "engines": { 599 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 600 | }, 601 | "peerDependencies": { 602 | "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" 603 | }, 604 | "peerDependenciesMeta": { 605 | "node-notifier": { 606 | "optional": true 607 | } 608 | } 609 | }, 610 | "node_modules/@jest/environment": { 611 | "version": "29.7.0", 612 | "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", 613 | "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", 614 | "dev": true, 615 | "dependencies": { 616 | "@jest/fake-timers": "^29.7.0", 617 | "@jest/types": "^29.6.3", 618 | "@types/node": "*", 619 | "jest-mock": "^29.7.0" 620 | }, 621 | "engines": { 622 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 623 | } 624 | }, 625 | "node_modules/@jest/expect": { 626 | "version": "29.7.0", 627 | "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", 628 | "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", 629 | "dev": true, 630 | "dependencies": { 631 | "expect": "^29.7.0", 632 | "jest-snapshot": "^29.7.0" 633 | }, 634 | "engines": { 635 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 636 | } 637 | }, 638 | "node_modules/@jest/expect-utils": { 639 | "version": "29.7.0", 640 | "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", 641 | "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", 642 | "dev": true, 643 | "dependencies": { 644 | "jest-get-type": "^29.6.3" 645 | }, 646 | "engines": { 647 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 648 | } 649 | }, 650 | "node_modules/@jest/fake-timers": { 651 | "version": "29.7.0", 652 | "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", 653 | "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", 654 | "dev": true, 655 | "dependencies": { 656 | "@jest/types": "^29.6.3", 657 | "@sinonjs/fake-timers": "^10.0.2", 658 | "@types/node": "*", 659 | "jest-message-util": "^29.7.0", 660 | "jest-mock": "^29.7.0", 661 | "jest-util": "^29.7.0" 662 | }, 663 | "engines": { 664 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 665 | } 666 | }, 667 | "node_modules/@jest/globals": { 668 | "version": "29.7.0", 669 | "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", 670 | "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", 671 | "dev": true, 672 | "dependencies": { 673 | "@jest/environment": "^29.7.0", 674 | "@jest/expect": "^29.7.0", 675 | "@jest/types": "^29.6.3", 676 | "jest-mock": "^29.7.0" 677 | }, 678 | "engines": { 679 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 680 | } 681 | }, 682 | "node_modules/@jest/reporters": { 683 | "version": "29.7.0", 684 | "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", 685 | "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", 686 | "dev": true, 687 | "dependencies": { 688 | "@bcoe/v8-coverage": "^0.2.3", 689 | "@jest/console": "^29.7.0", 690 | "@jest/test-result": "^29.7.0", 691 | "@jest/transform": "^29.7.0", 692 | "@jest/types": "^29.6.3", 693 | "@jridgewell/trace-mapping": "^0.3.18", 694 | "@types/node": "*", 695 | "chalk": "^4.0.0", 696 | "collect-v8-coverage": "^1.0.0", 697 | "exit": "^0.1.2", 698 | "glob": "^7.1.3", 699 | "graceful-fs": "^4.2.9", 700 | "istanbul-lib-coverage": "^3.0.0", 701 | "istanbul-lib-instrument": "^6.0.0", 702 | "istanbul-lib-report": "^3.0.0", 703 | "istanbul-lib-source-maps": "^4.0.0", 704 | "istanbul-reports": "^3.1.3", 705 | "jest-message-util": "^29.7.0", 706 | "jest-util": "^29.7.0", 707 | "jest-worker": "^29.7.0", 708 | "slash": "^3.0.0", 709 | "string-length": "^4.0.1", 710 | "strip-ansi": "^6.0.0", 711 | "v8-to-istanbul": "^9.0.1" 712 | }, 713 | "engines": { 714 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 715 | }, 716 | "peerDependencies": { 717 | "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" 718 | }, 719 | "peerDependenciesMeta": { 720 | "node-notifier": { 721 | "optional": true 722 | } 723 | } 724 | }, 725 | "node_modules/@jest/schemas": { 726 | "version": "29.6.3", 727 | "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", 728 | "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", 729 | "dev": true, 730 | "dependencies": { 731 | "@sinclair/typebox": "^0.27.8" 732 | }, 733 | "engines": { 734 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 735 | } 736 | }, 737 | "node_modules/@jest/source-map": { 738 | "version": "29.6.3", 739 | "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", 740 | "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", 741 | "dev": true, 742 | "dependencies": { 743 | "@jridgewell/trace-mapping": "^0.3.18", 744 | "callsites": "^3.0.0", 745 | "graceful-fs": "^4.2.9" 746 | }, 747 | "engines": { 748 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 749 | } 750 | }, 751 | "node_modules/@jest/test-result": { 752 | "version": "29.7.0", 753 | "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", 754 | "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", 755 | "dev": true, 756 | "dependencies": { 757 | "@jest/console": "^29.7.0", 758 | "@jest/types": "^29.6.3", 759 | "@types/istanbul-lib-coverage": "^2.0.0", 760 | "collect-v8-coverage": "^1.0.0" 761 | }, 762 | "engines": { 763 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 764 | } 765 | }, 766 | "node_modules/@jest/test-sequencer": { 767 | "version": "29.7.0", 768 | "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", 769 | "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", 770 | "dev": true, 771 | "dependencies": { 772 | "@jest/test-result": "^29.7.0", 773 | "graceful-fs": "^4.2.9", 774 | "jest-haste-map": "^29.7.0", 775 | "slash": "^3.0.0" 776 | }, 777 | "engines": { 778 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 779 | } 780 | }, 781 | "node_modules/@jest/transform": { 782 | "version": "29.7.0", 783 | "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", 784 | "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", 785 | "dev": true, 786 | "dependencies": { 787 | "@babel/core": "^7.11.6", 788 | "@jest/types": "^29.6.3", 789 | "@jridgewell/trace-mapping": "^0.3.18", 790 | "babel-plugin-istanbul": "^6.1.1", 791 | "chalk": "^4.0.0", 792 | "convert-source-map": "^2.0.0", 793 | "fast-json-stable-stringify": "^2.1.0", 794 | "graceful-fs": "^4.2.9", 795 | "jest-haste-map": "^29.7.0", 796 | "jest-regex-util": "^29.6.3", 797 | "jest-util": "^29.7.0", 798 | "micromatch": "^4.0.4", 799 | "pirates": "^4.0.4", 800 | "slash": "^3.0.0", 801 | "write-file-atomic": "^4.0.2" 802 | }, 803 | "engines": { 804 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 805 | } 806 | }, 807 | "node_modules/@jest/types": { 808 | "version": "29.6.3", 809 | "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", 810 | "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", 811 | "dev": true, 812 | "dependencies": { 813 | "@jest/schemas": "^29.6.3", 814 | "@types/istanbul-lib-coverage": "^2.0.0", 815 | "@types/istanbul-reports": "^3.0.0", 816 | "@types/node": "*", 817 | "@types/yargs": "^17.0.8", 818 | "chalk": "^4.0.0" 819 | }, 820 | "engines": { 821 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 822 | } 823 | }, 824 | "node_modules/@jridgewell/gen-mapping": { 825 | "version": "0.3.8", 826 | "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", 827 | "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", 828 | "dev": true, 829 | "dependencies": { 830 | "@jridgewell/set-array": "^1.2.1", 831 | "@jridgewell/sourcemap-codec": "^1.4.10", 832 | "@jridgewell/trace-mapping": "^0.3.24" 833 | }, 834 | "engines": { 835 | "node": ">=6.0.0" 836 | } 837 | }, 838 | "node_modules/@jridgewell/resolve-uri": { 839 | "version": "3.1.2", 840 | "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", 841 | "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", 842 | "dev": true, 843 | "engines": { 844 | "node": ">=6.0.0" 845 | } 846 | }, 847 | "node_modules/@jridgewell/set-array": { 848 | "version": "1.2.1", 849 | "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", 850 | "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", 851 | "dev": true, 852 | "engines": { 853 | "node": ">=6.0.0" 854 | } 855 | }, 856 | "node_modules/@jridgewell/sourcemap-codec": { 857 | "version": "1.5.0", 858 | "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", 859 | "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", 860 | "dev": true 861 | }, 862 | "node_modules/@jridgewell/trace-mapping": { 863 | "version": "0.3.25", 864 | "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", 865 | "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", 866 | "dev": true, 867 | "dependencies": { 868 | "@jridgewell/resolve-uri": "^3.1.0", 869 | "@jridgewell/sourcemap-codec": "^1.4.14" 870 | } 871 | }, 872 | "node_modules/@sinclair/typebox": { 873 | "version": "0.27.8", 874 | "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", 875 | "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", 876 | "dev": true 877 | }, 878 | "node_modules/@sinonjs/commons": { 879 | "version": "3.0.1", 880 | "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", 881 | "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", 882 | "dev": true, 883 | "dependencies": { 884 | "type-detect": "4.0.8" 885 | } 886 | }, 887 | "node_modules/@sinonjs/fake-timers": { 888 | "version": "10.3.0", 889 | "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", 890 | "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", 891 | "dev": true, 892 | "dependencies": { 893 | "@sinonjs/commons": "^3.0.0" 894 | } 895 | }, 896 | "node_modules/@tsconfig/node10": { 897 | "version": "1.0.11", 898 | "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.11.tgz", 899 | "integrity": "sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==", 900 | "dev": true 901 | }, 902 | "node_modules/@tsconfig/node12": { 903 | "version": "1.0.11", 904 | "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz", 905 | "integrity": "sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==", 906 | "dev": true 907 | }, 908 | "node_modules/@tsconfig/node14": { 909 | "version": "1.0.3", 910 | "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz", 911 | "integrity": "sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==", 912 | "dev": true 913 | }, 914 | "node_modules/@tsconfig/node16": { 915 | "version": "1.0.4", 916 | "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz", 917 | "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", 918 | "dev": true 919 | }, 920 | "node_modules/@types/babel__core": { 921 | "version": "7.20.5", 922 | "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", 923 | "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", 924 | "dev": true, 925 | "dependencies": { 926 | "@babel/parser": "^7.20.7", 927 | "@babel/types": "^7.20.7", 928 | "@types/babel__generator": "*", 929 | "@types/babel__template": "*", 930 | "@types/babel__traverse": "*" 931 | } 932 | }, 933 | "node_modules/@types/babel__generator": { 934 | "version": "7.6.8", 935 | "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", 936 | "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", 937 | "dev": true, 938 | "dependencies": { 939 | "@babel/types": "^7.0.0" 940 | } 941 | }, 942 | "node_modules/@types/babel__template": { 943 | "version": "7.4.4", 944 | "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", 945 | "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", 946 | "dev": true, 947 | "dependencies": { 948 | "@babel/parser": "^7.1.0", 949 | "@babel/types": "^7.0.0" 950 | } 951 | }, 952 | "node_modules/@types/babel__traverse": { 953 | "version": "7.20.6", 954 | "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", 955 | "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", 956 | "dev": true, 957 | "dependencies": { 958 | "@babel/types": "^7.20.7" 959 | } 960 | }, 961 | "node_modules/@types/graceful-fs": { 962 | "version": "4.1.9", 963 | "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", 964 | "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", 965 | "dev": true, 966 | "dependencies": { 967 | "@types/node": "*" 968 | } 969 | }, 970 | "node_modules/@types/istanbul-lib-coverage": { 971 | "version": "2.0.6", 972 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", 973 | "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", 974 | "dev": true 975 | }, 976 | "node_modules/@types/istanbul-lib-report": { 977 | "version": "3.0.3", 978 | "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", 979 | "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", 980 | "dev": true, 981 | "dependencies": { 982 | "@types/istanbul-lib-coverage": "*" 983 | } 984 | }, 985 | "node_modules/@types/istanbul-reports": { 986 | "version": "3.0.4", 987 | "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", 988 | "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", 989 | "dev": true, 990 | "dependencies": { 991 | "@types/istanbul-lib-report": "*" 992 | } 993 | }, 994 | "node_modules/@types/jest": { 995 | "version": "29.5.14", 996 | "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", 997 | "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", 998 | "dev": true, 999 | "dependencies": { 1000 | "expect": "^29.0.0", 1001 | "pretty-format": "^29.0.0" 1002 | } 1003 | }, 1004 | "node_modules/@types/node": { 1005 | "version": "22.13.10", 1006 | "resolved": "https://registry.npmjs.org/@types/node/-/node-22.13.10.tgz", 1007 | "integrity": "sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==", 1008 | "dev": true, 1009 | "dependencies": { 1010 | "undici-types": "~6.20.0" 1011 | } 1012 | }, 1013 | "node_modules/@types/stack-utils": { 1014 | "version": "2.0.3", 1015 | "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", 1016 | "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", 1017 | "dev": true 1018 | }, 1019 | "node_modules/@types/yargs": { 1020 | "version": "17.0.33", 1021 | "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", 1022 | "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", 1023 | "dev": true, 1024 | "dependencies": { 1025 | "@types/yargs-parser": "*" 1026 | } 1027 | }, 1028 | "node_modules/@types/yargs-parser": { 1029 | "version": "21.0.3", 1030 | "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", 1031 | "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", 1032 | "dev": true 1033 | }, 1034 | "node_modules/acorn": { 1035 | "version": "8.14.1", 1036 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.1.tgz", 1037 | "integrity": "sha512-OvQ/2pUDKmgfCg++xsTX1wGxfTaszcHVcTctW4UJB4hibJx2HXxxO5UmVgyjMa+ZDsiaf5wWLXYpRWMmBI0QHg==", 1038 | "dev": true, 1039 | "bin": { 1040 | "acorn": "bin/acorn" 1041 | }, 1042 | "engines": { 1043 | "node": ">=0.4.0" 1044 | } 1045 | }, 1046 | "node_modules/acorn-walk": { 1047 | "version": "8.3.4", 1048 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.3.4.tgz", 1049 | "integrity": "sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==", 1050 | "dev": true, 1051 | "dependencies": { 1052 | "acorn": "^8.11.0" 1053 | }, 1054 | "engines": { 1055 | "node": ">=0.4.0" 1056 | } 1057 | }, 1058 | "node_modules/ansi-escapes": { 1059 | "version": "4.3.2", 1060 | "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", 1061 | "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", 1062 | "dev": true, 1063 | "dependencies": { 1064 | "type-fest": "^0.21.3" 1065 | }, 1066 | "engines": { 1067 | "node": ">=8" 1068 | }, 1069 | "funding": { 1070 | "url": "https://github.com/sponsors/sindresorhus" 1071 | } 1072 | }, 1073 | "node_modules/ansi-regex": { 1074 | "version": "5.0.1", 1075 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", 1076 | "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", 1077 | "dev": true, 1078 | "engines": { 1079 | "node": ">=8" 1080 | } 1081 | }, 1082 | "node_modules/ansi-styles": { 1083 | "version": "4.3.0", 1084 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", 1085 | "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", 1086 | "dev": true, 1087 | "dependencies": { 1088 | "color-convert": "^2.0.1" 1089 | }, 1090 | "engines": { 1091 | "node": ">=8" 1092 | }, 1093 | "funding": { 1094 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 1095 | } 1096 | }, 1097 | "node_modules/anymatch": { 1098 | "version": "3.1.3", 1099 | "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", 1100 | "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", 1101 | "dev": true, 1102 | "dependencies": { 1103 | "normalize-path": "^3.0.0", 1104 | "picomatch": "^2.0.4" 1105 | }, 1106 | "engines": { 1107 | "node": ">= 8" 1108 | } 1109 | }, 1110 | "node_modules/arg": { 1111 | "version": "4.1.3", 1112 | "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", 1113 | "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", 1114 | "dev": true 1115 | }, 1116 | "node_modules/argparse": { 1117 | "version": "1.0.10", 1118 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", 1119 | "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", 1120 | "dev": true, 1121 | "dependencies": { 1122 | "sprintf-js": "~1.0.2" 1123 | } 1124 | }, 1125 | "node_modules/async": { 1126 | "version": "3.2.6", 1127 | "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", 1128 | "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", 1129 | "dev": true 1130 | }, 1131 | "node_modules/babel-jest": { 1132 | "version": "29.7.0", 1133 | "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", 1134 | "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", 1135 | "dev": true, 1136 | "dependencies": { 1137 | "@jest/transform": "^29.7.0", 1138 | "@types/babel__core": "^7.1.14", 1139 | "babel-plugin-istanbul": "^6.1.1", 1140 | "babel-preset-jest": "^29.6.3", 1141 | "chalk": "^4.0.0", 1142 | "graceful-fs": "^4.2.9", 1143 | "slash": "^3.0.0" 1144 | }, 1145 | "engines": { 1146 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1147 | }, 1148 | "peerDependencies": { 1149 | "@babel/core": "^7.8.0" 1150 | } 1151 | }, 1152 | "node_modules/babel-plugin-istanbul": { 1153 | "version": "6.1.1", 1154 | "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", 1155 | "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", 1156 | "dev": true, 1157 | "dependencies": { 1158 | "@babel/helper-plugin-utils": "^7.0.0", 1159 | "@istanbuljs/load-nyc-config": "^1.0.0", 1160 | "@istanbuljs/schema": "^0.1.2", 1161 | "istanbul-lib-instrument": "^5.0.4", 1162 | "test-exclude": "^6.0.0" 1163 | }, 1164 | "engines": { 1165 | "node": ">=8" 1166 | } 1167 | }, 1168 | "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { 1169 | "version": "5.2.1", 1170 | "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", 1171 | "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", 1172 | "dev": true, 1173 | "dependencies": { 1174 | "@babel/core": "^7.12.3", 1175 | "@babel/parser": "^7.14.7", 1176 | "@istanbuljs/schema": "^0.1.2", 1177 | "istanbul-lib-coverage": "^3.2.0", 1178 | "semver": "^6.3.0" 1179 | }, 1180 | "engines": { 1181 | "node": ">=8" 1182 | } 1183 | }, 1184 | "node_modules/babel-plugin-jest-hoist": { 1185 | "version": "29.6.3", 1186 | "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", 1187 | "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", 1188 | "dev": true, 1189 | "dependencies": { 1190 | "@babel/template": "^7.3.3", 1191 | "@babel/types": "^7.3.3", 1192 | "@types/babel__core": "^7.1.14", 1193 | "@types/babel__traverse": "^7.0.6" 1194 | }, 1195 | "engines": { 1196 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1197 | } 1198 | }, 1199 | "node_modules/babel-preset-current-node-syntax": { 1200 | "version": "1.1.0", 1201 | "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", 1202 | "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", 1203 | "dev": true, 1204 | "dependencies": { 1205 | "@babel/plugin-syntax-async-generators": "^7.8.4", 1206 | "@babel/plugin-syntax-bigint": "^7.8.3", 1207 | "@babel/plugin-syntax-class-properties": "^7.12.13", 1208 | "@babel/plugin-syntax-class-static-block": "^7.14.5", 1209 | "@babel/plugin-syntax-import-attributes": "^7.24.7", 1210 | "@babel/plugin-syntax-import-meta": "^7.10.4", 1211 | "@babel/plugin-syntax-json-strings": "^7.8.3", 1212 | "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", 1213 | "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", 1214 | "@babel/plugin-syntax-numeric-separator": "^7.10.4", 1215 | "@babel/plugin-syntax-object-rest-spread": "^7.8.3", 1216 | "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", 1217 | "@babel/plugin-syntax-optional-chaining": "^7.8.3", 1218 | "@babel/plugin-syntax-private-property-in-object": "^7.14.5", 1219 | "@babel/plugin-syntax-top-level-await": "^7.14.5" 1220 | }, 1221 | "peerDependencies": { 1222 | "@babel/core": "^7.0.0" 1223 | } 1224 | }, 1225 | "node_modules/babel-preset-jest": { 1226 | "version": "29.6.3", 1227 | "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", 1228 | "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", 1229 | "dev": true, 1230 | "dependencies": { 1231 | "babel-plugin-jest-hoist": "^29.6.3", 1232 | "babel-preset-current-node-syntax": "^1.0.0" 1233 | }, 1234 | "engines": { 1235 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1236 | }, 1237 | "peerDependencies": { 1238 | "@babel/core": "^7.0.0" 1239 | } 1240 | }, 1241 | "node_modules/balanced-match": { 1242 | "version": "1.0.2", 1243 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", 1244 | "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", 1245 | "dev": true 1246 | }, 1247 | "node_modules/brace-expansion": { 1248 | "version": "1.1.11", 1249 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 1250 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 1251 | "dev": true, 1252 | "dependencies": { 1253 | "balanced-match": "^1.0.0", 1254 | "concat-map": "0.0.1" 1255 | } 1256 | }, 1257 | "node_modules/braces": { 1258 | "version": "3.0.3", 1259 | "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", 1260 | "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", 1261 | "dev": true, 1262 | "dependencies": { 1263 | "fill-range": "^7.1.1" 1264 | }, 1265 | "engines": { 1266 | "node": ">=8" 1267 | } 1268 | }, 1269 | "node_modules/browserslist": { 1270 | "version": "4.24.4", 1271 | "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", 1272 | "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", 1273 | "dev": true, 1274 | "funding": [ 1275 | { 1276 | "type": "opencollective", 1277 | "url": "https://opencollective.com/browserslist" 1278 | }, 1279 | { 1280 | "type": "tidelift", 1281 | "url": "https://tidelift.com/funding/github/npm/browserslist" 1282 | }, 1283 | { 1284 | "type": "github", 1285 | "url": "https://github.com/sponsors/ai" 1286 | } 1287 | ], 1288 | "dependencies": { 1289 | "caniuse-lite": "^1.0.30001688", 1290 | "electron-to-chromium": "^1.5.73", 1291 | "node-releases": "^2.0.19", 1292 | "update-browserslist-db": "^1.1.1" 1293 | }, 1294 | "bin": { 1295 | "browserslist": "cli.js" 1296 | }, 1297 | "engines": { 1298 | "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" 1299 | } 1300 | }, 1301 | "node_modules/bs-logger": { 1302 | "version": "0.2.6", 1303 | "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", 1304 | "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", 1305 | "dev": true, 1306 | "dependencies": { 1307 | "fast-json-stable-stringify": "2.x" 1308 | }, 1309 | "engines": { 1310 | "node": ">= 6" 1311 | } 1312 | }, 1313 | "node_modules/bser": { 1314 | "version": "2.1.1", 1315 | "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", 1316 | "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", 1317 | "dev": true, 1318 | "dependencies": { 1319 | "node-int64": "^0.4.0" 1320 | } 1321 | }, 1322 | "node_modules/buffer-from": { 1323 | "version": "1.1.2", 1324 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 1325 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 1326 | "dev": true 1327 | }, 1328 | "node_modules/callsites": { 1329 | "version": "3.1.0", 1330 | "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", 1331 | "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", 1332 | "dev": true, 1333 | "engines": { 1334 | "node": ">=6" 1335 | } 1336 | }, 1337 | "node_modules/camelcase": { 1338 | "version": "5.3.1", 1339 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", 1340 | "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", 1341 | "dev": true, 1342 | "engines": { 1343 | "node": ">=6" 1344 | } 1345 | }, 1346 | "node_modules/caniuse-lite": { 1347 | "version": "1.0.30001705", 1348 | "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001705.tgz", 1349 | "integrity": "sha512-S0uyMMiYvA7CxNgomYBwwwPUnWzFD83f3B1ce5jHUfHTH//QL6hHsreI8RVC5606R4ssqravelYO5TU6t8sEyg==", 1350 | "dev": true, 1351 | "funding": [ 1352 | { 1353 | "type": "opencollective", 1354 | "url": "https://opencollective.com/browserslist" 1355 | }, 1356 | { 1357 | "type": "tidelift", 1358 | "url": "https://tidelift.com/funding/github/npm/caniuse-lite" 1359 | }, 1360 | { 1361 | "type": "github", 1362 | "url": "https://github.com/sponsors/ai" 1363 | } 1364 | ] 1365 | }, 1366 | "node_modules/chalk": { 1367 | "version": "4.1.2", 1368 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", 1369 | "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", 1370 | "dev": true, 1371 | "dependencies": { 1372 | "ansi-styles": "^4.1.0", 1373 | "supports-color": "^7.1.0" 1374 | }, 1375 | "engines": { 1376 | "node": ">=10" 1377 | }, 1378 | "funding": { 1379 | "url": "https://github.com/chalk/chalk?sponsor=1" 1380 | } 1381 | }, 1382 | "node_modules/char-regex": { 1383 | "version": "1.0.2", 1384 | "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", 1385 | "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", 1386 | "dev": true, 1387 | "engines": { 1388 | "node": ">=10" 1389 | } 1390 | }, 1391 | "node_modules/ci-info": { 1392 | "version": "3.9.0", 1393 | "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", 1394 | "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", 1395 | "dev": true, 1396 | "funding": [ 1397 | { 1398 | "type": "github", 1399 | "url": "https://github.com/sponsors/sibiraj-s" 1400 | } 1401 | ], 1402 | "engines": { 1403 | "node": ">=8" 1404 | } 1405 | }, 1406 | "node_modules/cjs-module-lexer": { 1407 | "version": "1.4.3", 1408 | "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", 1409 | "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", 1410 | "dev": true 1411 | }, 1412 | "node_modules/cliui": { 1413 | "version": "8.0.1", 1414 | "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", 1415 | "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", 1416 | "dev": true, 1417 | "dependencies": { 1418 | "string-width": "^4.2.0", 1419 | "strip-ansi": "^6.0.1", 1420 | "wrap-ansi": "^7.0.0" 1421 | }, 1422 | "engines": { 1423 | "node": ">=12" 1424 | } 1425 | }, 1426 | "node_modules/co": { 1427 | "version": "4.6.0", 1428 | "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", 1429 | "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", 1430 | "dev": true, 1431 | "engines": { 1432 | "iojs": ">= 1.0.0", 1433 | "node": ">= 0.12.0" 1434 | } 1435 | }, 1436 | "node_modules/collect-v8-coverage": { 1437 | "version": "1.0.2", 1438 | "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", 1439 | "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", 1440 | "dev": true 1441 | }, 1442 | "node_modules/color-convert": { 1443 | "version": "2.0.1", 1444 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", 1445 | "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", 1446 | "dev": true, 1447 | "dependencies": { 1448 | "color-name": "~1.1.4" 1449 | }, 1450 | "engines": { 1451 | "node": ">=7.0.0" 1452 | } 1453 | }, 1454 | "node_modules/color-name": { 1455 | "version": "1.1.4", 1456 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", 1457 | "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", 1458 | "dev": true 1459 | }, 1460 | "node_modules/concat-map": { 1461 | "version": "0.0.1", 1462 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 1463 | "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", 1464 | "dev": true 1465 | }, 1466 | "node_modules/convert-source-map": { 1467 | "version": "2.0.0", 1468 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", 1469 | "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", 1470 | "dev": true 1471 | }, 1472 | "node_modules/create-jest": { 1473 | "version": "29.7.0", 1474 | "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", 1475 | "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", 1476 | "dev": true, 1477 | "dependencies": { 1478 | "@jest/types": "^29.6.3", 1479 | "chalk": "^4.0.0", 1480 | "exit": "^0.1.2", 1481 | "graceful-fs": "^4.2.9", 1482 | "jest-config": "^29.7.0", 1483 | "jest-util": "^29.7.0", 1484 | "prompts": "^2.0.1" 1485 | }, 1486 | "bin": { 1487 | "create-jest": "bin/create-jest.js" 1488 | }, 1489 | "engines": { 1490 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1491 | } 1492 | }, 1493 | "node_modules/create-require": { 1494 | "version": "1.1.1", 1495 | "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", 1496 | "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==", 1497 | "dev": true 1498 | }, 1499 | "node_modules/cross-fetch": { 1500 | "version": "4.1.0", 1501 | "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.1.0.tgz", 1502 | "integrity": "sha512-uKm5PU+MHTootlWEY+mZ4vvXoCn4fLQxT9dSc1sXVMSFkINTJVN8cAQROpwcKm8bJ/c7rgZVIBWzH5T78sNZZw==", 1503 | "dependencies": { 1504 | "node-fetch": "^2.7.0" 1505 | } 1506 | }, 1507 | "node_modules/cross-spawn": { 1508 | "version": "7.0.6", 1509 | "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", 1510 | "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", 1511 | "dev": true, 1512 | "dependencies": { 1513 | "path-key": "^3.1.0", 1514 | "shebang-command": "^2.0.0", 1515 | "which": "^2.0.1" 1516 | }, 1517 | "engines": { 1518 | "node": ">= 8" 1519 | } 1520 | }, 1521 | "node_modules/debug": { 1522 | "version": "4.4.0", 1523 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", 1524 | "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", 1525 | "dev": true, 1526 | "dependencies": { 1527 | "ms": "^2.1.3" 1528 | }, 1529 | "engines": { 1530 | "node": ">=6.0" 1531 | }, 1532 | "peerDependenciesMeta": { 1533 | "supports-color": { 1534 | "optional": true 1535 | } 1536 | } 1537 | }, 1538 | "node_modules/dedent": { 1539 | "version": "1.5.3", 1540 | "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", 1541 | "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", 1542 | "dev": true, 1543 | "peerDependencies": { 1544 | "babel-plugin-macros": "^3.1.0" 1545 | }, 1546 | "peerDependenciesMeta": { 1547 | "babel-plugin-macros": { 1548 | "optional": true 1549 | } 1550 | } 1551 | }, 1552 | "node_modules/deepmerge": { 1553 | "version": "4.3.1", 1554 | "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", 1555 | "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", 1556 | "dev": true, 1557 | "engines": { 1558 | "node": ">=0.10.0" 1559 | } 1560 | }, 1561 | "node_modules/detect-newline": { 1562 | "version": "3.1.0", 1563 | "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", 1564 | "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", 1565 | "dev": true, 1566 | "engines": { 1567 | "node": ">=8" 1568 | } 1569 | }, 1570 | "node_modules/diff": { 1571 | "version": "4.0.2", 1572 | "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", 1573 | "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", 1574 | "dev": true, 1575 | "engines": { 1576 | "node": ">=0.3.1" 1577 | } 1578 | }, 1579 | "node_modules/diff-sequences": { 1580 | "version": "29.6.3", 1581 | "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", 1582 | "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", 1583 | "dev": true, 1584 | "engines": { 1585 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1586 | } 1587 | }, 1588 | "node_modules/ejs": { 1589 | "version": "3.1.10", 1590 | "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", 1591 | "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", 1592 | "dev": true, 1593 | "dependencies": { 1594 | "jake": "^10.8.5" 1595 | }, 1596 | "bin": { 1597 | "ejs": "bin/cli.js" 1598 | }, 1599 | "engines": { 1600 | "node": ">=0.10.0" 1601 | } 1602 | }, 1603 | "node_modules/electron-to-chromium": { 1604 | "version": "1.5.119", 1605 | "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.119.tgz", 1606 | "integrity": "sha512-Ku4NMzUjz3e3Vweh7PhApPrZSS4fyiCIbcIrG9eKrriYVLmbMepETR/v6SU7xPm98QTqMSYiCwfO89QNjXLkbQ==", 1607 | "dev": true 1608 | }, 1609 | "node_modules/emittery": { 1610 | "version": "0.13.1", 1611 | "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", 1612 | "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", 1613 | "dev": true, 1614 | "engines": { 1615 | "node": ">=12" 1616 | }, 1617 | "funding": { 1618 | "url": "https://github.com/sindresorhus/emittery?sponsor=1" 1619 | } 1620 | }, 1621 | "node_modules/emoji-regex": { 1622 | "version": "8.0.0", 1623 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 1624 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", 1625 | "dev": true 1626 | }, 1627 | "node_modules/error-ex": { 1628 | "version": "1.3.2", 1629 | "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", 1630 | "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", 1631 | "dev": true, 1632 | "dependencies": { 1633 | "is-arrayish": "^0.2.1" 1634 | } 1635 | }, 1636 | "node_modules/escalade": { 1637 | "version": "3.2.0", 1638 | "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", 1639 | "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", 1640 | "dev": true, 1641 | "engines": { 1642 | "node": ">=6" 1643 | } 1644 | }, 1645 | "node_modules/escape-string-regexp": { 1646 | "version": "2.0.0", 1647 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", 1648 | "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", 1649 | "dev": true, 1650 | "engines": { 1651 | "node": ">=8" 1652 | } 1653 | }, 1654 | "node_modules/esprima": { 1655 | "version": "4.0.1", 1656 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", 1657 | "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", 1658 | "dev": true, 1659 | "bin": { 1660 | "esparse": "bin/esparse.js", 1661 | "esvalidate": "bin/esvalidate.js" 1662 | }, 1663 | "engines": { 1664 | "node": ">=4" 1665 | } 1666 | }, 1667 | "node_modules/execa": { 1668 | "version": "5.1.1", 1669 | "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", 1670 | "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", 1671 | "dev": true, 1672 | "dependencies": { 1673 | "cross-spawn": "^7.0.3", 1674 | "get-stream": "^6.0.0", 1675 | "human-signals": "^2.1.0", 1676 | "is-stream": "^2.0.0", 1677 | "merge-stream": "^2.0.0", 1678 | "npm-run-path": "^4.0.1", 1679 | "onetime": "^5.1.2", 1680 | "signal-exit": "^3.0.3", 1681 | "strip-final-newline": "^2.0.0" 1682 | }, 1683 | "engines": { 1684 | "node": ">=10" 1685 | }, 1686 | "funding": { 1687 | "url": "https://github.com/sindresorhus/execa?sponsor=1" 1688 | } 1689 | }, 1690 | "node_modules/exit": { 1691 | "version": "0.1.2", 1692 | "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", 1693 | "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", 1694 | "dev": true, 1695 | "engines": { 1696 | "node": ">= 0.8.0" 1697 | } 1698 | }, 1699 | "node_modules/expect": { 1700 | "version": "29.7.0", 1701 | "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", 1702 | "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", 1703 | "dev": true, 1704 | "dependencies": { 1705 | "@jest/expect-utils": "^29.7.0", 1706 | "jest-get-type": "^29.6.3", 1707 | "jest-matcher-utils": "^29.7.0", 1708 | "jest-message-util": "^29.7.0", 1709 | "jest-util": "^29.7.0" 1710 | }, 1711 | "engines": { 1712 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 1713 | } 1714 | }, 1715 | "node_modules/fast-json-stable-stringify": { 1716 | "version": "2.1.0", 1717 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", 1718 | "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", 1719 | "dev": true 1720 | }, 1721 | "node_modules/fb-watchman": { 1722 | "version": "2.0.2", 1723 | "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", 1724 | "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", 1725 | "dev": true, 1726 | "dependencies": { 1727 | "bser": "2.1.1" 1728 | } 1729 | }, 1730 | "node_modules/filelist": { 1731 | "version": "1.0.4", 1732 | "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", 1733 | "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", 1734 | "dev": true, 1735 | "dependencies": { 1736 | "minimatch": "^5.0.1" 1737 | } 1738 | }, 1739 | "node_modules/filelist/node_modules/brace-expansion": { 1740 | "version": "2.0.1", 1741 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", 1742 | "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", 1743 | "dev": true, 1744 | "dependencies": { 1745 | "balanced-match": "^1.0.0" 1746 | } 1747 | }, 1748 | "node_modules/filelist/node_modules/minimatch": { 1749 | "version": "5.1.6", 1750 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", 1751 | "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", 1752 | "dev": true, 1753 | "dependencies": { 1754 | "brace-expansion": "^2.0.1" 1755 | }, 1756 | "engines": { 1757 | "node": ">=10" 1758 | } 1759 | }, 1760 | "node_modules/fill-range": { 1761 | "version": "7.1.1", 1762 | "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", 1763 | "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", 1764 | "dev": true, 1765 | "dependencies": { 1766 | "to-regex-range": "^5.0.1" 1767 | }, 1768 | "engines": { 1769 | "node": ">=8" 1770 | } 1771 | }, 1772 | "node_modules/find-up": { 1773 | "version": "4.1.0", 1774 | "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", 1775 | "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", 1776 | "dev": true, 1777 | "dependencies": { 1778 | "locate-path": "^5.0.0", 1779 | "path-exists": "^4.0.0" 1780 | }, 1781 | "engines": { 1782 | "node": ">=8" 1783 | } 1784 | }, 1785 | "node_modules/fs.realpath": { 1786 | "version": "1.0.0", 1787 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 1788 | "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", 1789 | "dev": true 1790 | }, 1791 | "node_modules/fsevents": { 1792 | "version": "2.3.3", 1793 | "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", 1794 | "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", 1795 | "dev": true, 1796 | "hasInstallScript": true, 1797 | "optional": true, 1798 | "os": [ 1799 | "darwin" 1800 | ], 1801 | "engines": { 1802 | "node": "^8.16.0 || ^10.6.0 || >=11.0.0" 1803 | } 1804 | }, 1805 | "node_modules/function-bind": { 1806 | "version": "1.1.2", 1807 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", 1808 | "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", 1809 | "dev": true, 1810 | "funding": { 1811 | "url": "https://github.com/sponsors/ljharb" 1812 | } 1813 | }, 1814 | "node_modules/gensync": { 1815 | "version": "1.0.0-beta.2", 1816 | "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", 1817 | "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", 1818 | "dev": true, 1819 | "engines": { 1820 | "node": ">=6.9.0" 1821 | } 1822 | }, 1823 | "node_modules/get-caller-file": { 1824 | "version": "2.0.5", 1825 | "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", 1826 | "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", 1827 | "dev": true, 1828 | "engines": { 1829 | "node": "6.* || 8.* || >= 10.*" 1830 | } 1831 | }, 1832 | "node_modules/get-package-type": { 1833 | "version": "0.1.0", 1834 | "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", 1835 | "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", 1836 | "dev": true, 1837 | "engines": { 1838 | "node": ">=8.0.0" 1839 | } 1840 | }, 1841 | "node_modules/get-stream": { 1842 | "version": "6.0.1", 1843 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", 1844 | "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", 1845 | "dev": true, 1846 | "engines": { 1847 | "node": ">=10" 1848 | }, 1849 | "funding": { 1850 | "url": "https://github.com/sponsors/sindresorhus" 1851 | } 1852 | }, 1853 | "node_modules/glob": { 1854 | "version": "7.2.3", 1855 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", 1856 | "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", 1857 | "deprecated": "Glob versions prior to v9 are no longer supported", 1858 | "dev": true, 1859 | "dependencies": { 1860 | "fs.realpath": "^1.0.0", 1861 | "inflight": "^1.0.4", 1862 | "inherits": "2", 1863 | "minimatch": "^3.1.1", 1864 | "once": "^1.3.0", 1865 | "path-is-absolute": "^1.0.0" 1866 | }, 1867 | "engines": { 1868 | "node": "*" 1869 | }, 1870 | "funding": { 1871 | "url": "https://github.com/sponsors/isaacs" 1872 | } 1873 | }, 1874 | "node_modules/globals": { 1875 | "version": "11.12.0", 1876 | "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", 1877 | "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", 1878 | "dev": true, 1879 | "engines": { 1880 | "node": ">=4" 1881 | } 1882 | }, 1883 | "node_modules/graceful-fs": { 1884 | "version": "4.2.11", 1885 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", 1886 | "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", 1887 | "dev": true 1888 | }, 1889 | "node_modules/has-flag": { 1890 | "version": "4.0.0", 1891 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", 1892 | "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", 1893 | "dev": true, 1894 | "engines": { 1895 | "node": ">=8" 1896 | } 1897 | }, 1898 | "node_modules/hasown": { 1899 | "version": "2.0.2", 1900 | "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", 1901 | "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", 1902 | "dev": true, 1903 | "dependencies": { 1904 | "function-bind": "^1.1.2" 1905 | }, 1906 | "engines": { 1907 | "node": ">= 0.4" 1908 | } 1909 | }, 1910 | "node_modules/html-escaper": { 1911 | "version": "2.0.2", 1912 | "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", 1913 | "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", 1914 | "dev": true 1915 | }, 1916 | "node_modules/human-signals": { 1917 | "version": "2.1.0", 1918 | "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", 1919 | "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", 1920 | "dev": true, 1921 | "engines": { 1922 | "node": ">=10.17.0" 1923 | } 1924 | }, 1925 | "node_modules/import-local": { 1926 | "version": "3.2.0", 1927 | "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", 1928 | "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", 1929 | "dev": true, 1930 | "dependencies": { 1931 | "pkg-dir": "^4.2.0", 1932 | "resolve-cwd": "^3.0.0" 1933 | }, 1934 | "bin": { 1935 | "import-local-fixture": "fixtures/cli.js" 1936 | }, 1937 | "engines": { 1938 | "node": ">=8" 1939 | }, 1940 | "funding": { 1941 | "url": "https://github.com/sponsors/sindresorhus" 1942 | } 1943 | }, 1944 | "node_modules/imurmurhash": { 1945 | "version": "0.1.4", 1946 | "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", 1947 | "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", 1948 | "dev": true, 1949 | "engines": { 1950 | "node": ">=0.8.19" 1951 | } 1952 | }, 1953 | "node_modules/inflight": { 1954 | "version": "1.0.6", 1955 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1956 | "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", 1957 | "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", 1958 | "dev": true, 1959 | "dependencies": { 1960 | "once": "^1.3.0", 1961 | "wrappy": "1" 1962 | } 1963 | }, 1964 | "node_modules/inherits": { 1965 | "version": "2.0.4", 1966 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1967 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1968 | "dev": true 1969 | }, 1970 | "node_modules/is-arrayish": { 1971 | "version": "0.2.1", 1972 | "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", 1973 | "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", 1974 | "dev": true 1975 | }, 1976 | "node_modules/is-core-module": { 1977 | "version": "2.16.1", 1978 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", 1979 | "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", 1980 | "dev": true, 1981 | "dependencies": { 1982 | "hasown": "^2.0.2" 1983 | }, 1984 | "engines": { 1985 | "node": ">= 0.4" 1986 | }, 1987 | "funding": { 1988 | "url": "https://github.com/sponsors/ljharb" 1989 | } 1990 | }, 1991 | "node_modules/is-fullwidth-code-point": { 1992 | "version": "3.0.0", 1993 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 1994 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", 1995 | "dev": true, 1996 | "engines": { 1997 | "node": ">=8" 1998 | } 1999 | }, 2000 | "node_modules/is-generator-fn": { 2001 | "version": "2.1.0", 2002 | "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", 2003 | "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", 2004 | "dev": true, 2005 | "engines": { 2006 | "node": ">=6" 2007 | } 2008 | }, 2009 | "node_modules/is-number": { 2010 | "version": "7.0.0", 2011 | "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", 2012 | "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", 2013 | "dev": true, 2014 | "engines": { 2015 | "node": ">=0.12.0" 2016 | } 2017 | }, 2018 | "node_modules/is-stream": { 2019 | "version": "2.0.1", 2020 | "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", 2021 | "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", 2022 | "dev": true, 2023 | "engines": { 2024 | "node": ">=8" 2025 | }, 2026 | "funding": { 2027 | "url": "https://github.com/sponsors/sindresorhus" 2028 | } 2029 | }, 2030 | "node_modules/isexe": { 2031 | "version": "2.0.0", 2032 | "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", 2033 | "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", 2034 | "dev": true 2035 | }, 2036 | "node_modules/istanbul-lib-coverage": { 2037 | "version": "3.2.2", 2038 | "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", 2039 | "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", 2040 | "dev": true, 2041 | "engines": { 2042 | "node": ">=8" 2043 | } 2044 | }, 2045 | "node_modules/istanbul-lib-instrument": { 2046 | "version": "6.0.3", 2047 | "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", 2048 | "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", 2049 | "dev": true, 2050 | "dependencies": { 2051 | "@babel/core": "^7.23.9", 2052 | "@babel/parser": "^7.23.9", 2053 | "@istanbuljs/schema": "^0.1.3", 2054 | "istanbul-lib-coverage": "^3.2.0", 2055 | "semver": "^7.5.4" 2056 | }, 2057 | "engines": { 2058 | "node": ">=10" 2059 | } 2060 | }, 2061 | "node_modules/istanbul-lib-instrument/node_modules/semver": { 2062 | "version": "7.7.1", 2063 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 2064 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 2065 | "dev": true, 2066 | "bin": { 2067 | "semver": "bin/semver.js" 2068 | }, 2069 | "engines": { 2070 | "node": ">=10" 2071 | } 2072 | }, 2073 | "node_modules/istanbul-lib-report": { 2074 | "version": "3.0.1", 2075 | "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", 2076 | "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", 2077 | "dev": true, 2078 | "dependencies": { 2079 | "istanbul-lib-coverage": "^3.0.0", 2080 | "make-dir": "^4.0.0", 2081 | "supports-color": "^7.1.0" 2082 | }, 2083 | "engines": { 2084 | "node": ">=10" 2085 | } 2086 | }, 2087 | "node_modules/istanbul-lib-source-maps": { 2088 | "version": "4.0.1", 2089 | "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", 2090 | "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", 2091 | "dev": true, 2092 | "dependencies": { 2093 | "debug": "^4.1.1", 2094 | "istanbul-lib-coverage": "^3.0.0", 2095 | "source-map": "^0.6.1" 2096 | }, 2097 | "engines": { 2098 | "node": ">=10" 2099 | } 2100 | }, 2101 | "node_modules/istanbul-reports": { 2102 | "version": "3.1.7", 2103 | "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", 2104 | "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", 2105 | "dev": true, 2106 | "dependencies": { 2107 | "html-escaper": "^2.0.0", 2108 | "istanbul-lib-report": "^3.0.0" 2109 | }, 2110 | "engines": { 2111 | "node": ">=8" 2112 | } 2113 | }, 2114 | "node_modules/jake": { 2115 | "version": "10.9.2", 2116 | "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", 2117 | "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", 2118 | "dev": true, 2119 | "dependencies": { 2120 | "async": "^3.2.3", 2121 | "chalk": "^4.0.2", 2122 | "filelist": "^1.0.4", 2123 | "minimatch": "^3.1.2" 2124 | }, 2125 | "bin": { 2126 | "jake": "bin/cli.js" 2127 | }, 2128 | "engines": { 2129 | "node": ">=10" 2130 | } 2131 | }, 2132 | "node_modules/jest": { 2133 | "version": "29.7.0", 2134 | "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", 2135 | "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", 2136 | "dev": true, 2137 | "dependencies": { 2138 | "@jest/core": "^29.7.0", 2139 | "@jest/types": "^29.6.3", 2140 | "import-local": "^3.0.2", 2141 | "jest-cli": "^29.7.0" 2142 | }, 2143 | "bin": { 2144 | "jest": "bin/jest.js" 2145 | }, 2146 | "engines": { 2147 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2148 | }, 2149 | "peerDependencies": { 2150 | "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" 2151 | }, 2152 | "peerDependenciesMeta": { 2153 | "node-notifier": { 2154 | "optional": true 2155 | } 2156 | } 2157 | }, 2158 | "node_modules/jest-changed-files": { 2159 | "version": "29.7.0", 2160 | "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", 2161 | "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", 2162 | "dev": true, 2163 | "dependencies": { 2164 | "execa": "^5.0.0", 2165 | "jest-util": "^29.7.0", 2166 | "p-limit": "^3.1.0" 2167 | }, 2168 | "engines": { 2169 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2170 | } 2171 | }, 2172 | "node_modules/jest-circus": { 2173 | "version": "29.7.0", 2174 | "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", 2175 | "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", 2176 | "dev": true, 2177 | "dependencies": { 2178 | "@jest/environment": "^29.7.0", 2179 | "@jest/expect": "^29.7.0", 2180 | "@jest/test-result": "^29.7.0", 2181 | "@jest/types": "^29.6.3", 2182 | "@types/node": "*", 2183 | "chalk": "^4.0.0", 2184 | "co": "^4.6.0", 2185 | "dedent": "^1.0.0", 2186 | "is-generator-fn": "^2.0.0", 2187 | "jest-each": "^29.7.0", 2188 | "jest-matcher-utils": "^29.7.0", 2189 | "jest-message-util": "^29.7.0", 2190 | "jest-runtime": "^29.7.0", 2191 | "jest-snapshot": "^29.7.0", 2192 | "jest-util": "^29.7.0", 2193 | "p-limit": "^3.1.0", 2194 | "pretty-format": "^29.7.0", 2195 | "pure-rand": "^6.0.0", 2196 | "slash": "^3.0.0", 2197 | "stack-utils": "^2.0.3" 2198 | }, 2199 | "engines": { 2200 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2201 | } 2202 | }, 2203 | "node_modules/jest-cli": { 2204 | "version": "29.7.0", 2205 | "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", 2206 | "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", 2207 | "dev": true, 2208 | "dependencies": { 2209 | "@jest/core": "^29.7.0", 2210 | "@jest/test-result": "^29.7.0", 2211 | "@jest/types": "^29.6.3", 2212 | "chalk": "^4.0.0", 2213 | "create-jest": "^29.7.0", 2214 | "exit": "^0.1.2", 2215 | "import-local": "^3.0.2", 2216 | "jest-config": "^29.7.0", 2217 | "jest-util": "^29.7.0", 2218 | "jest-validate": "^29.7.0", 2219 | "yargs": "^17.3.1" 2220 | }, 2221 | "bin": { 2222 | "jest": "bin/jest.js" 2223 | }, 2224 | "engines": { 2225 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2226 | }, 2227 | "peerDependencies": { 2228 | "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" 2229 | }, 2230 | "peerDependenciesMeta": { 2231 | "node-notifier": { 2232 | "optional": true 2233 | } 2234 | } 2235 | }, 2236 | "node_modules/jest-config": { 2237 | "version": "29.7.0", 2238 | "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", 2239 | "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", 2240 | "dev": true, 2241 | "dependencies": { 2242 | "@babel/core": "^7.11.6", 2243 | "@jest/test-sequencer": "^29.7.0", 2244 | "@jest/types": "^29.6.3", 2245 | "babel-jest": "^29.7.0", 2246 | "chalk": "^4.0.0", 2247 | "ci-info": "^3.2.0", 2248 | "deepmerge": "^4.2.2", 2249 | "glob": "^7.1.3", 2250 | "graceful-fs": "^4.2.9", 2251 | "jest-circus": "^29.7.0", 2252 | "jest-environment-node": "^29.7.0", 2253 | "jest-get-type": "^29.6.3", 2254 | "jest-regex-util": "^29.6.3", 2255 | "jest-resolve": "^29.7.0", 2256 | "jest-runner": "^29.7.0", 2257 | "jest-util": "^29.7.0", 2258 | "jest-validate": "^29.7.0", 2259 | "micromatch": "^4.0.4", 2260 | "parse-json": "^5.2.0", 2261 | "pretty-format": "^29.7.0", 2262 | "slash": "^3.0.0", 2263 | "strip-json-comments": "^3.1.1" 2264 | }, 2265 | "engines": { 2266 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2267 | }, 2268 | "peerDependencies": { 2269 | "@types/node": "*", 2270 | "ts-node": ">=9.0.0" 2271 | }, 2272 | "peerDependenciesMeta": { 2273 | "@types/node": { 2274 | "optional": true 2275 | }, 2276 | "ts-node": { 2277 | "optional": true 2278 | } 2279 | } 2280 | }, 2281 | "node_modules/jest-diff": { 2282 | "version": "29.7.0", 2283 | "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", 2284 | "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", 2285 | "dev": true, 2286 | "dependencies": { 2287 | "chalk": "^4.0.0", 2288 | "diff-sequences": "^29.6.3", 2289 | "jest-get-type": "^29.6.3", 2290 | "pretty-format": "^29.7.0" 2291 | }, 2292 | "engines": { 2293 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2294 | } 2295 | }, 2296 | "node_modules/jest-docblock": { 2297 | "version": "29.7.0", 2298 | "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", 2299 | "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", 2300 | "dev": true, 2301 | "dependencies": { 2302 | "detect-newline": "^3.0.0" 2303 | }, 2304 | "engines": { 2305 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2306 | } 2307 | }, 2308 | "node_modules/jest-each": { 2309 | "version": "29.7.0", 2310 | "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", 2311 | "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", 2312 | "dev": true, 2313 | "dependencies": { 2314 | "@jest/types": "^29.6.3", 2315 | "chalk": "^4.0.0", 2316 | "jest-get-type": "^29.6.3", 2317 | "jest-util": "^29.7.0", 2318 | "pretty-format": "^29.7.0" 2319 | }, 2320 | "engines": { 2321 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2322 | } 2323 | }, 2324 | "node_modules/jest-environment-node": { 2325 | "version": "29.7.0", 2326 | "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", 2327 | "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", 2328 | "dev": true, 2329 | "dependencies": { 2330 | "@jest/environment": "^29.7.0", 2331 | "@jest/fake-timers": "^29.7.0", 2332 | "@jest/types": "^29.6.3", 2333 | "@types/node": "*", 2334 | "jest-mock": "^29.7.0", 2335 | "jest-util": "^29.7.0" 2336 | }, 2337 | "engines": { 2338 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2339 | } 2340 | }, 2341 | "node_modules/jest-get-type": { 2342 | "version": "29.6.3", 2343 | "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", 2344 | "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", 2345 | "dev": true, 2346 | "engines": { 2347 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2348 | } 2349 | }, 2350 | "node_modules/jest-haste-map": { 2351 | "version": "29.7.0", 2352 | "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", 2353 | "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", 2354 | "dev": true, 2355 | "dependencies": { 2356 | "@jest/types": "^29.6.3", 2357 | "@types/graceful-fs": "^4.1.3", 2358 | "@types/node": "*", 2359 | "anymatch": "^3.0.3", 2360 | "fb-watchman": "^2.0.0", 2361 | "graceful-fs": "^4.2.9", 2362 | "jest-regex-util": "^29.6.3", 2363 | "jest-util": "^29.7.0", 2364 | "jest-worker": "^29.7.0", 2365 | "micromatch": "^4.0.4", 2366 | "walker": "^1.0.8" 2367 | }, 2368 | "engines": { 2369 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2370 | }, 2371 | "optionalDependencies": { 2372 | "fsevents": "^2.3.2" 2373 | } 2374 | }, 2375 | "node_modules/jest-leak-detector": { 2376 | "version": "29.7.0", 2377 | "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", 2378 | "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", 2379 | "dev": true, 2380 | "dependencies": { 2381 | "jest-get-type": "^29.6.3", 2382 | "pretty-format": "^29.7.0" 2383 | }, 2384 | "engines": { 2385 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2386 | } 2387 | }, 2388 | "node_modules/jest-matcher-utils": { 2389 | "version": "29.7.0", 2390 | "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", 2391 | "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", 2392 | "dev": true, 2393 | "dependencies": { 2394 | "chalk": "^4.0.0", 2395 | "jest-diff": "^29.7.0", 2396 | "jest-get-type": "^29.6.3", 2397 | "pretty-format": "^29.7.0" 2398 | }, 2399 | "engines": { 2400 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2401 | } 2402 | }, 2403 | "node_modules/jest-message-util": { 2404 | "version": "29.7.0", 2405 | "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", 2406 | "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", 2407 | "dev": true, 2408 | "dependencies": { 2409 | "@babel/code-frame": "^7.12.13", 2410 | "@jest/types": "^29.6.3", 2411 | "@types/stack-utils": "^2.0.0", 2412 | "chalk": "^4.0.0", 2413 | "graceful-fs": "^4.2.9", 2414 | "micromatch": "^4.0.4", 2415 | "pretty-format": "^29.7.0", 2416 | "slash": "^3.0.0", 2417 | "stack-utils": "^2.0.3" 2418 | }, 2419 | "engines": { 2420 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2421 | } 2422 | }, 2423 | "node_modules/jest-mock": { 2424 | "version": "29.7.0", 2425 | "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", 2426 | "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", 2427 | "dev": true, 2428 | "dependencies": { 2429 | "@jest/types": "^29.6.3", 2430 | "@types/node": "*", 2431 | "jest-util": "^29.7.0" 2432 | }, 2433 | "engines": { 2434 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2435 | } 2436 | }, 2437 | "node_modules/jest-pnp-resolver": { 2438 | "version": "1.2.3", 2439 | "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", 2440 | "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", 2441 | "dev": true, 2442 | "engines": { 2443 | "node": ">=6" 2444 | }, 2445 | "peerDependencies": { 2446 | "jest-resolve": "*" 2447 | }, 2448 | "peerDependenciesMeta": { 2449 | "jest-resolve": { 2450 | "optional": true 2451 | } 2452 | } 2453 | }, 2454 | "node_modules/jest-regex-util": { 2455 | "version": "29.6.3", 2456 | "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", 2457 | "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", 2458 | "dev": true, 2459 | "engines": { 2460 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2461 | } 2462 | }, 2463 | "node_modules/jest-resolve": { 2464 | "version": "29.7.0", 2465 | "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", 2466 | "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", 2467 | "dev": true, 2468 | "dependencies": { 2469 | "chalk": "^4.0.0", 2470 | "graceful-fs": "^4.2.9", 2471 | "jest-haste-map": "^29.7.0", 2472 | "jest-pnp-resolver": "^1.2.2", 2473 | "jest-util": "^29.7.0", 2474 | "jest-validate": "^29.7.0", 2475 | "resolve": "^1.20.0", 2476 | "resolve.exports": "^2.0.0", 2477 | "slash": "^3.0.0" 2478 | }, 2479 | "engines": { 2480 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2481 | } 2482 | }, 2483 | "node_modules/jest-resolve-dependencies": { 2484 | "version": "29.7.0", 2485 | "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", 2486 | "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", 2487 | "dev": true, 2488 | "dependencies": { 2489 | "jest-regex-util": "^29.6.3", 2490 | "jest-snapshot": "^29.7.0" 2491 | }, 2492 | "engines": { 2493 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2494 | } 2495 | }, 2496 | "node_modules/jest-runner": { 2497 | "version": "29.7.0", 2498 | "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", 2499 | "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", 2500 | "dev": true, 2501 | "dependencies": { 2502 | "@jest/console": "^29.7.0", 2503 | "@jest/environment": "^29.7.0", 2504 | "@jest/test-result": "^29.7.0", 2505 | "@jest/transform": "^29.7.0", 2506 | "@jest/types": "^29.6.3", 2507 | "@types/node": "*", 2508 | "chalk": "^4.0.0", 2509 | "emittery": "^0.13.1", 2510 | "graceful-fs": "^4.2.9", 2511 | "jest-docblock": "^29.7.0", 2512 | "jest-environment-node": "^29.7.0", 2513 | "jest-haste-map": "^29.7.0", 2514 | "jest-leak-detector": "^29.7.0", 2515 | "jest-message-util": "^29.7.0", 2516 | "jest-resolve": "^29.7.0", 2517 | "jest-runtime": "^29.7.0", 2518 | "jest-util": "^29.7.0", 2519 | "jest-watcher": "^29.7.0", 2520 | "jest-worker": "^29.7.0", 2521 | "p-limit": "^3.1.0", 2522 | "source-map-support": "0.5.13" 2523 | }, 2524 | "engines": { 2525 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2526 | } 2527 | }, 2528 | "node_modules/jest-runtime": { 2529 | "version": "29.7.0", 2530 | "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", 2531 | "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", 2532 | "dev": true, 2533 | "dependencies": { 2534 | "@jest/environment": "^29.7.0", 2535 | "@jest/fake-timers": "^29.7.0", 2536 | "@jest/globals": "^29.7.0", 2537 | "@jest/source-map": "^29.6.3", 2538 | "@jest/test-result": "^29.7.0", 2539 | "@jest/transform": "^29.7.0", 2540 | "@jest/types": "^29.6.3", 2541 | "@types/node": "*", 2542 | "chalk": "^4.0.0", 2543 | "cjs-module-lexer": "^1.0.0", 2544 | "collect-v8-coverage": "^1.0.0", 2545 | "glob": "^7.1.3", 2546 | "graceful-fs": "^4.2.9", 2547 | "jest-haste-map": "^29.7.0", 2548 | "jest-message-util": "^29.7.0", 2549 | "jest-mock": "^29.7.0", 2550 | "jest-regex-util": "^29.6.3", 2551 | "jest-resolve": "^29.7.0", 2552 | "jest-snapshot": "^29.7.0", 2553 | "jest-util": "^29.7.0", 2554 | "slash": "^3.0.0", 2555 | "strip-bom": "^4.0.0" 2556 | }, 2557 | "engines": { 2558 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2559 | } 2560 | }, 2561 | "node_modules/jest-snapshot": { 2562 | "version": "29.7.0", 2563 | "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", 2564 | "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", 2565 | "dev": true, 2566 | "dependencies": { 2567 | "@babel/core": "^7.11.6", 2568 | "@babel/generator": "^7.7.2", 2569 | "@babel/plugin-syntax-jsx": "^7.7.2", 2570 | "@babel/plugin-syntax-typescript": "^7.7.2", 2571 | "@babel/types": "^7.3.3", 2572 | "@jest/expect-utils": "^29.7.0", 2573 | "@jest/transform": "^29.7.0", 2574 | "@jest/types": "^29.6.3", 2575 | "babel-preset-current-node-syntax": "^1.0.0", 2576 | "chalk": "^4.0.0", 2577 | "expect": "^29.7.0", 2578 | "graceful-fs": "^4.2.9", 2579 | "jest-diff": "^29.7.0", 2580 | "jest-get-type": "^29.6.3", 2581 | "jest-matcher-utils": "^29.7.0", 2582 | "jest-message-util": "^29.7.0", 2583 | "jest-util": "^29.7.0", 2584 | "natural-compare": "^1.4.0", 2585 | "pretty-format": "^29.7.0", 2586 | "semver": "^7.5.3" 2587 | }, 2588 | "engines": { 2589 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2590 | } 2591 | }, 2592 | "node_modules/jest-snapshot/node_modules/semver": { 2593 | "version": "7.7.1", 2594 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 2595 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 2596 | "dev": true, 2597 | "bin": { 2598 | "semver": "bin/semver.js" 2599 | }, 2600 | "engines": { 2601 | "node": ">=10" 2602 | } 2603 | }, 2604 | "node_modules/jest-util": { 2605 | "version": "29.7.0", 2606 | "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", 2607 | "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", 2608 | "dev": true, 2609 | "dependencies": { 2610 | "@jest/types": "^29.6.3", 2611 | "@types/node": "*", 2612 | "chalk": "^4.0.0", 2613 | "ci-info": "^3.2.0", 2614 | "graceful-fs": "^4.2.9", 2615 | "picomatch": "^2.2.3" 2616 | }, 2617 | "engines": { 2618 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2619 | } 2620 | }, 2621 | "node_modules/jest-validate": { 2622 | "version": "29.7.0", 2623 | "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", 2624 | "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", 2625 | "dev": true, 2626 | "dependencies": { 2627 | "@jest/types": "^29.6.3", 2628 | "camelcase": "^6.2.0", 2629 | "chalk": "^4.0.0", 2630 | "jest-get-type": "^29.6.3", 2631 | "leven": "^3.1.0", 2632 | "pretty-format": "^29.7.0" 2633 | }, 2634 | "engines": { 2635 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2636 | } 2637 | }, 2638 | "node_modules/jest-validate/node_modules/camelcase": { 2639 | "version": "6.3.0", 2640 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", 2641 | "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", 2642 | "dev": true, 2643 | "engines": { 2644 | "node": ">=10" 2645 | }, 2646 | "funding": { 2647 | "url": "https://github.com/sponsors/sindresorhus" 2648 | } 2649 | }, 2650 | "node_modules/jest-watcher": { 2651 | "version": "29.7.0", 2652 | "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", 2653 | "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", 2654 | "dev": true, 2655 | "dependencies": { 2656 | "@jest/test-result": "^29.7.0", 2657 | "@jest/types": "^29.6.3", 2658 | "@types/node": "*", 2659 | "ansi-escapes": "^4.2.1", 2660 | "chalk": "^4.0.0", 2661 | "emittery": "^0.13.1", 2662 | "jest-util": "^29.7.0", 2663 | "string-length": "^4.0.1" 2664 | }, 2665 | "engines": { 2666 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2667 | } 2668 | }, 2669 | "node_modules/jest-worker": { 2670 | "version": "29.7.0", 2671 | "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", 2672 | "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", 2673 | "dev": true, 2674 | "dependencies": { 2675 | "@types/node": "*", 2676 | "jest-util": "^29.7.0", 2677 | "merge-stream": "^2.0.0", 2678 | "supports-color": "^8.0.0" 2679 | }, 2680 | "engines": { 2681 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 2682 | } 2683 | }, 2684 | "node_modules/jest-worker/node_modules/supports-color": { 2685 | "version": "8.1.1", 2686 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", 2687 | "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", 2688 | "dev": true, 2689 | "dependencies": { 2690 | "has-flag": "^4.0.0" 2691 | }, 2692 | "engines": { 2693 | "node": ">=10" 2694 | }, 2695 | "funding": { 2696 | "url": "https://github.com/chalk/supports-color?sponsor=1" 2697 | } 2698 | }, 2699 | "node_modules/js-tokens": { 2700 | "version": "4.0.0", 2701 | "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", 2702 | "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", 2703 | "dev": true 2704 | }, 2705 | "node_modules/js-yaml": { 2706 | "version": "3.14.1", 2707 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", 2708 | "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", 2709 | "dev": true, 2710 | "dependencies": { 2711 | "argparse": "^1.0.7", 2712 | "esprima": "^4.0.0" 2713 | }, 2714 | "bin": { 2715 | "js-yaml": "bin/js-yaml.js" 2716 | } 2717 | }, 2718 | "node_modules/jsesc": { 2719 | "version": "3.1.0", 2720 | "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", 2721 | "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", 2722 | "dev": true, 2723 | "bin": { 2724 | "jsesc": "bin/jsesc" 2725 | }, 2726 | "engines": { 2727 | "node": ">=6" 2728 | } 2729 | }, 2730 | "node_modules/json-parse-even-better-errors": { 2731 | "version": "2.3.1", 2732 | "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", 2733 | "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", 2734 | "dev": true 2735 | }, 2736 | "node_modules/json5": { 2737 | "version": "2.2.3", 2738 | "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", 2739 | "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", 2740 | "dev": true, 2741 | "bin": { 2742 | "json5": "lib/cli.js" 2743 | }, 2744 | "engines": { 2745 | "node": ">=6" 2746 | } 2747 | }, 2748 | "node_modules/kleur": { 2749 | "version": "3.0.3", 2750 | "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", 2751 | "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", 2752 | "dev": true, 2753 | "engines": { 2754 | "node": ">=6" 2755 | } 2756 | }, 2757 | "node_modules/leven": { 2758 | "version": "3.1.0", 2759 | "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", 2760 | "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", 2761 | "dev": true, 2762 | "engines": { 2763 | "node": ">=6" 2764 | } 2765 | }, 2766 | "node_modules/lines-and-columns": { 2767 | "version": "1.2.4", 2768 | "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", 2769 | "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", 2770 | "dev": true 2771 | }, 2772 | "node_modules/locate-path": { 2773 | "version": "5.0.0", 2774 | "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", 2775 | "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", 2776 | "dev": true, 2777 | "dependencies": { 2778 | "p-locate": "^4.1.0" 2779 | }, 2780 | "engines": { 2781 | "node": ">=8" 2782 | } 2783 | }, 2784 | "node_modules/lodash.memoize": { 2785 | "version": "4.1.2", 2786 | "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", 2787 | "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", 2788 | "dev": true 2789 | }, 2790 | "node_modules/lru-cache": { 2791 | "version": "5.1.1", 2792 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", 2793 | "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", 2794 | "dev": true, 2795 | "dependencies": { 2796 | "yallist": "^3.0.2" 2797 | } 2798 | }, 2799 | "node_modules/make-dir": { 2800 | "version": "4.0.0", 2801 | "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", 2802 | "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", 2803 | "dev": true, 2804 | "dependencies": { 2805 | "semver": "^7.5.3" 2806 | }, 2807 | "engines": { 2808 | "node": ">=10" 2809 | }, 2810 | "funding": { 2811 | "url": "https://github.com/sponsors/sindresorhus" 2812 | } 2813 | }, 2814 | "node_modules/make-dir/node_modules/semver": { 2815 | "version": "7.7.1", 2816 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 2817 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 2818 | "dev": true, 2819 | "bin": { 2820 | "semver": "bin/semver.js" 2821 | }, 2822 | "engines": { 2823 | "node": ">=10" 2824 | } 2825 | }, 2826 | "node_modules/make-error": { 2827 | "version": "1.3.6", 2828 | "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", 2829 | "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", 2830 | "dev": true 2831 | }, 2832 | "node_modules/makeerror": { 2833 | "version": "1.0.12", 2834 | "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", 2835 | "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", 2836 | "dev": true, 2837 | "dependencies": { 2838 | "tmpl": "1.0.5" 2839 | } 2840 | }, 2841 | "node_modules/merge-stream": { 2842 | "version": "2.0.0", 2843 | "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", 2844 | "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", 2845 | "dev": true 2846 | }, 2847 | "node_modules/micromatch": { 2848 | "version": "4.0.8", 2849 | "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", 2850 | "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", 2851 | "dev": true, 2852 | "dependencies": { 2853 | "braces": "^3.0.3", 2854 | "picomatch": "^2.3.1" 2855 | }, 2856 | "engines": { 2857 | "node": ">=8.6" 2858 | } 2859 | }, 2860 | "node_modules/mimic-fn": { 2861 | "version": "2.1.0", 2862 | "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", 2863 | "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", 2864 | "dev": true, 2865 | "engines": { 2866 | "node": ">=6" 2867 | } 2868 | }, 2869 | "node_modules/minimatch": { 2870 | "version": "3.1.2", 2871 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", 2872 | "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", 2873 | "dev": true, 2874 | "dependencies": { 2875 | "brace-expansion": "^1.1.7" 2876 | }, 2877 | "engines": { 2878 | "node": "*" 2879 | } 2880 | }, 2881 | "node_modules/ms": { 2882 | "version": "2.1.3", 2883 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", 2884 | "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", 2885 | "dev": true 2886 | }, 2887 | "node_modules/natural-compare": { 2888 | "version": "1.4.0", 2889 | "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", 2890 | "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", 2891 | "dev": true 2892 | }, 2893 | "node_modules/node-fetch": { 2894 | "version": "2.7.0", 2895 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", 2896 | "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", 2897 | "dependencies": { 2898 | "whatwg-url": "^5.0.0" 2899 | }, 2900 | "engines": { 2901 | "node": "4.x || >=6.0.0" 2902 | }, 2903 | "peerDependencies": { 2904 | "encoding": "^0.1.0" 2905 | }, 2906 | "peerDependenciesMeta": { 2907 | "encoding": { 2908 | "optional": true 2909 | } 2910 | } 2911 | }, 2912 | "node_modules/node-int64": { 2913 | "version": "0.4.0", 2914 | "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", 2915 | "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", 2916 | "dev": true 2917 | }, 2918 | "node_modules/node-releases": { 2919 | "version": "2.0.19", 2920 | "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", 2921 | "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", 2922 | "dev": true 2923 | }, 2924 | "node_modules/normalize-path": { 2925 | "version": "3.0.0", 2926 | "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", 2927 | "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", 2928 | "dev": true, 2929 | "engines": { 2930 | "node": ">=0.10.0" 2931 | } 2932 | }, 2933 | "node_modules/npm-run-path": { 2934 | "version": "4.0.1", 2935 | "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", 2936 | "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", 2937 | "dev": true, 2938 | "dependencies": { 2939 | "path-key": "^3.0.0" 2940 | }, 2941 | "engines": { 2942 | "node": ">=8" 2943 | } 2944 | }, 2945 | "node_modules/once": { 2946 | "version": "1.4.0", 2947 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 2948 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 2949 | "dev": true, 2950 | "dependencies": { 2951 | "wrappy": "1" 2952 | } 2953 | }, 2954 | "node_modules/onetime": { 2955 | "version": "5.1.2", 2956 | "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", 2957 | "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", 2958 | "dev": true, 2959 | "dependencies": { 2960 | "mimic-fn": "^2.1.0" 2961 | }, 2962 | "engines": { 2963 | "node": ">=6" 2964 | }, 2965 | "funding": { 2966 | "url": "https://github.com/sponsors/sindresorhus" 2967 | } 2968 | }, 2969 | "node_modules/p-limit": { 2970 | "version": "3.1.0", 2971 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", 2972 | "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", 2973 | "dev": true, 2974 | "dependencies": { 2975 | "yocto-queue": "^0.1.0" 2976 | }, 2977 | "engines": { 2978 | "node": ">=10" 2979 | }, 2980 | "funding": { 2981 | "url": "https://github.com/sponsors/sindresorhus" 2982 | } 2983 | }, 2984 | "node_modules/p-locate": { 2985 | "version": "4.1.0", 2986 | "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", 2987 | "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", 2988 | "dev": true, 2989 | "dependencies": { 2990 | "p-limit": "^2.2.0" 2991 | }, 2992 | "engines": { 2993 | "node": ">=8" 2994 | } 2995 | }, 2996 | "node_modules/p-locate/node_modules/p-limit": { 2997 | "version": "2.3.0", 2998 | "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", 2999 | "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", 3000 | "dev": true, 3001 | "dependencies": { 3002 | "p-try": "^2.0.0" 3003 | }, 3004 | "engines": { 3005 | "node": ">=6" 3006 | }, 3007 | "funding": { 3008 | "url": "https://github.com/sponsors/sindresorhus" 3009 | } 3010 | }, 3011 | "node_modules/p-try": { 3012 | "version": "2.2.0", 3013 | "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", 3014 | "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", 3015 | "dev": true, 3016 | "engines": { 3017 | "node": ">=6" 3018 | } 3019 | }, 3020 | "node_modules/parse-json": { 3021 | "version": "5.2.0", 3022 | "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", 3023 | "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", 3024 | "dev": true, 3025 | "dependencies": { 3026 | "@babel/code-frame": "^7.0.0", 3027 | "error-ex": "^1.3.1", 3028 | "json-parse-even-better-errors": "^2.3.0", 3029 | "lines-and-columns": "^1.1.6" 3030 | }, 3031 | "engines": { 3032 | "node": ">=8" 3033 | }, 3034 | "funding": { 3035 | "url": "https://github.com/sponsors/sindresorhus" 3036 | } 3037 | }, 3038 | "node_modules/path-exists": { 3039 | "version": "4.0.0", 3040 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", 3041 | "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", 3042 | "dev": true, 3043 | "engines": { 3044 | "node": ">=8" 3045 | } 3046 | }, 3047 | "node_modules/path-is-absolute": { 3048 | "version": "1.0.1", 3049 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 3050 | "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", 3051 | "dev": true, 3052 | "engines": { 3053 | "node": ">=0.10.0" 3054 | } 3055 | }, 3056 | "node_modules/path-key": { 3057 | "version": "3.1.1", 3058 | "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", 3059 | "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", 3060 | "dev": true, 3061 | "engines": { 3062 | "node": ">=8" 3063 | } 3064 | }, 3065 | "node_modules/path-parse": { 3066 | "version": "1.0.7", 3067 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 3068 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 3069 | "dev": true 3070 | }, 3071 | "node_modules/picocolors": { 3072 | "version": "1.1.1", 3073 | "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", 3074 | "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", 3075 | "dev": true 3076 | }, 3077 | "node_modules/picomatch": { 3078 | "version": "2.3.1", 3079 | "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", 3080 | "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", 3081 | "dev": true, 3082 | "engines": { 3083 | "node": ">=8.6" 3084 | }, 3085 | "funding": { 3086 | "url": "https://github.com/sponsors/jonschlinkert" 3087 | } 3088 | }, 3089 | "node_modules/pirates": { 3090 | "version": "4.0.6", 3091 | "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", 3092 | "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", 3093 | "dev": true, 3094 | "engines": { 3095 | "node": ">= 6" 3096 | } 3097 | }, 3098 | "node_modules/pkg-dir": { 3099 | "version": "4.2.0", 3100 | "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", 3101 | "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", 3102 | "dev": true, 3103 | "dependencies": { 3104 | "find-up": "^4.0.0" 3105 | }, 3106 | "engines": { 3107 | "node": ">=8" 3108 | } 3109 | }, 3110 | "node_modules/prettier": { 3111 | "version": "3.5.3", 3112 | "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.5.3.tgz", 3113 | "integrity": "sha512-QQtaxnoDJeAkDvDKWCLiwIXkTgRhwYDEQCghU9Z6q03iyek/rxRh/2lC3HB7P8sWT2xC/y5JDctPLBIGzHKbhw==", 3114 | "bin": { 3115 | "prettier": "bin/prettier.cjs" 3116 | }, 3117 | "engines": { 3118 | "node": ">=14" 3119 | }, 3120 | "funding": { 3121 | "url": "https://github.com/prettier/prettier?sponsor=1" 3122 | } 3123 | }, 3124 | "node_modules/pretty-format": { 3125 | "version": "29.7.0", 3126 | "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", 3127 | "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", 3128 | "dev": true, 3129 | "dependencies": { 3130 | "@jest/schemas": "^29.6.3", 3131 | "ansi-styles": "^5.0.0", 3132 | "react-is": "^18.0.0" 3133 | }, 3134 | "engines": { 3135 | "node": "^14.15.0 || ^16.10.0 || >=18.0.0" 3136 | } 3137 | }, 3138 | "node_modules/pretty-format/node_modules/ansi-styles": { 3139 | "version": "5.2.0", 3140 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", 3141 | "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", 3142 | "dev": true, 3143 | "engines": { 3144 | "node": ">=10" 3145 | }, 3146 | "funding": { 3147 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 3148 | } 3149 | }, 3150 | "node_modules/prompts": { 3151 | "version": "2.4.2", 3152 | "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", 3153 | "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", 3154 | "dev": true, 3155 | "dependencies": { 3156 | "kleur": "^3.0.3", 3157 | "sisteransi": "^1.0.5" 3158 | }, 3159 | "engines": { 3160 | "node": ">= 6" 3161 | } 3162 | }, 3163 | "node_modules/pure-rand": { 3164 | "version": "6.1.0", 3165 | "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", 3166 | "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", 3167 | "dev": true, 3168 | "funding": [ 3169 | { 3170 | "type": "individual", 3171 | "url": "https://github.com/sponsors/dubzzz" 3172 | }, 3173 | { 3174 | "type": "opencollective", 3175 | "url": "https://opencollective.com/fast-check" 3176 | } 3177 | ] 3178 | }, 3179 | "node_modules/react-is": { 3180 | "version": "18.3.1", 3181 | "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", 3182 | "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", 3183 | "dev": true 3184 | }, 3185 | "node_modules/require-directory": { 3186 | "version": "2.1.1", 3187 | "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", 3188 | "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", 3189 | "dev": true, 3190 | "engines": { 3191 | "node": ">=0.10.0" 3192 | } 3193 | }, 3194 | "node_modules/resolve": { 3195 | "version": "1.22.10", 3196 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", 3197 | "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", 3198 | "dev": true, 3199 | "dependencies": { 3200 | "is-core-module": "^2.16.0", 3201 | "path-parse": "^1.0.7", 3202 | "supports-preserve-symlinks-flag": "^1.0.0" 3203 | }, 3204 | "bin": { 3205 | "resolve": "bin/resolve" 3206 | }, 3207 | "engines": { 3208 | "node": ">= 0.4" 3209 | }, 3210 | "funding": { 3211 | "url": "https://github.com/sponsors/ljharb" 3212 | } 3213 | }, 3214 | "node_modules/resolve-cwd": { 3215 | "version": "3.0.0", 3216 | "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", 3217 | "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", 3218 | "dev": true, 3219 | "dependencies": { 3220 | "resolve-from": "^5.0.0" 3221 | }, 3222 | "engines": { 3223 | "node": ">=8" 3224 | } 3225 | }, 3226 | "node_modules/resolve-from": { 3227 | "version": "5.0.0", 3228 | "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", 3229 | "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", 3230 | "dev": true, 3231 | "engines": { 3232 | "node": ">=8" 3233 | } 3234 | }, 3235 | "node_modules/resolve.exports": { 3236 | "version": "2.0.3", 3237 | "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", 3238 | "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", 3239 | "dev": true, 3240 | "engines": { 3241 | "node": ">=10" 3242 | } 3243 | }, 3244 | "node_modules/semver": { 3245 | "version": "6.3.1", 3246 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", 3247 | "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", 3248 | "dev": true, 3249 | "bin": { 3250 | "semver": "bin/semver.js" 3251 | } 3252 | }, 3253 | "node_modules/shebang-command": { 3254 | "version": "2.0.0", 3255 | "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", 3256 | "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", 3257 | "dev": true, 3258 | "dependencies": { 3259 | "shebang-regex": "^3.0.0" 3260 | }, 3261 | "engines": { 3262 | "node": ">=8" 3263 | } 3264 | }, 3265 | "node_modules/shebang-regex": { 3266 | "version": "3.0.0", 3267 | "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", 3268 | "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", 3269 | "dev": true, 3270 | "engines": { 3271 | "node": ">=8" 3272 | } 3273 | }, 3274 | "node_modules/signal-exit": { 3275 | "version": "3.0.7", 3276 | "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", 3277 | "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", 3278 | "dev": true 3279 | }, 3280 | "node_modules/sisteransi": { 3281 | "version": "1.0.5", 3282 | "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", 3283 | "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", 3284 | "dev": true 3285 | }, 3286 | "node_modules/slash": { 3287 | "version": "3.0.0", 3288 | "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", 3289 | "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", 3290 | "dev": true, 3291 | "engines": { 3292 | "node": ">=8" 3293 | } 3294 | }, 3295 | "node_modules/source-map": { 3296 | "version": "0.6.1", 3297 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 3298 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 3299 | "dev": true, 3300 | "engines": { 3301 | "node": ">=0.10.0" 3302 | } 3303 | }, 3304 | "node_modules/source-map-support": { 3305 | "version": "0.5.13", 3306 | "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", 3307 | "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", 3308 | "dev": true, 3309 | "dependencies": { 3310 | "buffer-from": "^1.0.0", 3311 | "source-map": "^0.6.0" 3312 | } 3313 | }, 3314 | "node_modules/sprintf-js": { 3315 | "version": "1.0.3", 3316 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", 3317 | "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", 3318 | "dev": true 3319 | }, 3320 | "node_modules/stack-utils": { 3321 | "version": "2.0.6", 3322 | "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", 3323 | "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", 3324 | "dev": true, 3325 | "dependencies": { 3326 | "escape-string-regexp": "^2.0.0" 3327 | }, 3328 | "engines": { 3329 | "node": ">=10" 3330 | } 3331 | }, 3332 | "node_modules/string-length": { 3333 | "version": "4.0.2", 3334 | "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", 3335 | "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", 3336 | "dev": true, 3337 | "dependencies": { 3338 | "char-regex": "^1.0.2", 3339 | "strip-ansi": "^6.0.0" 3340 | }, 3341 | "engines": { 3342 | "node": ">=10" 3343 | } 3344 | }, 3345 | "node_modules/string-width": { 3346 | "version": "4.2.3", 3347 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", 3348 | "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", 3349 | "dev": true, 3350 | "dependencies": { 3351 | "emoji-regex": "^8.0.0", 3352 | "is-fullwidth-code-point": "^3.0.0", 3353 | "strip-ansi": "^6.0.1" 3354 | }, 3355 | "engines": { 3356 | "node": ">=8" 3357 | } 3358 | }, 3359 | "node_modules/strip-ansi": { 3360 | "version": "6.0.1", 3361 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", 3362 | "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", 3363 | "dev": true, 3364 | "dependencies": { 3365 | "ansi-regex": "^5.0.1" 3366 | }, 3367 | "engines": { 3368 | "node": ">=8" 3369 | } 3370 | }, 3371 | "node_modules/strip-bom": { 3372 | "version": "4.0.0", 3373 | "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", 3374 | "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", 3375 | "dev": true, 3376 | "engines": { 3377 | "node": ">=8" 3378 | } 3379 | }, 3380 | "node_modules/strip-final-newline": { 3381 | "version": "2.0.0", 3382 | "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", 3383 | "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", 3384 | "dev": true, 3385 | "engines": { 3386 | "node": ">=6" 3387 | } 3388 | }, 3389 | "node_modules/strip-json-comments": { 3390 | "version": "3.1.1", 3391 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", 3392 | "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", 3393 | "dev": true, 3394 | "engines": { 3395 | "node": ">=8" 3396 | }, 3397 | "funding": { 3398 | "url": "https://github.com/sponsors/sindresorhus" 3399 | } 3400 | }, 3401 | "node_modules/supports-color": { 3402 | "version": "7.2.0", 3403 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", 3404 | "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", 3405 | "dev": true, 3406 | "dependencies": { 3407 | "has-flag": "^4.0.0" 3408 | }, 3409 | "engines": { 3410 | "node": ">=8" 3411 | } 3412 | }, 3413 | "node_modules/supports-preserve-symlinks-flag": { 3414 | "version": "1.0.0", 3415 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 3416 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 3417 | "dev": true, 3418 | "engines": { 3419 | "node": ">= 0.4" 3420 | }, 3421 | "funding": { 3422 | "url": "https://github.com/sponsors/ljharb" 3423 | } 3424 | }, 3425 | "node_modules/test-exclude": { 3426 | "version": "6.0.0", 3427 | "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", 3428 | "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", 3429 | "dev": true, 3430 | "dependencies": { 3431 | "@istanbuljs/schema": "^0.1.2", 3432 | "glob": "^7.1.4", 3433 | "minimatch": "^3.0.4" 3434 | }, 3435 | "engines": { 3436 | "node": ">=8" 3437 | } 3438 | }, 3439 | "node_modules/tmpl": { 3440 | "version": "1.0.5", 3441 | "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", 3442 | "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", 3443 | "dev": true 3444 | }, 3445 | "node_modules/to-regex-range": { 3446 | "version": "5.0.1", 3447 | "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", 3448 | "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", 3449 | "dev": true, 3450 | "dependencies": { 3451 | "is-number": "^7.0.0" 3452 | }, 3453 | "engines": { 3454 | "node": ">=8.0" 3455 | } 3456 | }, 3457 | "node_modules/tr46": { 3458 | "version": "0.0.3", 3459 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 3460 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 3461 | }, 3462 | "node_modules/ts-jest": { 3463 | "version": "29.2.6", 3464 | "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.6.tgz", 3465 | "integrity": "sha512-yTNZVZqc8lSixm+QGVFcPe6+yj7+TWZwIesuOWvfcn4B9bz5x4NDzVCQQjOs7Hfouu36aEqfEbo9Qpo+gq8dDg==", 3466 | "dev": true, 3467 | "dependencies": { 3468 | "bs-logger": "^0.2.6", 3469 | "ejs": "^3.1.10", 3470 | "fast-json-stable-stringify": "^2.1.0", 3471 | "jest-util": "^29.0.0", 3472 | "json5": "^2.2.3", 3473 | "lodash.memoize": "^4.1.2", 3474 | "make-error": "^1.3.6", 3475 | "semver": "^7.7.1", 3476 | "yargs-parser": "^21.1.1" 3477 | }, 3478 | "bin": { 3479 | "ts-jest": "cli.js" 3480 | }, 3481 | "engines": { 3482 | "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" 3483 | }, 3484 | "peerDependencies": { 3485 | "@babel/core": ">=7.0.0-beta.0 <8", 3486 | "@jest/transform": "^29.0.0", 3487 | "@jest/types": "^29.0.0", 3488 | "babel-jest": "^29.0.0", 3489 | "jest": "^29.0.0", 3490 | "typescript": ">=4.3 <6" 3491 | }, 3492 | "peerDependenciesMeta": { 3493 | "@babel/core": { 3494 | "optional": true 3495 | }, 3496 | "@jest/transform": { 3497 | "optional": true 3498 | }, 3499 | "@jest/types": { 3500 | "optional": true 3501 | }, 3502 | "babel-jest": { 3503 | "optional": true 3504 | }, 3505 | "esbuild": { 3506 | "optional": true 3507 | } 3508 | } 3509 | }, 3510 | "node_modules/ts-jest/node_modules/semver": { 3511 | "version": "7.7.1", 3512 | "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", 3513 | "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", 3514 | "dev": true, 3515 | "bin": { 3516 | "semver": "bin/semver.js" 3517 | }, 3518 | "engines": { 3519 | "node": ">=10" 3520 | } 3521 | }, 3522 | "node_modules/ts-node": { 3523 | "version": "10.9.2", 3524 | "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", 3525 | "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", 3526 | "dev": true, 3527 | "dependencies": { 3528 | "@cspotcode/source-map-support": "^0.8.0", 3529 | "@tsconfig/node10": "^1.0.7", 3530 | "@tsconfig/node12": "^1.0.7", 3531 | "@tsconfig/node14": "^1.0.0", 3532 | "@tsconfig/node16": "^1.0.2", 3533 | "acorn": "^8.4.1", 3534 | "acorn-walk": "^8.1.1", 3535 | "arg": "^4.1.0", 3536 | "create-require": "^1.1.0", 3537 | "diff": "^4.0.1", 3538 | "make-error": "^1.1.1", 3539 | "v8-compile-cache-lib": "^3.0.1", 3540 | "yn": "3.1.1" 3541 | }, 3542 | "bin": { 3543 | "ts-node": "dist/bin.js", 3544 | "ts-node-cwd": "dist/bin-cwd.js", 3545 | "ts-node-esm": "dist/bin-esm.js", 3546 | "ts-node-script": "dist/bin-script.js", 3547 | "ts-node-transpile-only": "dist/bin-transpile.js", 3548 | "ts-script": "dist/bin-script-deprecated.js" 3549 | }, 3550 | "peerDependencies": { 3551 | "@swc/core": ">=1.2.50", 3552 | "@swc/wasm": ">=1.2.50", 3553 | "@types/node": "*", 3554 | "typescript": ">=2.7" 3555 | }, 3556 | "peerDependenciesMeta": { 3557 | "@swc/core": { 3558 | "optional": true 3559 | }, 3560 | "@swc/wasm": { 3561 | "optional": true 3562 | } 3563 | } 3564 | }, 3565 | "node_modules/type-detect": { 3566 | "version": "4.0.8", 3567 | "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", 3568 | "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", 3569 | "dev": true, 3570 | "engines": { 3571 | "node": ">=4" 3572 | } 3573 | }, 3574 | "node_modules/type-fest": { 3575 | "version": "0.21.3", 3576 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", 3577 | "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", 3578 | "dev": true, 3579 | "engines": { 3580 | "node": ">=10" 3581 | }, 3582 | "funding": { 3583 | "url": "https://github.com/sponsors/sindresorhus" 3584 | } 3585 | }, 3586 | "node_modules/typescript": { 3587 | "version": "5.8.2", 3588 | "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.2.tgz", 3589 | "integrity": "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==", 3590 | "dev": true, 3591 | "bin": { 3592 | "tsc": "bin/tsc", 3593 | "tsserver": "bin/tsserver" 3594 | }, 3595 | "engines": { 3596 | "node": ">=14.17" 3597 | } 3598 | }, 3599 | "node_modules/undici-types": { 3600 | "version": "6.20.0", 3601 | "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.20.0.tgz", 3602 | "integrity": "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==", 3603 | "dev": true 3604 | }, 3605 | "node_modules/update-browserslist-db": { 3606 | "version": "1.1.3", 3607 | "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", 3608 | "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", 3609 | "dev": true, 3610 | "funding": [ 3611 | { 3612 | "type": "opencollective", 3613 | "url": "https://opencollective.com/browserslist" 3614 | }, 3615 | { 3616 | "type": "tidelift", 3617 | "url": "https://tidelift.com/funding/github/npm/browserslist" 3618 | }, 3619 | { 3620 | "type": "github", 3621 | "url": "https://github.com/sponsors/ai" 3622 | } 3623 | ], 3624 | "dependencies": { 3625 | "escalade": "^3.2.0", 3626 | "picocolors": "^1.1.1" 3627 | }, 3628 | "bin": { 3629 | "update-browserslist-db": "cli.js" 3630 | }, 3631 | "peerDependencies": { 3632 | "browserslist": ">= 4.21.0" 3633 | } 3634 | }, 3635 | "node_modules/v8-compile-cache-lib": { 3636 | "version": "3.0.1", 3637 | "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", 3638 | "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==", 3639 | "dev": true 3640 | }, 3641 | "node_modules/v8-to-istanbul": { 3642 | "version": "9.3.0", 3643 | "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", 3644 | "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", 3645 | "dev": true, 3646 | "dependencies": { 3647 | "@jridgewell/trace-mapping": "^0.3.12", 3648 | "@types/istanbul-lib-coverage": "^2.0.1", 3649 | "convert-source-map": "^2.0.0" 3650 | }, 3651 | "engines": { 3652 | "node": ">=10.12.0" 3653 | } 3654 | }, 3655 | "node_modules/walker": { 3656 | "version": "1.0.8", 3657 | "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", 3658 | "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", 3659 | "dev": true, 3660 | "dependencies": { 3661 | "makeerror": "1.0.12" 3662 | } 3663 | }, 3664 | "node_modules/webidl-conversions": { 3665 | "version": "3.0.1", 3666 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 3667 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 3668 | }, 3669 | "node_modules/whatwg-url": { 3670 | "version": "5.0.0", 3671 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 3672 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 3673 | "dependencies": { 3674 | "tr46": "~0.0.3", 3675 | "webidl-conversions": "^3.0.0" 3676 | } 3677 | }, 3678 | "node_modules/which": { 3679 | "version": "2.0.2", 3680 | "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", 3681 | "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", 3682 | "dev": true, 3683 | "dependencies": { 3684 | "isexe": "^2.0.0" 3685 | }, 3686 | "bin": { 3687 | "node-which": "bin/node-which" 3688 | }, 3689 | "engines": { 3690 | "node": ">= 8" 3691 | } 3692 | }, 3693 | "node_modules/wrap-ansi": { 3694 | "version": "7.0.0", 3695 | "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", 3696 | "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", 3697 | "dev": true, 3698 | "dependencies": { 3699 | "ansi-styles": "^4.0.0", 3700 | "string-width": "^4.1.0", 3701 | "strip-ansi": "^6.0.0" 3702 | }, 3703 | "engines": { 3704 | "node": ">=10" 3705 | }, 3706 | "funding": { 3707 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 3708 | } 3709 | }, 3710 | "node_modules/wrappy": { 3711 | "version": "1.0.2", 3712 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 3713 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", 3714 | "dev": true 3715 | }, 3716 | "node_modules/write-file-atomic": { 3717 | "version": "4.0.2", 3718 | "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", 3719 | "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", 3720 | "dev": true, 3721 | "dependencies": { 3722 | "imurmurhash": "^0.1.4", 3723 | "signal-exit": "^3.0.7" 3724 | }, 3725 | "engines": { 3726 | "node": "^12.13.0 || ^14.15.0 || >=16.0.0" 3727 | } 3728 | }, 3729 | "node_modules/y18n": { 3730 | "version": "5.0.8", 3731 | "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", 3732 | "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", 3733 | "dev": true, 3734 | "engines": { 3735 | "node": ">=10" 3736 | } 3737 | }, 3738 | "node_modules/yallist": { 3739 | "version": "3.1.1", 3740 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", 3741 | "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", 3742 | "dev": true 3743 | }, 3744 | "node_modules/yargs": { 3745 | "version": "17.7.2", 3746 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", 3747 | "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", 3748 | "dev": true, 3749 | "dependencies": { 3750 | "cliui": "^8.0.1", 3751 | "escalade": "^3.1.1", 3752 | "get-caller-file": "^2.0.5", 3753 | "require-directory": "^2.1.1", 3754 | "string-width": "^4.2.3", 3755 | "y18n": "^5.0.5", 3756 | "yargs-parser": "^21.1.1" 3757 | }, 3758 | "engines": { 3759 | "node": ">=12" 3760 | } 3761 | }, 3762 | "node_modules/yargs-parser": { 3763 | "version": "21.1.1", 3764 | "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", 3765 | "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", 3766 | "dev": true, 3767 | "engines": { 3768 | "node": ">=12" 3769 | } 3770 | }, 3771 | "node_modules/yn": { 3772 | "version": "3.1.1", 3773 | "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", 3774 | "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", 3775 | "dev": true, 3776 | "engines": { 3777 | "node": ">=6" 3778 | } 3779 | }, 3780 | "node_modules/yocto-queue": { 3781 | "version": "0.1.0", 3782 | "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", 3783 | "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", 3784 | "dev": true, 3785 | "engines": { 3786 | "node": ">=10" 3787 | }, 3788 | "funding": { 3789 | "url": "https://github.com/sponsors/sindresorhus" 3790 | } 3791 | } 3792 | } 3793 | } 3794 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "@hoangsonw/fast-fetch", 3 | "displayName": "Fast Fetch Smart API Fetcher", 4 | "version": "1.1.2", 5 | "description": "A smarter fetch() wrapper with auto-retry, deduplication, and minimal boilerplate.", 6 | "main": "dist/index.js", 7 | "types": "index.d.ts", 8 | "type": "module", 9 | "scripts": { 10 | "build": "tsc", 11 | "test": "jest --coverage", 12 | "prepublishOnly": "npm run build", 13 | "demo": "node __tests__/demo.js", 14 | "format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,css,scss,md,html}\"" 15 | }, 16 | "keywords": [ 17 | "fetch", 18 | "fastfetch", 19 | "retry", 20 | "deduplication", 21 | "http", 22 | "api", 23 | "typescript" 24 | ], 25 | "repository": { 26 | "type": "git", 27 | "url": "https://github.com/hoangsonww/FastFetch-API-Fetch-Enhancer.git" 28 | }, 29 | "bugs": { 30 | "url": "https://github.com/hoangsonww/FastFetch-API-Fetch-Enhancer/issues" 31 | }, 32 | "homepage": "https://github.com/hoangsonww/FastFetch-API-Fetch-Enhancer#readme", 33 | "license": "MIT", 34 | "author": "Son Nguyen", 35 | "devDependencies": { 36 | "@types/jest": "^29.0.0", 37 | "jest": "^29.0.0", 38 | "ts-jest": "^29.0.0", 39 | "ts-node": "^10.9.2", 40 | "typescript": "^5.0.0" 41 | }, 42 | "dependencies": { 43 | "@hoangsonw/fast-fetch": "^1.1.1", 44 | "cross-fetch": "^4.1.0", 45 | "prettier": "^3.5.3" 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /src/fastFetch.ts: -------------------------------------------------------------------------------- 1 | import fetch from "cross-fetch"; 2 | 3 | /** 4 | * Options for controlling FastFetch behavior: 5 | * - `retries` -> number of times to retry on failure 6 | * - `retryDelay` -> base delay in ms before next retry (will be multiplied exponentially) 7 | * - `deduplicate` -> whether to merge identical requests in-flight 8 | * - `shouldRetry` -> custom logic to decide if we retry 9 | */ 10 | export interface FastFetchOptions { 11 | retries?: number; 12 | retryDelay?: number; 13 | deduplicate?: boolean; 14 | shouldRetry?: (error: any, attempt: number) => boolean; 15 | } 16 | 17 | /** 18 | * Ongoing in-flight requests for deduplication: 19 | * Keyed by a stable signature of { url, method, headers, body } 20 | */ 21 | const inFlightMap = new Map>(); 22 | 23 | /** 24 | * Generate a signature for dedup if deduplicate is true 25 | */ 26 | function makeSignature(input: RequestInfo, init?: RequestInit): string { 27 | // Basic approach: 28 | const normalized = { 29 | url: typeof input === "string" ? input : (input as Request).url, 30 | method: init?.method ?? "GET", 31 | headers: init?.headers ?? {}, 32 | body: init?.body ?? null, 33 | }; 34 | return JSON.stringify(normalized); 35 | } 36 | 37 | /** 38 | * Sleep helper for retryDelay 39 | */ 40 | function sleep(ms: number) { 41 | return new Promise((resolve) => setTimeout(resolve, ms)); 42 | } 43 | 44 | /** 45 | * FastFetch main function 46 | * - Retries on error with exponential backoff 47 | * - Deduplicates in-flight requests if deduplicate = true 48 | */ 49 | export async function fastFetch( 50 | input: RequestInfo, 51 | init?: RequestInit & FastFetchOptions, 52 | ): Promise { 53 | const { 54 | retries = 0, 55 | retryDelay = 1000, 56 | deduplicate = true, 57 | shouldRetry, 58 | } = init || {}; 59 | 60 | console.log("[FastFetch] Starting request for:", input); 61 | 62 | // If deduplicating, check if a matching in-flight request exists 63 | let signature = ""; 64 | if (deduplicate) { 65 | signature = makeSignature(input, init); 66 | if (inFlightMap.has(signature)) { 67 | console.log( 68 | "[FastFetch] Found in-flight request for signature:", 69 | signature, 70 | ); 71 | return inFlightMap.get(signature)!; 72 | } 73 | } 74 | 75 | // Build a promise chain that tries up to retries + 1 times with exponential backoff 76 | let attempt = 0; 77 | let promise = (async function fetchWithRetry(): Promise { 78 | while (true) { 79 | try { 80 | attempt++; 81 | console.log(`[FastFetch] Attempt #${attempt} for:`, input); 82 | const response = await fetch(input, init); 83 | if (!response.ok && shouldRetry) { 84 | const doRetry = shouldRetry(response, attempt); 85 | console.log( 86 | `[FastFetch] Response not ok (status: ${response.status}). Retry decision: ${doRetry}`, 87 | ); 88 | if (doRetry && attempt <= retries) { 89 | const delay = retryDelay * Math.pow(2, attempt - 1); 90 | console.log( 91 | `[FastFetch] Waiting ${delay}ms (exponential backoff) before retrying...`, 92 | ); 93 | await sleep(delay); 94 | continue; // try again 95 | } 96 | } 97 | console.log(`[FastFetch] Request succeeded on attempt #${attempt}`); 98 | return response; 99 | } catch (error: any) { 100 | console.log(`[FastFetch] Caught error on attempt #${attempt}:`, error); 101 | if (shouldRetry) { 102 | const doRetry = shouldRetry(error, attempt); 103 | console.log(`[FastFetch] Retry decision based on error: ${doRetry}`); 104 | if (doRetry && attempt <= retries) { 105 | const delay = retryDelay * Math.pow(2, attempt - 1); 106 | console.log( 107 | `[FastFetch] Waiting ${delay}ms (exponential backoff) before retrying after error...`, 108 | ); 109 | await sleep(delay); 110 | continue; 111 | } 112 | } else { 113 | if (attempt <= retries) { 114 | const delay = retryDelay * Math.pow(2, attempt - 1); 115 | console.log( 116 | `[FastFetch] Retrying attempt #${attempt} after error. Waiting ${delay}ms...`, 117 | ); 118 | await sleep(delay); 119 | continue; 120 | } 121 | } 122 | console.log("[FastFetch] No more retries. Throwing error."); 123 | throw error; 124 | } 125 | } 126 | })(); 127 | 128 | // If deduplicating, store in the map so subsequent calls get the same promise 129 | if (deduplicate) { 130 | inFlightMap.set(signature, promise); 131 | console.log( 132 | "[FastFetch] Stored in-flight request with signature:", 133 | signature, 134 | ); 135 | } 136 | 137 | try { 138 | const result = await promise; 139 | return result; 140 | } finally { 141 | // Once done (success or fail), remove from inFlightMap 142 | if (deduplicate) { 143 | inFlightMap.delete(signature); 144 | console.log( 145 | "[FastFetch] Removed in-flight record for signature:", 146 | signature, 147 | ); 148 | } 149 | } 150 | } 151 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export { fastFetch } from "./fastFetch.js"; 2 | export type { FastFetchOptions } from "./fastFetch.js"; 3 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | // NodeNext for modern ESM 4 | "module": "NodeNext", 5 | "moduleResolution": "NodeNext", 6 | "target": "ES2020", 7 | "strict": true, 8 | "esModuleInterop": true, 9 | "skipLibCheck": true, 10 | "forceConsistentCasingInFileNames": true, 11 | 12 | "outDir": "dist", 13 | "rootDir": "src", 14 | 15 | "declaration": true, 16 | "declarationMap": true 17 | }, 18 | "include": ["src"], 19 | "exclude": ["node_modules", "**/__tests__"] 20 | } 21 | --------------------------------------------------------------------------------