From d5cca7f4e4d25e9b3756f53d2bdad24d7bc51fdd Mon Sep 17 00:00:00 2001 From: mast1ff Date: Wed, 18 Jun 2025 20:02:24 +0900 Subject: [PATCH 1/5] update to 1.0.0 --- .editorconfig | 16 + .eslintrc.json | 7 - .gitignore | 85 +- .vscode/settings.json | 2 +- biome.json | 37 + examples/basic-usage.ts | 177 ++ jest.config.ts | 20 - package.json | 123 +- pnpm-lock.yaml | 2534 ++++++++++++++++++ src/__tests__/create-client.test.ts | 14 - src/__tests__/error.test.ts | 13 - src/adapters/valibot.ts | 66 + src/adapters/zod.ts | 53 + src/client.test.ts | 208 ++ src/client.ts | 222 ++ src/create-client.ts | 156 -- src/error.ts | 27 - src/index.ts | 33 +- src/schema.test.ts | 66 + src/schema.ts | 86 + src/types.ts | 118 +- src/valibot.test.ts | 68 + tsconfig.json | 31 +- tsup.config.ts | 14 + vitest.config.ts | 15 + yarn.lock | 3870 --------------------------- 26 files changed, 3833 insertions(+), 4228 deletions(-) create mode 100644 .editorconfig delete mode 100644 .eslintrc.json create mode 100644 biome.json create mode 100644 examples/basic-usage.ts delete mode 100644 jest.config.ts create mode 100644 pnpm-lock.yaml delete mode 100644 src/__tests__/create-client.test.ts delete mode 100644 src/__tests__/error.test.ts create mode 100644 src/adapters/valibot.ts create mode 100644 src/adapters/zod.ts create mode 100644 src/client.test.ts create mode 100644 src/client.ts delete mode 100644 src/create-client.ts delete mode 100644 src/error.ts create mode 100644 src/schema.test.ts create mode 100644 src/schema.ts create mode 100644 src/valibot.test.ts create mode 100644 tsup.config.ts create mode 100644 vitest.config.ts delete mode 100644 yarn.lock diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f4c99be --- /dev/null +++ b/.editorconfig @@ -0,0 +1,16 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = tab +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +indent_style = space +trim_trailing_whitespace = false + +[*.yaml] +indent_style = space diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 17707a1..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "@tknf/eslint-config-typescript/node-config", - "rules": { - "linebreak-style": "off", - "no-undef": "off" - } -} diff --git a/.gitignore b/.gitignore index 6dc3420..243bfa3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,15 +1,21 @@ -# Created by https://www.gitignore.io/api/node -# Edit at https://www.gitignore.io/?templates=node +dist/ +sandbox/ -### Node ### -# Logs +# Cloudflare Workers +.wrangler + +# logs logs *.log npm-debug.log* yarn-debug.log* yarn-error.log* +lerna-debug.log* .pnpm-debug.log* +# Diagnostic reports (https://nodejs.org/api/report.html) +report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json + # Runtime data pids *.pid @@ -21,6 +27,7 @@ lib-cov # Coverage directory used by tools like istanbul coverage +*.lcov # nyc test coverage .nyc_output @@ -41,8 +48,11 @@ build/Release node_modules/ jspm_packages/ -# TypeScript v1 declaration files -typings/ +# Snowpack dependency directory (https://snowpack.dev/) +web_modules/ + +# TypeScript cache +*.tsbuildinfo # Optional npm cache directory .npm @@ -50,6 +60,15 @@ typings/ # Optional eslint cache .eslintcache +# Optional stylelint cache +.stylelintcache + +# Microbundle cache +.rpt2_cache/ +.rts2_cache_cjs/ +.rts2_cache_es/ +.rts2_cache_umd/ + # Optional REPL history .node_repl_history @@ -59,22 +78,37 @@ typings/ # Yarn Integrity file .yarn-integrity -# dotenv environment variables file +# dotenv environment variable files .env -.env.test +.env.development.local +.env.test.local +.env.production.local +.env.local # parcel-bundler cache (https://parceljs.org/) .cache +.parcel-cache -# next.js build output +# Next.js build output .next +out -# nuxt.js build output +# Nuxt.js build / generate output .nuxt +# Gatsby files +.cache/ +# Comment in the public line in if your project uses Gatsby and not Next.js +# https://nextjs.org/blog/next-9-1#public-directory-support +# public + # vuepress build output .vuepress/dist +# vuepress v2.x temp and cache directory +.temp +.cache + # Serverless directories .serverless/ @@ -84,17 +118,28 @@ typings/ # DynamoDB Local files .dynamodb/ -# Builds and caches -.turbo -build/** -dist/** +# TernJS port file +.tern-port -# lerna-changelog cache -.changelog/ +# Stores VSCode versions used for testing VSCode extensions +.vscode-test -# typescript -*.tsbuildinfo +# yarn v2 +.yarn/cache +.yarn/unplugged +.yarn/build-state.yml +.yarn/install-state.gz +.pnp.* + +# IDE-specific settings +.idea -# misc +# Claude Code local files +CLAUDE.local.md +settings.local.json + + +# MacOS-specific files .DS_Store -*.pem \ No newline at end of file + +tmp/ diff --git a/.vscode/settings.json b/.vscode/settings.json index 246e9c6..186a9cc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { "editor.codeActionsOnSave": { - "source.fixAll.eslint": true + "source.biome": "explicit" } } diff --git a/biome.json b/biome.json new file mode 100644 index 0000000..bae03ca --- /dev/null +++ b/biome.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", + "files": { + "includes": ["src/**/*.ts", "tests/**/*.ts", "*.ts", "*.json"], + "experimentalScannerIgnores": ["dist", "node_modules", "coverage"] + }, + "vcs": { + "useIgnoreFile": true + }, + "formatter": { + "enabled": true, + "lineWidth": 100, + "attributePosition": "auto" + }, + "assist": { + "enabled": true, + "actions": { + "recommended": true + } + }, + "linter": { + "enabled": true, + "rules": { + "recommended": true + } + }, + "javascript": { + "formatter": { + "quoteStyle": "double", + "semicolons": "always", + "trailingCommas": "es5" + } + }, + "json": { + "formatter": { "enabled": false } + } +} diff --git a/examples/basic-usage.ts b/examples/basic-usage.ts new file mode 100644 index 0000000..e2568de --- /dev/null +++ b/examples/basic-usage.ts @@ -0,0 +1,177 @@ +/** + * TypeFetcher基本的な使用例 + * + * このファイルはTypeFetcherの基本的な使い方を示すサンプルです。 + * 実際のプロジェクトでは、Zodなどのスキーマライブラリと組み合わせて使用します。 + */ + +import { TypeFetcher, createStandardSchemaFromZod } from "../dist"; + +// Zodがインストールされている場合の例(実際にはimportする) +declare const z: any; + +/** + * 基本的な使用例(スキーマなし) + */ +function basicExample() { + // クライアントを作成 + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + headers: { + "User-Agent": "TypeFetcher Example", + }, + }); + + // エンドポイントを登録 + const api = client + .addEndpoint("GET", "/users") + .addEndpoint("GET", "/users/{id}") + .addEndpoint("POST", "/users") + .addEndpoint("PUT", "/users/{id}") + .addEndpoint("DELETE", "/users/{id}"); + + // Octokitライクな呼び出し + return { + async getUsers() { + // TypeScript: Promise + return await api.request("GET /users"); + }, + + async getUser(id: string) { + // パスパラメータを渡す + return await api.request("GET /users/{id}", { + pathParams: { id }, + }); + }, + + async createUser(userData: any) { + return await api.request("POST /users", { + body: userData, + }); + }, + + async updateUser(id: string, userData: any) { + return await api.request("PUT /users/{id}", { + pathParams: { id }, + body: userData, + }); + }, + + async deleteUser(id: string) { + return await api.request("DELETE /users/{id}", { + pathParams: { id }, + }); + }, + }; +} + +/** + * スキーマ付きの型安全な使用例 + */ +function typeSafeExample() { + // Zodスキーマを定義(実際のプロジェクトでzodを使用) + const UserSchema = z.object({ + id: z.number(), + name: z.string(), + email: z.string().email(), + username: z.string(), + }); + + const CreateUserSchema = z.object({ + name: z.string(), + email: z.string().email(), + username: z.string(), + }); + + const PathIdSchema = z.object({ + id: z.string(), + }); + + // クライアントを作成 + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + // スキーマ付きでエンドポイントを登録 + const api = client + .addEndpoint("GET", "/users", { + response: createStandardSchemaFromZod(z.array(UserSchema)), + }) + .addEndpoint("GET", "/users/{id}", { + pathParams: createStandardSchemaFromZod(PathIdSchema), + response: createStandardSchemaFromZod(UserSchema), + }) + .addEndpoint("POST", "/users", { + body: createStandardSchemaFromZod(CreateUserSchema), + response: createStandardSchemaFromZod(UserSchema), + }) + .addEndpoint("PUT", "/users/{id}", { + pathParams: createStandardSchemaFromZod(PathIdSchema), + body: createStandardSchemaFromZod(CreateUserSchema), + response: createStandardSchemaFromZod(UserSchema), + }); + + return { + async getUsers() { + // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }[]> + // 実行時にレスポンスが検証される + return await api.request("GET /users"); + }, + + async getUser(id: string) { + // pathParamsが型チェック・実行時検証される + // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }> + return await api.request("GET /users/{id}", { + pathParams: { id }, // string型が期待される + }); + }, + + async createUser(userData: { name: string; email: string; username: string }) { + // bodyが型チェック・実行時検証される + return await api.request("POST /users", { + body: userData, // CreateUserSchemaの型が期待される + }); + }, + + async updateUser(id: string, userData: { name: string; email: string; username: string }) { + return await api.request("PUT /users/{id}", { + pathParams: { id }, + body: userData, + }); + }, + }; +} + +/** + * エラーハンドリングの例 + */ +async function errorHandlingExample() { + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/users/{id}"); + + try { + const user = await api.request("GET /users/{id}", { + pathParams: { id: "123" }, + }); + console.log(user); + } catch (error) { + if (error instanceof TypeFetcherError) { + // HTTPエラー(404, 500など) + console.error(`HTTP Error: ${error.status} ${error.statusText}`); + console.error("Response data:", error.data); + } else if (error instanceof ValidationError) { + // スキーマ検証エラー + console.error("Validation Error:", error.message); + console.error("Issues:", error.issues); + } else { + // その他のエラー + console.error("Unexpected error:", error); + } + } +} + +// 使用例のエクスポート +export { basicExample, typeSafeExample, errorHandlingExample }; diff --git a/jest.config.ts b/jest.config.ts deleted file mode 100644 index 182ca6d..0000000 --- a/jest.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Config } from "@jest/types"; - -const config: Config.InitialOptions = { - preset: "ts-jest", - testMatch: ["**/*.(spec|test).[jt]s", "!**/*/dist/**/*", "!**/*/fixtures/**/*"], - testPathIgnorePatterns: [], - testTimeout: process.env.CI ? 30000 : 10000, - watchPathIgnorePatterns: [], - globals: { - __DEV__: true, - "ts-jest": { - tsconfig: { - esModuleInterop: true, - lib: ["ESNext", "DOM"] - } - } - } -}; - -export default config; diff --git a/package.json b/package.json index ce8a9e8..031e04a 100644 --- a/package.json +++ b/package.json @@ -1,53 +1,74 @@ { - "name": "@tknf/typefetcher", - "version": "0.1.3", - "description": "TypeScript-first and very simple wrapper of Axios.", - "author": "Tasuku Kuribayashi ", - "repository": { - "url": "https://github.com/tknf/typefetcher" - }, - "license": "MIT", - "private": false, - "homepage": "https://github.com/tknf/typefetcher", - "keywords": [ - "fetch", - "http", - "https", - "ajax", - "api", - "async", - "axios", - "promise", - "xhr", - "xmlhttprequest" - ], - "publishConfig": { - "access": "public" - }, - "files": [ - "dist" - ], - "main": "dist/index.js", - "types": "dist/index.d.ts", - "scripts": { - "clean": "rimraf dist", - "test": "jest", - "dev": "yarn build --preserveWatchOutput -w", - "build": "tsc -p ." - }, - "devDependencies": { - "@tknf/eslint-config-typescript": "^1.0.5", - "@tknf/prettier-config": "^1.0.5", - "@types/jest": "^27.4.1", - "jest": "^27.5.1", - "rimraf": "^3.0.2", - "ts-jest": "^27.1.3", - "ts-node": "^10.6.0", - "typescript": "^4.6.2" - }, - "dependencies": { - "axios": "^0.26.0", - "node-fetch": "^3.2.1" - }, - "prettier": "@tknf/prettier-config" + "name": "@tknf/typefetcher", + "version": "1.0.0", + "description": "TypeScript-first API client with Standard Schema support, providing excellent DX and strict type safety.", + "keywords": [ + "typescript", + "api-client", + "fetch", + "http", + "type-safe", + "standard-schema", + "validation", + "dx", + "hono-like", + "octokit-like" + ], + "repository": { + "url": "https://github.com/tknf/typefetcher" + }, + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org" + }, + "license": "MIT", + "author": "tknf ", + "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", + "exports": { + ".": { + "types": "./index.d.ts", + "import": "./index.js", + "require": "./index.cjs" + } + }, + "files": [ + "dist" + ], + "scripts": { + "build": "tsup", + "test": "vitest", + "test:coverage": "vitest run --coverage", + "test:watch": "vitest --watch", + "lint": "biome lint", + "format": "biome format", + "typecheck": "tsc --noEmit", + "prepublishOnly": "npm run build && npm run typecheck && npm run lint" + }, + "peerDependencies": { + "zod": "^3.0.0", + "valibot": "^1.0.0" + }, + "peerDependenciesMeta": { + "zod": { + "optional": true + }, + "valibot": { + "optional": true + } + }, + "devDependencies": { + "@biomejs/biome": "^2.0.0", + "@types/node": "^24.0.3", + "@vitest/coverage-v8": "^3.2.4", + "ts-node": "^10.6.0", + "tsup": "^8.5.0", + "typescript": "^5.8.3", + "vitest": "^3.2.4" + }, + "dependencies": { + "@standard-schema/spec": "^1.0.0" + } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..7d3357c --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,2534 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@standard-schema/spec': + specifier: ^1.0.0 + version: 1.0.0 + devDependencies: + '@biomejs/biome': + specifier: ^2.0.0 + version: 2.0.0 + '@types/node': + specifier: ^24.0.3 + version: 24.0.3 + '@vitest/coverage-v8': + specifier: ^3.2.4 + version: 3.2.4(vitest@3.2.4(@types/node@24.0.3)(jsdom@16.7.0)) + ts-node: + specifier: ^10.6.0 + version: 10.9.2(@types/node@24.0.3)(typescript@5.8.3) + tsup: + specifier: ^8.5.0 + version: 8.5.0(postcss@8.5.6)(typescript@5.8.3) + typescript: + specifier: ^5.8.3 + version: 5.8.3 + vitest: + specifier: ^3.2.4 + version: 3.2.4(@types/node@24.0.3)(jsdom@16.7.0) + +packages: + + '@ampproject/remapping@2.3.0': + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} + engines: {node: '>=6.0.0'} + + '@babel/helper-string-parser@7.27.1': + resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==} + engines: {node: '>=6.9.0'} + + '@babel/helper-validator-identifier@7.27.1': + resolution: {integrity: sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==} + engines: {node: '>=6.9.0'} + + '@babel/parser@7.27.5': + resolution: {integrity: sha512-OsQd175SxWkGlzbny8J3K8TnnDD0N3lrIUtB92xwyRpzaenGZhxDvxN/JgU00U3CDZNj9tPuDJ5H0WS4Nt3vKg==} + engines: {node: '>=6.0.0'} + hasBin: true + + '@babel/types@7.27.6': + resolution: {integrity: sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==} + engines: {node: '>=6.9.0'} + + '@bcoe/v8-coverage@1.0.2': + resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} + engines: {node: '>=18'} + + '@biomejs/biome@2.0.0': + resolution: {integrity: sha512-BlUoXEOI/UQTDEj/pVfnkMo8SrZw3oOWBDrXYFT43V7HTkIUDkBRY53IC5Jx1QkZbaB+0ai1wJIfYwp9+qaJTQ==} + engines: {node: '>=14.21.3'} + hasBin: true + + '@biomejs/cli-darwin-arm64@2.0.0': + resolution: {integrity: sha512-QvqWYtFFhhxdf8jMAdJzXW+Frc7X8XsnHQLY+TBM1fnT1TfeV/v9vsFI5L2J7GH6qN1+QEEJ19jHibCY2Ypplw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [darwin] + + '@biomejs/cli-darwin-x64@2.0.0': + resolution: {integrity: sha512-5JFhls1EfmuIH4QGFPlNpxJQFC6ic3X1ltcoLN+eSRRIPr6H/lUS1ttuD0Fj7rPgPhZqopK/jfH8UVj/1hIsQw==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [darwin] + + '@biomejs/cli-linux-arm64-musl@2.0.0': + resolution: {integrity: sha512-Bxsz8ki8+b3PytMnS5SgrGV+mbAWwIxI3ydChb/d1rURlJTMdxTTq5LTebUnlsUWAX6OvJuFeiVq9Gjn1YbCyA==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-arm64@2.0.0': + resolution: {integrity: sha512-BAH4QVi06TzAbVchXdJPsL0Z/P87jOfes15rI+p3EX9/EGTfIjaQ9lBVlHunxcmoptaA5y1Hdb9UYojIhmnjIw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [linux] + + '@biomejs/cli-linux-x64-musl@2.0.0': + resolution: {integrity: sha512-tiQ0ABxMJb9I6GlfNp0ulrTiQSFacJRJO8245FFwE3ty3bfsfxlU/miblzDIi+qNrgGsLq5wIZcVYGp4c+HXZA==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-linux-x64@2.0.0': + resolution: {integrity: sha512-09PcOGYTtkopWRm6mZ/B6Mr6UHdkniUgIG/jLBv+2J8Z61ezRE+xQmpi3yNgUrFIAU4lPA9atg7mhvE/5Bo7Wg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [linux] + + '@biomejs/cli-win32-arm64@2.0.0': + resolution: {integrity: sha512-vrTtuGu91xNTEQ5ZcMJBZuDlqr32DWU1r14UfePIGndF//s2WUAmer4FmgoPgruo76rprk37e8S2A2c0psXdxw==} + engines: {node: '>=14.21.3'} + cpu: [arm64] + os: [win32] + + '@biomejs/cli-win32-x64@2.0.0': + resolution: {integrity: sha512-2USVQ0hklNsph/KIR72ZdeptyXNnQ3JdzPn3NbjI4Sna34CnxeiYAaZcZzXPDl5PYNFBivV4xmvT3Z3rTmyDBg==} + engines: {node: '>=14.21.3'} + cpu: [x64] + os: [win32] + + '@cspotcode/source-map-support@0.8.1': + resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} + engines: {node: '>=12'} + + '@esbuild/aix-ppc64@0.25.5': + resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.5': + resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.5': + resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.5': + resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.5': + resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.5': + resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.5': + resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.5': + resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.5': + resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.5': + resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.5': + resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.5': + resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.5': + resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.5': + resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.5': + resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.5': + resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.5': + resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.5': + resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.5': + resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.5': + resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.5': + resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/sunos-x64@0.25.5': + resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.5': + resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.5': + resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.5': + resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@isaacs/cliui@8.0.2': + resolution: {integrity: sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==} + engines: {node: '>=12'} + + '@istanbuljs/schema@0.1.3': + resolution: {integrity: sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==} + engines: {node: '>=8'} + + '@jridgewell/gen-mapping@0.3.8': + resolution: {integrity: sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==} + engines: {node: '>=6.0.0'} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/set-array@1.2.1': + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.0': + resolution: {integrity: sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==} + + '@jridgewell/trace-mapping@0.3.25': + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} + + '@jridgewell/trace-mapping@0.3.9': + resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} + + '@pkgjs/parseargs@0.11.0': + resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} + engines: {node: '>=14'} + + '@rollup/rollup-android-arm-eabi@4.43.0': + resolution: {integrity: sha512-Krjy9awJl6rKbruhQDgivNbD1WuLb8xAclM4IR4cN5pHGAs2oIMMQJEiC3IC/9TZJ+QZkmZhlMO/6MBGxPidpw==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.43.0': + resolution: {integrity: sha512-ss4YJwRt5I63454Rpj+mXCXicakdFmKnUNxr1dLK+5rv5FJgAxnN7s31a5VchRYxCFWdmnDWKd0wbAdTr0J5EA==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.43.0': + resolution: {integrity: sha512-eKoL8ykZ7zz8MjgBenEF2OoTNFAPFz1/lyJ5UmmFSz5jW+7XbH1+MAgCVHy72aG59rbuQLcJeiMrP8qP5d/N0A==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.43.0': + resolution: {integrity: sha512-SYwXJgaBYW33Wi/q4ubN+ldWC4DzQY62S4Ll2dgfr/dbPoF50dlQwEaEHSKrQdSjC6oIe1WgzosoaNoHCdNuMg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.43.0': + resolution: {integrity: sha512-SV+U5sSo0yujrjzBF7/YidieK2iF6E7MdF6EbYxNz94lA+R0wKl3SiixGyG/9Klab6uNBIqsN7j4Y/Fya7wAjQ==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.43.0': + resolution: {integrity: sha512-J7uCsiV13L/VOeHJBo5SjasKiGxJ0g+nQTrBkAsmQBIdil3KhPnSE9GnRon4ejX1XDdsmK/l30IYLiAaQEO0Cg==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.43.0': + resolution: {integrity: sha512-gTJ/JnnjCMc15uwB10TTATBEhK9meBIY+gXP4s0sHD1zHOaIh4Dmy1X9wup18IiY9tTNk5gJc4yx9ctj/fjrIw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm-musleabihf@4.43.0': + resolution: {integrity: sha512-ZJ3gZynL1LDSIvRfz0qXtTNs56n5DI2Mq+WACWZ7yGHFUEirHBRt7fyIk0NsCKhmRhn7WAcjgSkSVVxKlPNFFw==} + cpu: [arm] + os: [linux] + + '@rollup/rollup-linux-arm64-gnu@4.43.0': + resolution: {integrity: sha512-8FnkipasmOOSSlfucGYEu58U8cxEdhziKjPD2FIa0ONVMxvl/hmONtX/7y4vGjdUhjcTHlKlDhw3H9t98fPvyA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-arm64-musl@4.43.0': + resolution: {integrity: sha512-KPPyAdlcIZ6S9C3S2cndXDkV0Bb1OSMsX0Eelr2Bay4EsF9yi9u9uzc9RniK3mcUGCLhWY9oLr6er80P5DE6XA==} + cpu: [arm64] + os: [linux] + + '@rollup/rollup-linux-loongarch64-gnu@4.43.0': + resolution: {integrity: sha512-HPGDIH0/ZzAZjvtlXj6g+KDQ9ZMHfSP553za7o2Odegb/BEfwJcR0Sw0RLNpQ9nC6Gy8s+3mSS9xjZ0n3rhcYg==} + cpu: [loong64] + os: [linux] + + '@rollup/rollup-linux-powerpc64le-gnu@4.43.0': + resolution: {integrity: sha512-gEmwbOws4U4GLAJDhhtSPWPXUzDfMRedT3hFMyRAvM9Mrnj+dJIFIeL7otsv2WF3D7GrV0GIewW0y28dOYWkmw==} + cpu: [ppc64] + os: [linux] + + '@rollup/rollup-linux-riscv64-gnu@4.43.0': + resolution: {integrity: sha512-XXKvo2e+wFtXZF/9xoWohHg+MuRnvO29TI5Hqe9xwN5uN8NKUYy7tXUG3EZAlfchufNCTHNGjEx7uN78KsBo0g==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-riscv64-musl@4.43.0': + resolution: {integrity: sha512-ruf3hPWhjw6uDFsOAzmbNIvlXFXlBQ4nk57Sec8E8rUxs/AI4HD6xmiiasOOx/3QxS2f5eQMKTAwk7KHwpzr/Q==} + cpu: [riscv64] + os: [linux] + + '@rollup/rollup-linux-s390x-gnu@4.43.0': + resolution: {integrity: sha512-QmNIAqDiEMEvFV15rsSnjoSmO0+eJLoKRD9EAa9rrYNwO/XRCtOGM3A5A0X+wmG+XRrw9Fxdsw+LnyYiZWWcVw==} + cpu: [s390x] + os: [linux] + + '@rollup/rollup-linux-x64-gnu@4.43.0': + resolution: {integrity: sha512-jAHr/S0iiBtFyzjhOkAics/2SrXE092qyqEg96e90L3t9Op8OTzS6+IX0Fy5wCt2+KqeHAkti+eitV0wvblEoQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-linux-x64-musl@4.43.0': + resolution: {integrity: sha512-3yATWgdeXyuHtBhrLt98w+5fKurdqvs8B53LaoKD7P7H7FKOONLsBVMNl9ghPQZQuYcceV5CDyPfyfGpMWD9mQ==} + cpu: [x64] + os: [linux] + + '@rollup/rollup-win32-arm64-msvc@4.43.0': + resolution: {integrity: sha512-wVzXp2qDSCOpcBCT5WRWLmpJRIzv23valvcTwMHEobkjippNf+C3ys/+wf07poPkeNix0paTNemB2XrHr2TnGw==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.43.0': + resolution: {integrity: sha512-fYCTEyzf8d+7diCw8b+asvWDCLMjsCEA8alvtAutqJOJp/wL5hs1rWSqJ1vkjgW0L2NB4bsYJrpKkiIPRR9dvw==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.43.0': + resolution: {integrity: sha512-SnGhLiE5rlK0ofq8kzuDkM0g7FN1s5VYY+YSMTibP7CqShxCQvqtNxTARS4xX4PFJfHjG0ZQYX9iGzI3FQh5Aw==} + cpu: [x64] + os: [win32] + + '@standard-schema/spec@1.0.0': + resolution: {integrity: sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA==} + + '@tootallnate/once@1.1.2': + resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} + engines: {node: '>= 6'} + + '@tsconfig/node10@1.0.11': + resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} + + '@tsconfig/node12@1.0.11': + resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} + + '@tsconfig/node14@1.0.3': + resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} + + '@tsconfig/node16@1.0.4': + resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} + + '@types/chai@5.2.2': + resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} + + '@types/deep-eql@4.0.2': + resolution: {integrity: sha512-c9h9dVVMigMPc4bwTvC5dxqtqJZwQPePsWjPlpSOnojbor6pGqdk541lfA7AqFQr5pB1BRdq0juY9db81BwyFw==} + + '@types/estree@1.0.7': + resolution: {integrity: sha512-w28IoSUCJpidD/TGviZwwMJckNESJZXFu7NBZ5YJ4mEUnNraUn9Pm8HSZm/jDF1pDWYKspWE7oVphigUPRakIQ==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/node@24.0.3': + resolution: {integrity: sha512-R4I/kzCYAdRLzfiCabn9hxWfbuHS573x+r0dJMkkzThEa7pbrcDWK+9zu3e7aBOouf+rQAciqPFMnxwr0aWgKg==} + + '@vitest/coverage-v8@3.2.4': + resolution: {integrity: sha512-EyF9SXU6kS5Ku/U82E259WSnvg6c8KTjppUncuNdm5QHpe17mwREHnjDzozC8x9MZ0xfBUFSaLkRv4TMA75ALQ==} + peerDependencies: + '@vitest/browser': 3.2.4 + vitest: 3.2.4 + peerDependenciesMeta: + '@vitest/browser': + optional: true + + '@vitest/expect@3.2.4': + resolution: {integrity: sha512-Io0yyORnB6sikFlt8QW5K7slY4OjqNX9jmJQ02QDda8lyM6B5oNgVWoSoKPac8/kgnCUzuHQKrSLtu/uOqqrig==} + + '@vitest/mocker@3.2.4': + resolution: {integrity: sha512-46ryTE9RZO/rfDd7pEqFl7etuyzekzEhUbTW3BvmeO/BcCMEgq59BKhek3dXDWgAj4oMK6OZi+vRr1wPW6qjEQ==} + peerDependencies: + msw: ^2.4.9 + vite: ^5.0.0 || ^6.0.0 || ^7.0.0-0 + peerDependenciesMeta: + msw: + optional: true + vite: + optional: true + + '@vitest/pretty-format@3.2.4': + resolution: {integrity: sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==} + + '@vitest/runner@3.2.4': + resolution: {integrity: sha512-oukfKT9Mk41LreEW09vt45f8wx7DordoWUZMYdY/cyAk7w5TWkTRCNZYF7sX7n2wB7jyGAl74OxgwhPgKaqDMQ==} + + '@vitest/snapshot@3.2.4': + resolution: {integrity: sha512-dEYtS7qQP2CjU27QBC5oUOxLE/v5eLkGqPE0ZKEIDGMs4vKWe7IjgLOeauHsR0D5YuuycGRO5oSRXnwnmA78fQ==} + + '@vitest/spy@3.2.4': + resolution: {integrity: sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==} + + '@vitest/utils@3.2.4': + resolution: {integrity: sha512-fB2V0JFrQSMsCo9HiSq3Ezpdv4iYaXRG1Sx8edX3MwxfyNn83mKiGzOcH+Fkxt4MHxr3y42fQi1oeAInqgX2QA==} + + abab@2.0.6: + resolution: {integrity: sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==} + deprecated: Use your platform's native atob() and btoa() methods instead + + acorn-globals@6.0.0: + resolution: {integrity: sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==} + + acorn-walk@7.2.0: + resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} + engines: {node: '>=0.4.0'} + + acorn-walk@8.3.4: + resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} + engines: {node: '>=0.4.0'} + + acorn@7.4.1: + resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} + engines: {node: '>=0.4.0'} + hasBin: true + + acorn@8.15.0: + resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==} + engines: {node: '>=0.4.0'} + hasBin: true + + agent-base@6.0.2: + resolution: {integrity: sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==} + engines: {node: '>= 6.0.0'} + + ansi-regex@5.0.1: + resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==} + engines: {node: '>=8'} + + ansi-regex@6.1.0: + resolution: {integrity: sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==} + engines: {node: '>=12'} + + ansi-styles@4.3.0: + resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==} + engines: {node: '>=8'} + + ansi-styles@6.2.1: + resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} + engines: {node: '>=12'} + + any-promise@1.3.0: + resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} + + arg@4.1.3: + resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} + + assertion-error@2.0.1: + resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} + engines: {node: '>=12'} + + ast-v8-to-istanbul@0.3.3: + resolution: {integrity: sha512-MuXMrSLVVoA6sYN/6Hke18vMzrT4TZNbZIj/hvh0fnYFpO+/kFXcLIaiPwXXWaQUPg4yJD8fj+lfJ7/1EBconw==} + + asynckit@0.4.0: + resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==} + + balanced-match@1.0.2: + resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} + + brace-expansion@2.0.2: + resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==} + + browser-process-hrtime@1.0.0: + resolution: {integrity: sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==} + + bundle-require@5.1.0: + resolution: {integrity: sha512-3WrrOuZiyaaZPWiEt4G3+IffISVC9HYlWueJEBWED4ZH4aIAC2PnkdnuRrR94M+w6yGWn4AglWtJtBI8YqvgoA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + peerDependencies: + esbuild: '>=0.18' + + cac@6.7.14: + resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} + engines: {node: '>=8'} + + call-bind-apply-helpers@1.0.2: + resolution: {integrity: sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==} + engines: {node: '>= 0.4'} + + chai@5.2.0: + resolution: {integrity: sha512-mCuXncKXk5iCLhfhwTc0izo0gtEmpz5CtG2y8GiOINBlMVS6v8TMRc5TaLWKS6692m9+dVVfzgeVxR5UxWHTYw==} + engines: {node: '>=12'} + + check-error@2.1.1: + resolution: {integrity: sha512-OAlb+T7V4Op9OwdkjmguYRqncdlx5JiofwOAUkmTF+jNdHwzTaTs4sRAGpzLF3oOz5xAyDGrPgeIDFQmDOTiJw==} + engines: {node: '>= 16'} + + chokidar@4.0.3: + resolution: {integrity: sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA==} + engines: {node: '>= 14.16.0'} + + color-convert@2.0.1: + resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==} + engines: {node: '>=7.0.0'} + + color-name@1.1.4: + resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==} + + combined-stream@1.0.8: + resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==} + engines: {node: '>= 0.8'} + + commander@4.1.1: + resolution: {integrity: sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==} + engines: {node: '>= 6'} + + confbox@0.1.8: + resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==} + + consola@3.4.2: + resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} + engines: {node: ^14.18.0 || >=16.10.0} + + create-require@1.1.1: + resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} + + cross-spawn@7.0.6: + resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + engines: {node: '>= 8'} + + cssom@0.3.8: + resolution: {integrity: sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==} + + cssom@0.4.4: + resolution: {integrity: sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==} + + cssstyle@2.3.0: + resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} + engines: {node: '>=8'} + + data-urls@2.0.0: + resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} + engines: {node: '>=10'} + + debug@4.4.1: + resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + decimal.js@10.5.0: + resolution: {integrity: sha512-8vDa8Qxvr/+d94hSh5P3IJwI5t8/c0KsMp+g8bNw9cY2icONa5aPfvKeieW1WlG0WQYwwhJ7mjui2xtiePQSXw==} + + deep-eql@5.0.2: + resolution: {integrity: sha512-h5k/5U50IJJFpzfL6nO9jaaumfjO/f2NjK/oYB2Djzm4p9L+3T9qWpZqZ2hAbLPuuYq9wrU08WQyBTL5GbPk5Q==} + engines: {node: '>=6'} + + delayed-stream@1.0.0: + resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} + engines: {node: '>=0.4.0'} + + diff@4.0.2: + resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} + engines: {node: '>=0.3.1'} + + domexception@2.0.1: + resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} + engines: {node: '>=8'} + deprecated: Use your platform's native DOMException instead + + dunder-proto@1.0.1: + resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==} + engines: {node: '>= 0.4'} + + eastasianwidth@0.2.0: + resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + + emoji-regex@8.0.0: + resolution: {integrity: sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==} + + emoji-regex@9.2.2: + resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + + es-define-property@1.0.1: + resolution: {integrity: sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==} + engines: {node: '>= 0.4'} + + es-errors@1.3.0: + resolution: {integrity: sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==} + engines: {node: '>= 0.4'} + + es-module-lexer@1.7.0: + resolution: {integrity: sha512-jEQoCwk8hyb2AZziIOLhDqpm5+2ww5uIE6lkO/6jcOCusfk6LhMHpXXfBLXTZ7Ydyt0j4VoUQv6uGNYbdW+kBA==} + + es-object-atoms@1.1.1: + resolution: {integrity: sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==} + engines: {node: '>= 0.4'} + + es-set-tostringtag@2.1.0: + resolution: {integrity: sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==} + engines: {node: '>= 0.4'} + + esbuild@0.25.5: + resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==} + engines: {node: '>=18'} + hasBin: true + + escodegen@2.1.0: + resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} + engines: {node: '>=6.0'} + hasBin: true + + esprima@4.0.1: + resolution: {integrity: sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==} + engines: {node: '>=4'} + hasBin: true + + estraverse@5.3.0: + resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==} + engines: {node: '>=4.0'} + + estree-walker@3.0.3: + resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} + + esutils@2.0.3: + resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} + engines: {node: '>=0.10.0'} + + expect-type@1.2.1: + resolution: {integrity: sha512-/kP8CAwxzLVEeFrMm4kMmy4CCDlpipyA7MYLVrdJIkV0fYF0UaigQHRsxHiuY/GEea+bh4KSv3TIlgr+2UL6bw==} + engines: {node: '>=12.0.0'} + + fdir@6.4.6: + resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fix-dts-default-cjs-exports@1.0.1: + resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==} + + foreground-child@3.3.1: + resolution: {integrity: sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==} + engines: {node: '>=14'} + + form-data@3.0.3: + resolution: {integrity: sha512-q5YBMeWy6E2Un0nMGWMgI65MAKtaylxfNJGJxpGh45YDciZB4epbWpaAfImil6CPAPTYB4sh0URQNDRIZG5F2w==} + engines: {node: '>= 6'} + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + function-bind@1.1.2: + resolution: {integrity: sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==} + + get-intrinsic@1.3.0: + resolution: {integrity: sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==} + engines: {node: '>= 0.4'} + + get-proto@1.0.1: + resolution: {integrity: sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==} + engines: {node: '>= 0.4'} + + glob@10.4.5: + resolution: {integrity: sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==} + hasBin: true + + gopd@1.2.0: + resolution: {integrity: sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==} + engines: {node: '>= 0.4'} + + has-flag@4.0.0: + resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==} + engines: {node: '>=8'} + + has-symbols@1.1.0: + resolution: {integrity: sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==} + engines: {node: '>= 0.4'} + + has-tostringtag@1.0.2: + resolution: {integrity: sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==} + engines: {node: '>= 0.4'} + + hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} + engines: {node: '>= 0.4'} + + html-encoding-sniffer@2.0.1: + resolution: {integrity: sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==} + engines: {node: '>=10'} + + html-escaper@2.0.2: + resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} + + http-proxy-agent@4.0.1: + resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} + engines: {node: '>= 6'} + + https-proxy-agent@5.0.1: + resolution: {integrity: sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==} + engines: {node: '>= 6'} + + iconv-lite@0.4.24: + resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} + engines: {node: '>=0.10.0'} + + is-fullwidth-code-point@3.0.0: + resolution: {integrity: sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==} + engines: {node: '>=8'} + + is-potential-custom-element-name@1.0.1: + resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==} + + isexe@2.0.0: + resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==} + + istanbul-lib-coverage@3.2.2: + resolution: {integrity: sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==} + engines: {node: '>=8'} + + istanbul-lib-report@3.0.1: + resolution: {integrity: sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==} + engines: {node: '>=10'} + + istanbul-lib-source-maps@5.0.6: + resolution: {integrity: sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==} + engines: {node: '>=10'} + + istanbul-reports@3.1.7: + resolution: {integrity: sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==} + engines: {node: '>=8'} + + jackspeak@3.4.3: + resolution: {integrity: sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==} + + joycon@3.1.1: + resolution: {integrity: sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==} + engines: {node: '>=10'} + + js-tokens@9.0.1: + resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==} + + jsdom@16.7.0: + resolution: {integrity: sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==} + engines: {node: '>=10'} + peerDependencies: + canvas: ^2.5.0 + peerDependenciesMeta: + canvas: + optional: true + + lilconfig@3.1.3: + resolution: {integrity: sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==} + engines: {node: '>=14'} + + lines-and-columns@1.2.4: + resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==} + + load-tsconfig@0.2.5: + resolution: {integrity: sha512-IXO6OCs9yg8tMKzfPZ1YmheJbZCiEsnBdcB03l0OcfK9prKnJb96siuHCr5Fl37/yo9DnKU+TLpxzTUspw9shg==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + + lodash.sortby@4.7.0: + resolution: {integrity: sha512-HDWXG8isMntAyRF5vZ7xKuEvOhT4AhlRt/3czTSjvGUxjYCBVRQY48ViDHyfYz9VIoBkW4TMGQNapx+l3RUwdA==} + + lodash@4.17.21: + resolution: {integrity: sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==} + + loupe@3.1.4: + resolution: {integrity: sha512-wJzkKwJrheKtknCOKNEtDK4iqg/MxmZheEMtSTYvnzRdEYaZzmgH976nenp8WdJRdx5Vc1X/9MO0Oszl6ezeXg==} + + lru-cache@10.4.3: + resolution: {integrity: sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==} + + magic-string@0.30.17: + resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==} + + magicast@0.3.5: + resolution: {integrity: sha512-L0WhttDl+2BOsybvEOLK7fW3UA0OQ0IQ2d6Zl2x/a6vVRs3bAY0ECOSHHeL5jD+SbOpOCUEi0y1DgHEn9Qn1AQ==} + + make-dir@4.0.0: + resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} + engines: {node: '>=10'} + + make-error@1.3.6: + resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} + + math-intrinsics@1.1.0: + resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} + engines: {node: '>= 0.4'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + engines: {node: '>= 0.6'} + + minimatch@9.0.5: + resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==} + engines: {node: '>=16 || 14 >=14.17'} + + minipass@7.1.2: + resolution: {integrity: sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==} + engines: {node: '>=16 || 14 >=14.17'} + + mlly@1.7.4: + resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + mz@2.7.0: + resolution: {integrity: sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==} + + nanoid@3.3.11: + resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + nwsapi@2.2.20: + resolution: {integrity: sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA==} + + object-assign@4.1.1: + resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==} + engines: {node: '>=0.10.0'} + + package-json-from-dist@1.0.1: + resolution: {integrity: sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==} + + parse5@6.0.1: + resolution: {integrity: sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==} + + path-key@3.1.1: + resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==} + engines: {node: '>=8'} + + path-scurry@1.11.1: + resolution: {integrity: sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==} + engines: {node: '>=16 || 14 >=14.18'} + + pathe@2.0.3: + resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==} + + pathval@2.0.0: + resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==} + engines: {node: '>= 14.16'} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.2: + resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==} + engines: {node: '>=12'} + + pirates@4.0.7: + resolution: {integrity: sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==} + engines: {node: '>= 6'} + + pkg-types@1.3.1: + resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==} + + postcss-load-config@6.0.1: + resolution: {integrity: sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==} + engines: {node: '>= 18'} + peerDependencies: + jiti: '>=1.21.0' + postcss: '>=8.0.9' + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + jiti: + optional: true + postcss: + optional: true + tsx: + optional: true + yaml: + optional: true + + postcss@8.5.6: + resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==} + engines: {node: ^10 || ^12 || >=14} + + psl@1.15.0: + resolution: {integrity: sha512-JZd3gMVBAVQkSs6HdNZo9Sdo0LNcQeMNP3CozBJb3JYC/QUYZTnKxP+f8oWRX4rHP5EurWxqAHTSwUCjlNKa1w==} + + punycode@2.3.1: + resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==} + engines: {node: '>=6'} + + querystringify@2.2.0: + resolution: {integrity: sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==} + + readdirp@4.1.2: + resolution: {integrity: sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg==} + engines: {node: '>= 14.18.0'} + + requires-port@1.0.0: + resolution: {integrity: sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==} + + resolve-from@5.0.0: + resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} + engines: {node: '>=8'} + + rollup@4.43.0: + resolution: {integrity: sha512-wdN2Kd3Twh8MAEOEJZsuxuLKCsBEo4PVNLK6tQWAn10VhsVewQLzcucMgLolRlhFybGxfclbPeEYBaP6RvUFGg==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + safer-buffer@2.1.2: + resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} + + saxes@5.0.1: + resolution: {integrity: sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==} + engines: {node: '>=10'} + + semver@7.7.2: + resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} + engines: {node: '>=10'} + hasBin: true + + shebang-command@2.0.0: + resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} + engines: {node: '>=8'} + + shebang-regex@3.0.0: + resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==} + engines: {node: '>=8'} + + siginfo@2.0.0: + resolution: {integrity: sha512-ybx0WO1/8bSBLEWXZvEd7gMW3Sn3JFlW3TvX1nREbDLRNQNaeNN8WK0meBwPdAaOI7TtRRRJn/Es1zhrrCHu7g==} + + signal-exit@4.1.0: + resolution: {integrity: sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==} + engines: {node: '>=14'} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + source-map@0.6.1: + resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} + engines: {node: '>=0.10.0'} + + source-map@0.8.0-beta.0: + resolution: {integrity: sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==} + engines: {node: '>= 8'} + + stackback@0.0.2: + resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} + + std-env@3.9.0: + resolution: {integrity: sha512-UGvjygr6F6tpH7o2qyqR6QYpwraIjKSdtzyBdyytFOHmPZY917kwdwLG0RbOjWOnKmnm3PeHjaoLLMie7kPLQw==} + + string-width@4.2.3: + resolution: {integrity: sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==} + engines: {node: '>=8'} + + string-width@5.1.2: + resolution: {integrity: sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==} + engines: {node: '>=12'} + + strip-ansi@6.0.1: + resolution: {integrity: sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==} + engines: {node: '>=8'} + + strip-ansi@7.1.0: + resolution: {integrity: sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==} + engines: {node: '>=12'} + + strip-literal@3.0.0: + resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==} + + sucrase@3.35.0: + resolution: {integrity: sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==} + engines: {node: '>=16 || 14 >=14.17'} + hasBin: true + + supports-color@7.2.0: + resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==} + engines: {node: '>=8'} + + symbol-tree@3.2.4: + resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==} + + test-exclude@7.0.1: + resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} + engines: {node: '>=18'} + + thenify-all@1.6.0: + resolution: {integrity: sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==} + engines: {node: '>=0.8'} + + thenify@3.3.1: + resolution: {integrity: sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==} + + tinybench@2.9.0: + resolution: {integrity: sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==} + + tinyexec@0.3.2: + resolution: {integrity: sha512-KQQR9yN7R5+OSwaK0XQoj22pwHoTlgYqmUscPYoknOoWCWfj/5/ABTMRi69FrKU5ffPVh5QcFikpWJI/P1ocHA==} + + tinyglobby@0.2.14: + resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==} + engines: {node: '>=12.0.0'} + + tinypool@1.1.1: + resolution: {integrity: sha512-Zba82s87IFq9A9XmjiX5uZA/ARWDrB03OHlq+Vw1fSdt0I+4/Kutwy8BP4Y/y/aORMo61FQ0vIb5j44vSo5Pkg==} + engines: {node: ^18.0.0 || >=20.0.0} + + tinyrainbow@2.0.0: + resolution: {integrity: sha512-op4nsTR47R6p0vMUUoYl/a+ljLFVtlfaXkLQmqfLR1qHma1h/ysYk4hEXZ880bf2CYgTskvTa/e196Vd5dDQXw==} + engines: {node: '>=14.0.0'} + + tinyspy@4.0.3: + resolution: {integrity: sha512-t2T/WLB2WRgZ9EpE4jgPJ9w+i66UZfDc8wHh0xrwiRNN+UwH98GIJkTeZqX9rg0i0ptwzqW+uYeIF0T4F8LR7A==} + engines: {node: '>=14.0.0'} + + tough-cookie@4.1.4: + resolution: {integrity: sha512-Loo5UUvLD9ScZ6jh8beX1T6sO1w2/MpCRpEP7V280GKMVUQ0Jzar2U3UJPsrdbziLEMMhu3Ujnq//rhiFuIeag==} + engines: {node: '>=6'} + + tr46@1.0.1: + resolution: {integrity: sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==} + + tr46@2.1.0: + resolution: {integrity: sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==} + engines: {node: '>=8'} + + tree-kill@1.2.2: + resolution: {integrity: sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==} + hasBin: true + + ts-interface-checker@0.1.13: + resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} + + ts-node@10.9.2: + resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} + hasBin: true + peerDependencies: + '@swc/core': '>=1.2.50' + '@swc/wasm': '>=1.2.50' + '@types/node': '*' + typescript: '>=2.7' + peerDependenciesMeta: + '@swc/core': + optional: true + '@swc/wasm': + optional: true + + tsup@8.5.0: + resolution: {integrity: sha512-VmBp77lWNQq6PfuMqCHD3xWl22vEoWsKajkF8t+yMBawlUS8JzEI+vOVMeuNZIuMML8qXRizFKi9oD5glKQVcQ==} + engines: {node: '>=18'} + hasBin: true + peerDependencies: + '@microsoft/api-extractor': ^7.36.0 + '@swc/core': ^1 + postcss: ^8.4.12 + typescript: '>=4.5.0' + peerDependenciesMeta: + '@microsoft/api-extractor': + optional: true + '@swc/core': + optional: true + postcss: + optional: true + typescript: + optional: true + + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + + ufo@1.6.1: + resolution: {integrity: sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==} + + undici-types@7.8.0: + resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==} + + universalify@0.2.0: + resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} + engines: {node: '>= 4.0.0'} + + url-parse@1.5.10: + resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} + + v8-compile-cache-lib@3.0.1: + resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + + vite-node@3.2.4: + resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + + vite@6.3.5: + resolution: {integrity: sha512-cZn6NDFE7wdTpINgs++ZJ4N49W2vRp8LCKrn3Ob1kYNtOo21vfDoaV5GzBfLU4MovSAB8uNRm4jgzVQZ+mBzPQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitest@3.2.4: + resolution: {integrity: sha512-LUCP5ev3GURDysTWiP47wRRUpLKMOfPh+yKTx3kVIEiu5KOMeqzpnYNsKyOoVrULivR8tLcks4+lga33Whn90A==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@edge-runtime/vm': '*' + '@types/debug': ^4.1.12 + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + '@vitest/browser': 3.2.4 + '@vitest/ui': 3.2.4 + happy-dom: '*' + jsdom: '*' + peerDependenciesMeta: + '@edge-runtime/vm': + optional: true + '@types/debug': + optional: true + '@types/node': + optional: true + '@vitest/browser': + optional: true + '@vitest/ui': + optional: true + happy-dom: + optional: true + jsdom: + optional: true + + w3c-hr-time@1.0.2: + resolution: {integrity: sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==} + deprecated: Use your platform's native performance.now() and performance.timeOrigin. + + w3c-xmlserializer@2.0.0: + resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} + engines: {node: '>=10'} + + webidl-conversions@4.0.2: + resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} + + webidl-conversions@5.0.0: + resolution: {integrity: sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==} + engines: {node: '>=8'} + + webidl-conversions@6.1.0: + resolution: {integrity: sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==} + engines: {node: '>=10.4'} + + whatwg-encoding@1.0.5: + resolution: {integrity: sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==} + + whatwg-mimetype@2.3.0: + resolution: {integrity: sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==} + + whatwg-url@7.1.0: + resolution: {integrity: sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==} + + whatwg-url@8.7.0: + resolution: {integrity: sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==} + engines: {node: '>=10'} + + which@2.0.2: + resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} + engines: {node: '>= 8'} + hasBin: true + + why-is-node-running@2.3.0: + resolution: {integrity: sha512-hUrmaWBdVDcxvYqnyh09zunKzROWjbZTiNy8dBEjkS7ehEDQibXJ7XvlmtbwuTclUiIyN+CyXQD4Vmko8fNm8w==} + engines: {node: '>=8'} + hasBin: true + + wrap-ansi@7.0.0: + resolution: {integrity: sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==} + engines: {node: '>=10'} + + wrap-ansi@8.1.0: + resolution: {integrity: sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==} + engines: {node: '>=12'} + + ws@7.5.10: + resolution: {integrity: sha512-+dbF1tHwZpXcbOJdVOkzLDxZP1ailvSxM6ZweXTegylPny803bFhA+vqBYw4s31NSAk4S2Qz+AKXK9a4wkdjcQ==} + engines: {node: '>=8.3.0'} + peerDependencies: + bufferutil: ^4.0.1 + utf-8-validate: ^5.0.2 + peerDependenciesMeta: + bufferutil: + optional: true + utf-8-validate: + optional: true + + xml-name-validator@3.0.0: + resolution: {integrity: sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==} + + xmlchars@2.2.0: + resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} + + yn@3.1.1: + resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} + engines: {node: '>=6'} + +snapshots: + + '@ampproject/remapping@2.3.0': + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + '@jridgewell/trace-mapping': 0.3.25 + + '@babel/helper-string-parser@7.27.1': {} + + '@babel/helper-validator-identifier@7.27.1': {} + + '@babel/parser@7.27.5': + dependencies: + '@babel/types': 7.27.6 + + '@babel/types@7.27.6': + dependencies: + '@babel/helper-string-parser': 7.27.1 + '@babel/helper-validator-identifier': 7.27.1 + + '@bcoe/v8-coverage@1.0.2': {} + + '@biomejs/biome@2.0.0': + optionalDependencies: + '@biomejs/cli-darwin-arm64': 2.0.0 + '@biomejs/cli-darwin-x64': 2.0.0 + '@biomejs/cli-linux-arm64': 2.0.0 + '@biomejs/cli-linux-arm64-musl': 2.0.0 + '@biomejs/cli-linux-x64': 2.0.0 + '@biomejs/cli-linux-x64-musl': 2.0.0 + '@biomejs/cli-win32-arm64': 2.0.0 + '@biomejs/cli-win32-x64': 2.0.0 + + '@biomejs/cli-darwin-arm64@2.0.0': + optional: true + + '@biomejs/cli-darwin-x64@2.0.0': + optional: true + + '@biomejs/cli-linux-arm64-musl@2.0.0': + optional: true + + '@biomejs/cli-linux-arm64@2.0.0': + optional: true + + '@biomejs/cli-linux-x64-musl@2.0.0': + optional: true + + '@biomejs/cli-linux-x64@2.0.0': + optional: true + + '@biomejs/cli-win32-arm64@2.0.0': + optional: true + + '@biomejs/cli-win32-x64@2.0.0': + optional: true + + '@cspotcode/source-map-support@0.8.1': + dependencies: + '@jridgewell/trace-mapping': 0.3.9 + + '@esbuild/aix-ppc64@0.25.5': + optional: true + + '@esbuild/android-arm64@0.25.5': + optional: true + + '@esbuild/android-arm@0.25.5': + optional: true + + '@esbuild/android-x64@0.25.5': + optional: true + + '@esbuild/darwin-arm64@0.25.5': + optional: true + + '@esbuild/darwin-x64@0.25.5': + optional: true + + '@esbuild/freebsd-arm64@0.25.5': + optional: true + + '@esbuild/freebsd-x64@0.25.5': + optional: true + + '@esbuild/linux-arm64@0.25.5': + optional: true + + '@esbuild/linux-arm@0.25.5': + optional: true + + '@esbuild/linux-ia32@0.25.5': + optional: true + + '@esbuild/linux-loong64@0.25.5': + optional: true + + '@esbuild/linux-mips64el@0.25.5': + optional: true + + '@esbuild/linux-ppc64@0.25.5': + optional: true + + '@esbuild/linux-riscv64@0.25.5': + optional: true + + '@esbuild/linux-s390x@0.25.5': + optional: true + + '@esbuild/linux-x64@0.25.5': + optional: true + + '@esbuild/netbsd-arm64@0.25.5': + optional: true + + '@esbuild/netbsd-x64@0.25.5': + optional: true + + '@esbuild/openbsd-arm64@0.25.5': + optional: true + + '@esbuild/openbsd-x64@0.25.5': + optional: true + + '@esbuild/sunos-x64@0.25.5': + optional: true + + '@esbuild/win32-arm64@0.25.5': + optional: true + + '@esbuild/win32-ia32@0.25.5': + optional: true + + '@esbuild/win32-x64@0.25.5': + optional: true + + '@isaacs/cliui@8.0.2': + dependencies: + string-width: 5.1.2 + string-width-cjs: string-width@4.2.3 + strip-ansi: 7.1.0 + strip-ansi-cjs: strip-ansi@6.0.1 + wrap-ansi: 8.1.0 + wrap-ansi-cjs: wrap-ansi@7.0.0 + + '@istanbuljs/schema@0.1.3': {} + + '@jridgewell/gen-mapping@0.3.8': + dependencies: + '@jridgewell/set-array': 1.2.1 + '@jridgewell/sourcemap-codec': 1.5.0 + '@jridgewell/trace-mapping': 0.3.25 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/set-array@1.2.1': {} + + '@jridgewell/sourcemap-codec@1.5.0': {} + + '@jridgewell/trace-mapping@0.3.25': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@jridgewell/trace-mapping@0.3.9': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.0 + + '@pkgjs/parseargs@0.11.0': + optional: true + + '@rollup/rollup-android-arm-eabi@4.43.0': + optional: true + + '@rollup/rollup-android-arm64@4.43.0': + optional: true + + '@rollup/rollup-darwin-arm64@4.43.0': + optional: true + + '@rollup/rollup-darwin-x64@4.43.0': + optional: true + + '@rollup/rollup-freebsd-arm64@4.43.0': + optional: true + + '@rollup/rollup-freebsd-x64@4.43.0': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.43.0': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.43.0': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.43.0': + optional: true + + '@rollup/rollup-linux-loongarch64-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-powerpc64le-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.43.0': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.43.0': + optional: true + + '@rollup/rollup-linux-x64-musl@4.43.0': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.43.0': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.43.0': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.43.0': + optional: true + + '@standard-schema/spec@1.0.0': {} + + '@tootallnate/once@1.1.2': + optional: true + + '@tsconfig/node10@1.0.11': {} + + '@tsconfig/node12@1.0.11': {} + + '@tsconfig/node14@1.0.3': {} + + '@tsconfig/node16@1.0.4': {} + + '@types/chai@5.2.2': + dependencies: + '@types/deep-eql': 4.0.2 + + '@types/deep-eql@4.0.2': {} + + '@types/estree@1.0.7': {} + + '@types/estree@1.0.8': {} + + '@types/node@24.0.3': + dependencies: + undici-types: 7.8.0 + + '@vitest/coverage-v8@3.2.4(vitest@3.2.4(@types/node@24.0.3)(jsdom@16.7.0))': + dependencies: + '@ampproject/remapping': 2.3.0 + '@bcoe/v8-coverage': 1.0.2 + ast-v8-to-istanbul: 0.3.3 + debug: 4.4.1 + istanbul-lib-coverage: 3.2.2 + istanbul-lib-report: 3.0.1 + istanbul-lib-source-maps: 5.0.6 + istanbul-reports: 3.1.7 + magic-string: 0.30.17 + magicast: 0.3.5 + std-env: 3.9.0 + test-exclude: 7.0.1 + tinyrainbow: 2.0.0 + vitest: 3.2.4(@types/node@24.0.3)(jsdom@16.7.0) + transitivePeerDependencies: + - supports-color + + '@vitest/expect@3.2.4': + dependencies: + '@types/chai': 5.2.2 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 + chai: 5.2.0 + tinyrainbow: 2.0.0 + + '@vitest/mocker@3.2.4(vite@6.3.5(@types/node@24.0.3))': + dependencies: + '@vitest/spy': 3.2.4 + estree-walker: 3.0.3 + magic-string: 0.30.17 + optionalDependencies: + vite: 6.3.5(@types/node@24.0.3) + + '@vitest/pretty-format@3.2.4': + dependencies: + tinyrainbow: 2.0.0 + + '@vitest/runner@3.2.4': + dependencies: + '@vitest/utils': 3.2.4 + pathe: 2.0.3 + strip-literal: 3.0.0 + + '@vitest/snapshot@3.2.4': + dependencies: + '@vitest/pretty-format': 3.2.4 + magic-string: 0.30.17 + pathe: 2.0.3 + + '@vitest/spy@3.2.4': + dependencies: + tinyspy: 4.0.3 + + '@vitest/utils@3.2.4': + dependencies: + '@vitest/pretty-format': 3.2.4 + loupe: 3.1.4 + tinyrainbow: 2.0.0 + + abab@2.0.6: + optional: true + + acorn-globals@6.0.0: + dependencies: + acorn: 7.4.1 + acorn-walk: 7.2.0 + optional: true + + acorn-walk@7.2.0: + optional: true + + acorn-walk@8.3.4: + dependencies: + acorn: 8.15.0 + + acorn@7.4.1: + optional: true + + acorn@8.15.0: {} + + agent-base@6.0.2: + dependencies: + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + optional: true + + ansi-regex@5.0.1: {} + + ansi-regex@6.1.0: {} + + ansi-styles@4.3.0: + dependencies: + color-convert: 2.0.1 + + ansi-styles@6.2.1: {} + + any-promise@1.3.0: {} + + arg@4.1.3: {} + + assertion-error@2.0.1: {} + + ast-v8-to-istanbul@0.3.3: + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + estree-walker: 3.0.3 + js-tokens: 9.0.1 + + asynckit@0.4.0: + optional: true + + balanced-match@1.0.2: {} + + brace-expansion@2.0.2: + dependencies: + balanced-match: 1.0.2 + + browser-process-hrtime@1.0.0: + optional: true + + bundle-require@5.1.0(esbuild@0.25.5): + dependencies: + esbuild: 0.25.5 + load-tsconfig: 0.2.5 + + cac@6.7.14: {} + + call-bind-apply-helpers@1.0.2: + dependencies: + es-errors: 1.3.0 + function-bind: 1.1.2 + optional: true + + chai@5.2.0: + dependencies: + assertion-error: 2.0.1 + check-error: 2.1.1 + deep-eql: 5.0.2 + loupe: 3.1.4 + pathval: 2.0.0 + + check-error@2.1.1: {} + + chokidar@4.0.3: + dependencies: + readdirp: 4.1.2 + + color-convert@2.0.1: + dependencies: + color-name: 1.1.4 + + color-name@1.1.4: {} + + combined-stream@1.0.8: + dependencies: + delayed-stream: 1.0.0 + optional: true + + commander@4.1.1: {} + + confbox@0.1.8: {} + + consola@3.4.2: {} + + create-require@1.1.1: {} + + cross-spawn@7.0.6: + dependencies: + path-key: 3.1.1 + shebang-command: 2.0.0 + which: 2.0.2 + + cssom@0.3.8: + optional: true + + cssom@0.4.4: + optional: true + + cssstyle@2.3.0: + dependencies: + cssom: 0.3.8 + optional: true + + data-urls@2.0.0: + dependencies: + abab: 2.0.6 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + optional: true + + debug@4.4.1: + dependencies: + ms: 2.1.3 + + decimal.js@10.5.0: + optional: true + + deep-eql@5.0.2: {} + + delayed-stream@1.0.0: + optional: true + + diff@4.0.2: {} + + domexception@2.0.1: + dependencies: + webidl-conversions: 5.0.0 + optional: true + + dunder-proto@1.0.1: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-errors: 1.3.0 + gopd: 1.2.0 + optional: true + + eastasianwidth@0.2.0: {} + + emoji-regex@8.0.0: {} + + emoji-regex@9.2.2: {} + + es-define-property@1.0.1: + optional: true + + es-errors@1.3.0: + optional: true + + es-module-lexer@1.7.0: {} + + es-object-atoms@1.1.1: + dependencies: + es-errors: 1.3.0 + optional: true + + es-set-tostringtag@2.1.0: + dependencies: + es-errors: 1.3.0 + get-intrinsic: 1.3.0 + has-tostringtag: 1.0.2 + hasown: 2.0.2 + optional: true + + esbuild@0.25.5: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.5 + '@esbuild/android-arm': 0.25.5 + '@esbuild/android-arm64': 0.25.5 + '@esbuild/android-x64': 0.25.5 + '@esbuild/darwin-arm64': 0.25.5 + '@esbuild/darwin-x64': 0.25.5 + '@esbuild/freebsd-arm64': 0.25.5 + '@esbuild/freebsd-x64': 0.25.5 + '@esbuild/linux-arm': 0.25.5 + '@esbuild/linux-arm64': 0.25.5 + '@esbuild/linux-ia32': 0.25.5 + '@esbuild/linux-loong64': 0.25.5 + '@esbuild/linux-mips64el': 0.25.5 + '@esbuild/linux-ppc64': 0.25.5 + '@esbuild/linux-riscv64': 0.25.5 + '@esbuild/linux-s390x': 0.25.5 + '@esbuild/linux-x64': 0.25.5 + '@esbuild/netbsd-arm64': 0.25.5 + '@esbuild/netbsd-x64': 0.25.5 + '@esbuild/openbsd-arm64': 0.25.5 + '@esbuild/openbsd-x64': 0.25.5 + '@esbuild/sunos-x64': 0.25.5 + '@esbuild/win32-arm64': 0.25.5 + '@esbuild/win32-ia32': 0.25.5 + '@esbuild/win32-x64': 0.25.5 + + escodegen@2.1.0: + dependencies: + esprima: 4.0.1 + estraverse: 5.3.0 + esutils: 2.0.3 + optionalDependencies: + source-map: 0.6.1 + optional: true + + esprima@4.0.1: + optional: true + + estraverse@5.3.0: + optional: true + + estree-walker@3.0.3: + dependencies: + '@types/estree': 1.0.8 + + esutils@2.0.3: + optional: true + + expect-type@1.2.1: {} + + fdir@6.4.6(picomatch@4.0.2): + optionalDependencies: + picomatch: 4.0.2 + + fix-dts-default-cjs-exports@1.0.1: + dependencies: + magic-string: 0.30.17 + mlly: 1.7.4 + rollup: 4.43.0 + + foreground-child@3.3.1: + dependencies: + cross-spawn: 7.0.6 + signal-exit: 4.1.0 + + form-data@3.0.3: + dependencies: + asynckit: 0.4.0 + combined-stream: 1.0.8 + es-set-tostringtag: 2.1.0 + mime-types: 2.1.35 + optional: true + + fsevents@2.3.3: + optional: true + + function-bind@1.1.2: + optional: true + + get-intrinsic@1.3.0: + dependencies: + call-bind-apply-helpers: 1.0.2 + es-define-property: 1.0.1 + es-errors: 1.3.0 + es-object-atoms: 1.1.1 + function-bind: 1.1.2 + get-proto: 1.0.1 + gopd: 1.2.0 + has-symbols: 1.1.0 + hasown: 2.0.2 + math-intrinsics: 1.1.0 + optional: true + + get-proto@1.0.1: + dependencies: + dunder-proto: 1.0.1 + es-object-atoms: 1.1.1 + optional: true + + glob@10.4.5: + dependencies: + foreground-child: 3.3.1 + jackspeak: 3.4.3 + minimatch: 9.0.5 + minipass: 7.1.2 + package-json-from-dist: 1.0.1 + path-scurry: 1.11.1 + + gopd@1.2.0: + optional: true + + has-flag@4.0.0: {} + + has-symbols@1.1.0: + optional: true + + has-tostringtag@1.0.2: + dependencies: + has-symbols: 1.1.0 + optional: true + + hasown@2.0.2: + dependencies: + function-bind: 1.1.2 + optional: true + + html-encoding-sniffer@2.0.1: + dependencies: + whatwg-encoding: 1.0.5 + optional: true + + html-escaper@2.0.2: {} + + http-proxy-agent@4.0.1: + dependencies: + '@tootallnate/once': 1.1.2 + agent-base: 6.0.2 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + optional: true + + https-proxy-agent@5.0.1: + dependencies: + agent-base: 6.0.2 + debug: 4.4.1 + transitivePeerDependencies: + - supports-color + optional: true + + iconv-lite@0.4.24: + dependencies: + safer-buffer: 2.1.2 + optional: true + + is-fullwidth-code-point@3.0.0: {} + + is-potential-custom-element-name@1.0.1: + optional: true + + isexe@2.0.0: {} + + istanbul-lib-coverage@3.2.2: {} + + istanbul-lib-report@3.0.1: + dependencies: + istanbul-lib-coverage: 3.2.2 + make-dir: 4.0.0 + supports-color: 7.2.0 + + istanbul-lib-source-maps@5.0.6: + dependencies: + '@jridgewell/trace-mapping': 0.3.25 + debug: 4.4.1 + istanbul-lib-coverage: 3.2.2 + transitivePeerDependencies: + - supports-color + + istanbul-reports@3.1.7: + dependencies: + html-escaper: 2.0.2 + istanbul-lib-report: 3.0.1 + + jackspeak@3.4.3: + dependencies: + '@isaacs/cliui': 8.0.2 + optionalDependencies: + '@pkgjs/parseargs': 0.11.0 + + joycon@3.1.1: {} + + js-tokens@9.0.1: {} + + jsdom@16.7.0: + dependencies: + abab: 2.0.6 + acorn: 8.15.0 + acorn-globals: 6.0.0 + cssom: 0.4.4 + cssstyle: 2.3.0 + data-urls: 2.0.0 + decimal.js: 10.5.0 + domexception: 2.0.1 + escodegen: 2.1.0 + form-data: 3.0.3 + html-encoding-sniffer: 2.0.1 + http-proxy-agent: 4.0.1 + https-proxy-agent: 5.0.1 + is-potential-custom-element-name: 1.0.1 + nwsapi: 2.2.20 + parse5: 6.0.1 + saxes: 5.0.1 + symbol-tree: 3.2.4 + tough-cookie: 4.1.4 + w3c-hr-time: 1.0.2 + w3c-xmlserializer: 2.0.0 + webidl-conversions: 6.1.0 + whatwg-encoding: 1.0.5 + whatwg-mimetype: 2.3.0 + whatwg-url: 8.7.0 + ws: 7.5.10 + xml-name-validator: 3.0.0 + transitivePeerDependencies: + - bufferutil + - supports-color + - utf-8-validate + optional: true + + lilconfig@3.1.3: {} + + lines-and-columns@1.2.4: {} + + load-tsconfig@0.2.5: {} + + lodash.sortby@4.7.0: {} + + lodash@4.17.21: + optional: true + + loupe@3.1.4: {} + + lru-cache@10.4.3: {} + + magic-string@0.30.17: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.0 + + magicast@0.3.5: + dependencies: + '@babel/parser': 7.27.5 + '@babel/types': 7.27.6 + source-map-js: 1.2.1 + + make-dir@4.0.0: + dependencies: + semver: 7.7.2 + + make-error@1.3.6: {} + + math-intrinsics@1.1.0: + optional: true + + mime-db@1.52.0: + optional: true + + mime-types@2.1.35: + dependencies: + mime-db: 1.52.0 + optional: true + + minimatch@9.0.5: + dependencies: + brace-expansion: 2.0.2 + + minipass@7.1.2: {} + + mlly@1.7.4: + dependencies: + acorn: 8.15.0 + pathe: 2.0.3 + pkg-types: 1.3.1 + ufo: 1.6.1 + + ms@2.1.3: {} + + mz@2.7.0: + dependencies: + any-promise: 1.3.0 + object-assign: 4.1.1 + thenify-all: 1.6.0 + + nanoid@3.3.11: {} + + nwsapi@2.2.20: + optional: true + + object-assign@4.1.1: {} + + package-json-from-dist@1.0.1: {} + + parse5@6.0.1: + optional: true + + path-key@3.1.1: {} + + path-scurry@1.11.1: + dependencies: + lru-cache: 10.4.3 + minipass: 7.1.2 + + pathe@2.0.3: {} + + pathval@2.0.0: {} + + picocolors@1.1.1: {} + + picomatch@4.0.2: {} + + pirates@4.0.7: {} + + pkg-types@1.3.1: + dependencies: + confbox: 0.1.8 + mlly: 1.7.4 + pathe: 2.0.3 + + postcss-load-config@6.0.1(postcss@8.5.6): + dependencies: + lilconfig: 3.1.3 + optionalDependencies: + postcss: 8.5.6 + + postcss@8.5.6: + dependencies: + nanoid: 3.3.11 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + psl@1.15.0: + dependencies: + punycode: 2.3.1 + optional: true + + punycode@2.3.1: {} + + querystringify@2.2.0: + optional: true + + readdirp@4.1.2: {} + + requires-port@1.0.0: + optional: true + + resolve-from@5.0.0: {} + + rollup@4.43.0: + dependencies: + '@types/estree': 1.0.7 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.43.0 + '@rollup/rollup-android-arm64': 4.43.0 + '@rollup/rollup-darwin-arm64': 4.43.0 + '@rollup/rollup-darwin-x64': 4.43.0 + '@rollup/rollup-freebsd-arm64': 4.43.0 + '@rollup/rollup-freebsd-x64': 4.43.0 + '@rollup/rollup-linux-arm-gnueabihf': 4.43.0 + '@rollup/rollup-linux-arm-musleabihf': 4.43.0 + '@rollup/rollup-linux-arm64-gnu': 4.43.0 + '@rollup/rollup-linux-arm64-musl': 4.43.0 + '@rollup/rollup-linux-loongarch64-gnu': 4.43.0 + '@rollup/rollup-linux-powerpc64le-gnu': 4.43.0 + '@rollup/rollup-linux-riscv64-gnu': 4.43.0 + '@rollup/rollup-linux-riscv64-musl': 4.43.0 + '@rollup/rollup-linux-s390x-gnu': 4.43.0 + '@rollup/rollup-linux-x64-gnu': 4.43.0 + '@rollup/rollup-linux-x64-musl': 4.43.0 + '@rollup/rollup-win32-arm64-msvc': 4.43.0 + '@rollup/rollup-win32-ia32-msvc': 4.43.0 + '@rollup/rollup-win32-x64-msvc': 4.43.0 + fsevents: 2.3.3 + + safer-buffer@2.1.2: + optional: true + + saxes@5.0.1: + dependencies: + xmlchars: 2.2.0 + optional: true + + semver@7.7.2: {} + + shebang-command@2.0.0: + dependencies: + shebang-regex: 3.0.0 + + shebang-regex@3.0.0: {} + + siginfo@2.0.0: {} + + signal-exit@4.1.0: {} + + source-map-js@1.2.1: {} + + source-map@0.6.1: + optional: true + + source-map@0.8.0-beta.0: + dependencies: + whatwg-url: 7.1.0 + + stackback@0.0.2: {} + + std-env@3.9.0: {} + + string-width@4.2.3: + dependencies: + emoji-regex: 8.0.0 + is-fullwidth-code-point: 3.0.0 + strip-ansi: 6.0.1 + + string-width@5.1.2: + dependencies: + eastasianwidth: 0.2.0 + emoji-regex: 9.2.2 + strip-ansi: 7.1.0 + + strip-ansi@6.0.1: + dependencies: + ansi-regex: 5.0.1 + + strip-ansi@7.1.0: + dependencies: + ansi-regex: 6.1.0 + + strip-literal@3.0.0: + dependencies: + js-tokens: 9.0.1 + + sucrase@3.35.0: + dependencies: + '@jridgewell/gen-mapping': 0.3.8 + commander: 4.1.1 + glob: 10.4.5 + lines-and-columns: 1.2.4 + mz: 2.7.0 + pirates: 4.0.7 + ts-interface-checker: 0.1.13 + + supports-color@7.2.0: + dependencies: + has-flag: 4.0.0 + + symbol-tree@3.2.4: + optional: true + + test-exclude@7.0.1: + dependencies: + '@istanbuljs/schema': 0.1.3 + glob: 10.4.5 + minimatch: 9.0.5 + + thenify-all@1.6.0: + dependencies: + thenify: 3.3.1 + + thenify@3.3.1: + dependencies: + any-promise: 1.3.0 + + tinybench@2.9.0: {} + + tinyexec@0.3.2: {} + + tinyglobby@0.2.14: + dependencies: + fdir: 6.4.6(picomatch@4.0.2) + picomatch: 4.0.2 + + tinypool@1.1.1: {} + + tinyrainbow@2.0.0: {} + + tinyspy@4.0.3: {} + + tough-cookie@4.1.4: + dependencies: + psl: 1.15.0 + punycode: 2.3.1 + universalify: 0.2.0 + url-parse: 1.5.10 + optional: true + + tr46@1.0.1: + dependencies: + punycode: 2.3.1 + + tr46@2.1.0: + dependencies: + punycode: 2.3.1 + optional: true + + tree-kill@1.2.2: {} + + ts-interface-checker@0.1.13: {} + + ts-node@10.9.2(@types/node@24.0.3)(typescript@5.8.3): + dependencies: + '@cspotcode/source-map-support': 0.8.1 + '@tsconfig/node10': 1.0.11 + '@tsconfig/node12': 1.0.11 + '@tsconfig/node14': 1.0.3 + '@tsconfig/node16': 1.0.4 + '@types/node': 24.0.3 + acorn: 8.15.0 + acorn-walk: 8.3.4 + arg: 4.1.3 + create-require: 1.1.1 + diff: 4.0.2 + make-error: 1.3.6 + typescript: 5.8.3 + v8-compile-cache-lib: 3.0.1 + yn: 3.1.1 + + tsup@8.5.0(postcss@8.5.6)(typescript@5.8.3): + dependencies: + bundle-require: 5.1.0(esbuild@0.25.5) + cac: 6.7.14 + chokidar: 4.0.3 + consola: 3.4.2 + debug: 4.4.1 + esbuild: 0.25.5 + fix-dts-default-cjs-exports: 1.0.1 + joycon: 3.1.1 + picocolors: 1.1.1 + postcss-load-config: 6.0.1(postcss@8.5.6) + resolve-from: 5.0.0 + rollup: 4.43.0 + source-map: 0.8.0-beta.0 + sucrase: 3.35.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.14 + tree-kill: 1.2.2 + optionalDependencies: + postcss: 8.5.6 + typescript: 5.8.3 + transitivePeerDependencies: + - jiti + - supports-color + - tsx + - yaml + + typescript@5.8.3: {} + + ufo@1.6.1: {} + + undici-types@7.8.0: {} + + universalify@0.2.0: + optional: true + + url-parse@1.5.10: + dependencies: + querystringify: 2.2.0 + requires-port: 1.0.0 + optional: true + + v8-compile-cache-lib@3.0.1: {} + + vite-node@3.2.4(@types/node@24.0.3): + dependencies: + cac: 6.7.14 + debug: 4.4.1 + es-module-lexer: 1.7.0 + pathe: 2.0.3 + vite: 6.3.5(@types/node@24.0.3) + transitivePeerDependencies: + - '@types/node' + - jiti + - less + - lightningcss + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + vite@6.3.5(@types/node@24.0.3): + dependencies: + esbuild: 0.25.5 + fdir: 6.4.6(picomatch@4.0.2) + picomatch: 4.0.2 + postcss: 8.5.6 + rollup: 4.43.0 + tinyglobby: 0.2.14 + optionalDependencies: + '@types/node': 24.0.3 + fsevents: 2.3.3 + + vitest@3.2.4(@types/node@24.0.3)(jsdom@16.7.0): + dependencies: + '@types/chai': 5.2.2 + '@vitest/expect': 3.2.4 + '@vitest/mocker': 3.2.4(vite@6.3.5(@types/node@24.0.3)) + '@vitest/pretty-format': 3.2.4 + '@vitest/runner': 3.2.4 + '@vitest/snapshot': 3.2.4 + '@vitest/spy': 3.2.4 + '@vitest/utils': 3.2.4 + chai: 5.2.0 + debug: 4.4.1 + expect-type: 1.2.1 + magic-string: 0.30.17 + pathe: 2.0.3 + picomatch: 4.0.2 + std-env: 3.9.0 + tinybench: 2.9.0 + tinyexec: 0.3.2 + tinyglobby: 0.2.14 + tinypool: 1.1.1 + tinyrainbow: 2.0.0 + vite: 6.3.5(@types/node@24.0.3) + vite-node: 3.2.4(@types/node@24.0.3) + why-is-node-running: 2.3.0 + optionalDependencies: + '@types/node': 24.0.3 + jsdom: 16.7.0 + transitivePeerDependencies: + - jiti + - less + - lightningcss + - msw + - sass + - sass-embedded + - stylus + - sugarss + - supports-color + - terser + - tsx + - yaml + + w3c-hr-time@1.0.2: + dependencies: + browser-process-hrtime: 1.0.0 + optional: true + + w3c-xmlserializer@2.0.0: + dependencies: + xml-name-validator: 3.0.0 + optional: true + + webidl-conversions@4.0.2: {} + + webidl-conversions@5.0.0: + optional: true + + webidl-conversions@6.1.0: + optional: true + + whatwg-encoding@1.0.5: + dependencies: + iconv-lite: 0.4.24 + optional: true + + whatwg-mimetype@2.3.0: + optional: true + + whatwg-url@7.1.0: + dependencies: + lodash.sortby: 4.7.0 + tr46: 1.0.1 + webidl-conversions: 4.0.2 + + whatwg-url@8.7.0: + dependencies: + lodash: 4.17.21 + tr46: 2.1.0 + webidl-conversions: 6.1.0 + optional: true + + which@2.0.2: + dependencies: + isexe: 2.0.0 + + why-is-node-running@2.3.0: + dependencies: + siginfo: 2.0.0 + stackback: 0.0.2 + + wrap-ansi@7.0.0: + dependencies: + ansi-styles: 4.3.0 + string-width: 4.2.3 + strip-ansi: 6.0.1 + + wrap-ansi@8.1.0: + dependencies: + ansi-styles: 6.2.1 + string-width: 5.1.2 + strip-ansi: 7.1.0 + + ws@7.5.10: + optional: true + + xml-name-validator@3.0.0: + optional: true + + xmlchars@2.2.0: + optional: true + + yn@3.1.1: {} diff --git a/src/__tests__/create-client.test.ts b/src/__tests__/create-client.test.ts deleted file mode 100644 index 0232f3b..0000000 --- a/src/__tests__/create-client.test.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { createClient } from "../create-client"; - -describe("Create Client", () => { - const client = createClient(); - - test("should have all methods", () => { - expect(typeof client.get).toEqual("function"); - expect(typeof client.post).toEqual("function"); - expect(typeof client.put).toEqual("function"); - expect(typeof client.patch).toEqual("function"); - expect(typeof client.delete).toEqual("function"); - expect(typeof client.getConfig).toEqual("function"); - }); -}); diff --git a/src/__tests__/error.test.ts b/src/__tests__/error.test.ts deleted file mode 100644 index c7afd57..0000000 --- a/src/__tests__/error.test.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { RequestError } from "../error"; - -describe("RequestError", () => { - test("No message", () => { - const err = new RequestError({ - status: 400, - statusText: "Test Error" - }); - - expect(err.message).toMatch("Test Error"); - expect(err.status).toBe(400); - }); -}); diff --git a/src/adapters/valibot.ts b/src/adapters/valibot.ts new file mode 100644 index 0000000..f629bf1 --- /dev/null +++ b/src/adapters/valibot.ts @@ -0,0 +1,66 @@ +import type { StandardSchemaV1 } from "../schema"; + +/** + * Valibot互換のスキーマインターフェース + */ +interface ValibotLike { + safeParse( + input: unknown + ): + | { success: true; output: Output; issues?: never } + | { success: false; issues: readonly ValibotIssue[]; output?: never }; + _types?: { + input: Input; + output: Output; + }; +} + +interface ValibotIssue { + message: string; + path?: readonly { key: string | number }[]; +} + +/** + * ValibotスキーマをStandard Schemaに変換 + */ +export function createStandardSchemaFromValibot( + valibotSchema: T +): StandardSchemaV1< + T["_types"] extends { input: infer I } ? I : unknown, + T["_types"] extends { output: infer O } ? O : unknown +> { + return { + "~standard": { + version: 1, + vendor: "valibot", + validate: (input: unknown) => { + const result = valibotSchema.safeParse(input); + if (result.success) { + return { + value: result.output as T["_types"] extends { output: infer O } ? O : unknown, + }; + } + return { + issues: result.issues?.map((issue) => ({ + message: issue.message, + path: issue.path?.map((segment) => segment.key), + })) || [{ message: "Validation failed" }], + }; + }, + types: { + input: undefined as T["_types"] extends { input: infer I } ? I : unknown, + output: undefined as T["_types"] extends { output: infer O } ? O : unknown, + }, + }, + }; +} + +/** + * 型安全なValibotアダプター(型推論のヘルパー) + */ +export const v = { + /** + * Valibotスキーマを Standard Schema に変換 + */ + toStandardSchema: createStandardSchemaFromValibot, +} as const; diff --git a/src/adapters/zod.ts b/src/adapters/zod.ts new file mode 100644 index 0000000..f180f62 --- /dev/null +++ b/src/adapters/zod.ts @@ -0,0 +1,53 @@ +import type { StandardSchemaV1 } from "../schema"; + +/** + * Zod互換のスキーマインターフェース + */ +interface ZodLike { + parse(input: unknown): Output; + safeParse(input: unknown): { success: true; data: Output } | { success: false; error: any }; + _input: Input; + _output: Output; +} + +/** + * ZodスキーマをStandard Schemaに変換 + */ +export function createStandardSchemaFromZod( + zodSchema: T +): StandardSchemaV1 { + return { + "~standard": { + version: 1, + vendor: "zod", + validate: (input: unknown) => { + const result = zodSchema.safeParse(input); + if (result.success) { + return { + value: result.data, + }; + } + return { + issues: (result as { success: false; error: any }).error.issues?.map((issue: any) => ({ + message: issue.message, + path: issue.path, + })) || [{ message: "Validation failed" }], + }; + }, + types: { + input: undefined as T["_input"], + output: undefined as T["_output"], + }, + }, + }; +} + +/** + * 型安全なZodアダプター(型推論のヘルパー) + */ +export const z = { + /** + * Zodスキーマを Standard Schema に変換 + */ + toStandardSchema: createStandardSchemaFromZod, +} as const; diff --git a/src/client.test.ts b/src/client.test.ts new file mode 100644 index 0000000..d6629a7 --- /dev/null +++ b/src/client.test.ts @@ -0,0 +1,208 @@ +import { beforeEach, describe, expect, test, vi } from "vitest"; +import { createStandardSchemaFromZod } from "./adapters/zod"; +import { TypeFetcher } from "./client"; +import { TypeFetcherError, ValidationError } from "./types"; + +// Mock fetch +const mockFetch = vi.fn(); +global.fetch = mockFetch; + +// Zodライクなモックスキーマ +const createMockZodSchema = (validator: (input: unknown) => T) => ({ + parse: (input: unknown) => validator(input), + safeParse: (input: unknown) => { + try { + const data = validator(input); + return { success: true as const, data }; + } catch (error) { + return { + success: false as const, + error: { + issues: [{ message: "Validation failed", path: [] }], + }, + }; + } + }, + _input: undefined as unknown, + _output: undefined as T, +}); + +describe("TypeFetcher", () => { + let fetcher: TypeFetcher; + + beforeEach(() => { + fetcher = new TypeFetcher({ baseURL: "https://api.example.com" }); + mockFetch.mockClear(); + }); + + test("should create instance with default config", () => { + const defaultFetcher = new TypeFetcher(); + expect(defaultFetcher).toBeInstanceOf(TypeFetcher); + }); + + test("should add endpoint and maintain type safety", () => { + const newFetcher = fetcher.addEndpoint("GET", "/users/{id}"); + expect(newFetcher).toBeInstanceOf(TypeFetcher); + }); + + test("should make GET request without schema", async () => { + const responseData = { id: 1, name: "John" }; + mockFetch.mockResolvedValueOnce({ + ok: true, + json: async () => responseData, + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("GET", "/users/{id}"); + + const result = await client.request("GET /users/{id}", { + pathParams: { id: "1" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users/1", + expect.objectContaining({ + method: "GET", + headers: expect.objectContaining({ + "Content-Type": "application/json", + }), + }) + ); + expect(result).toEqual(responseData); + }); + + test("should make POST request with body", async () => { + const requestBody = { name: "Jane", email: "jane@example.com" }; + const responseData = { id: 2, ...requestBody }; + + mockFetch.mockResolvedValueOnce({ + ok: true, + json: async () => responseData, + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("POST", "/users"); + + const result = await client.request("POST /users", { + body: requestBody, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users", + expect.objectContaining({ + method: "POST", + body: JSON.stringify(requestBody), + }) + ); + expect(result).toEqual(responseData); + }); + + test("should validate request with schema", async () => { + const userSchema = createMockZodSchema((input: any) => { + if (typeof input?.name !== "string") throw new Error("Invalid name"); + return input as { name: string; email?: string }; + }); + + const responseData = { id: 1, name: "John" }; + mockFetch.mockResolvedValueOnce({ + ok: true, + json: async () => responseData, + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("POST", "/users", { + body: createStandardSchemaFromZod(userSchema), + }); + + const result = await client.request("POST /users", { + body: { name: "John", email: "john@example.com" }, + }); + + expect(result).toEqual(responseData); + }); + + test("should throw ValidationError for invalid request body", async () => { + const userSchema = createMockZodSchema((input: any) => { + if (typeof input?.name !== "string") throw new Error("Invalid name"); + return input; + }); + + const client = fetcher.addEndpoint("POST", "/users", { + body: createStandardSchemaFromZod(userSchema), + }); + + await expect( + client.request("POST /users", { + body: { name: 123 }, // Invalid: name should be string + }) + ).rejects.toThrow(ValidationError); + }); + + test("should handle HTTP errors", async () => { + const errorData = { error: "User not found" }; + mockFetch.mockResolvedValueOnce({ + ok: false, + status: 404, + statusText: "Not Found", + json: async () => errorData, + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("GET", "/users/{id}"); + + try { + await client.request("GET /users/{id}", { + pathParams: { id: "999" }, + }); + expect.fail("Should have thrown TypeFetcherError"); + } catch (error) { + expect(error).toBeInstanceOf(TypeFetcherError); + expect((error as TypeFetcherError).status).toBe(404); + } + }); + + test("should handle query parameters", async () => { + const responseData = [{ id: 1, name: "John" }]; + mockFetch.mockResolvedValueOnce({ + ok: true, + json: async () => responseData, + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("GET", "/users"); + + await client.request("GET /users", { + query: { page: "1", limit: "10" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users?page=1&limit=10", + expect.any(Object) + ); + }); + + test("should throw error for non-existent endpoint", async () => { + await expect(fetcher.request("GET /non-existent" as any, {} as any)).rejects.toThrow( + "Endpoint not found" + ); + }); + + test("should replace path parameters correctly", async () => { + mockFetch.mockResolvedValueOnce({ + ok: true, + json: async () => ({}), + headers: new Headers({ "content-type": "application/json" }), + }); + + const client = fetcher.addEndpoint("GET", "/users/{userId}/posts/{postId}"); + + await client.request("GET /users/{userId}/posts/{postId}", { + pathParams: { userId: "123", postId: "456" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users/123/posts/456", + expect.any(Object) + ); + }); +}); diff --git a/src/client.ts b/src/client.ts new file mode 100644 index 0000000..a360b62 --- /dev/null +++ b/src/client.ts @@ -0,0 +1,222 @@ +import { validateSync } from "./schema"; +import type { + EndpointDefinition, + EndpointMap, + EndpointSchema, + HttpMethod, + RequestOptions, + ResponseType, + TypeFetcherConfig, +} from "./types"; +import { TypeFetcherError, ValidationError } from "./types"; + +/** + * エンドポイントマップからリクエストオプションの型を生成 + */ +type RequestOptionsForEndpoint< + T extends EndpointMap, + K extends keyof T, +> = T[K] extends EndpointDefinition + ? Schema extends EndpointSchema + ? { + [P in keyof RequestOptions]: RequestOptions[P]; + } + : { + pathParams?: Record; + query?: Record; + body?: unknown; + headers?: Record; + } + : { + pathParams?: Record; + query?: Record; + body?: unknown; + headers?: Record; + }; + +/** + * エンドポイントマップからレスポンス型を生成 + */ +type ResponseForEndpoint< + T extends EndpointMap, + K extends keyof T, +> = T[K] extends EndpointDefinition + ? Schema extends EndpointSchema + ? ResponseType + : unknown + : unknown; + +export class TypeFetcher { + private endpoints: T; + private config: TypeFetcherConfig; + + constructor(config: TypeFetcherConfig = {}) { + this.endpoints = {} as T; + this.config = config; + } + + /** + * エンドポイントを登録 + */ + addEndpoint( + method: Method, + path: Path, + schema?: Schema + ): TypeFetcher>> { + const key = `${method} ${path}` as const; + const newEndpoints = { + ...this.endpoints, + [key]: { + method, + path, + schema, + }, + } as T & Record<`${Method} ${Path}`, EndpointDefinition>; + + const newFetcher = new TypeFetcher< + T & Record<`${Method} ${Path}`, EndpointDefinition> + >(this.config); + newFetcher.endpoints = newEndpoints; + return newFetcher; + } + + /** + * リクエストを実行 + */ + async request( + key: K, + options?: RequestOptionsForEndpoint + ): Promise>; + async request(key: string, options?: any): Promise; + async request( + key: K | string, + options: RequestOptionsForEndpoint | any = {} + ): Promise | any> { + const endpoint = this.endpoints[key]; + if (!endpoint) { + throw new Error(`Endpoint not found: ${key}`); + } + + const parsed = this.parseRequestKey(key); + if (!parsed) { + throw new Error(`Invalid request key format: ${key}`); + } + + const [method, pathTemplate] = parsed; + const { pathParams, query, body, headers = {} } = options as any; + + // パスパラメータの検証と置換 + let finalPath = pathTemplate; + if (pathParams) { + if (endpoint.schema?.pathParams) { + const validation = validateSync(endpoint.schema.pathParams, pathParams); + if (!validation.success) { + throw new ValidationError(validation.issues || [], "Path parameters validation failed"); + } + finalPath = this.replacePath(pathTemplate, validation.data as Record); + } else { + finalPath = this.replacePath(pathTemplate, pathParams as Record); + } + } + + // クエリパラメータの検証 + let validatedQuery: any; + if (query) { + if (endpoint.schema?.query) { + const validation = validateSync(endpoint.schema.query, query); + if (!validation.success) { + throw new ValidationError(validation.issues || [], "Query parameters validation failed"); + } + validatedQuery = validation.data; + } else { + validatedQuery = query; + } + } + + // ボディの検証 + let validatedBody: any; + if (body) { + if (endpoint.schema?.body) { + const validation = validateSync(endpoint.schema.body, body); + if (!validation.success) { + throw new ValidationError(validation.issues || [], "Request body validation failed"); + } + validatedBody = validation.data; + } else { + validatedBody = body; + } + } + + // リクエストの実行 + const url = new URL(finalPath, this.config.baseURL); + if (validatedQuery) { + Object.entries(validatedQuery).forEach(([key, value]) => { + url.searchParams.set(key, String(value)); + }); + } + + const requestInit: RequestInit = { + method, + headers: { + "Content-Type": "application/json", + ...this.config.headers, + ...headers, + }, + }; + + if (validatedBody && method !== "GET" && method !== "DELETE") { + requestInit.body = JSON.stringify(validatedBody); + } + + const response = await fetch(url.toString(), requestInit); + + if (!response.ok) { + let errorData: unknown; + try { + const contentType = response.headers.get("content-type"); + errorData = contentType?.includes("application/json") + ? await response.json() + : await response.text(); + } catch { + errorData = null; + } + throw new TypeFetcherError(response.status, response.statusText, undefined, errorData); + } + + // レスポンスの解析 + const contentType = response.headers.get("content-type"); + let responseData: unknown; + if (contentType?.includes("application/json")) { + responseData = await response.json(); + } else { + responseData = await response.text(); + } + + // レスポンスの検証 + if (endpoint.schema?.response) { + const validation = validateSync(endpoint.schema.response, responseData); + if (!validation.success) { + throw new ValidationError(validation.issues || [], "Response validation failed"); + } + return validation.data as ResponseForEndpoint; + } + + return responseData as ResponseForEndpoint; + } + + private parseRequestKey(key: string): [HttpMethod, string] | null { + const match = key.match(/^(GET|POST|PUT|PATCH|DELETE) (.+)$/); + if (!match) return null; + return [match[1] as HttpMethod, match[2]]; + } + + private replacePath(template: string, params: Record): string { + return template.replace(/\{([^}]+)\}/g, (_, key) => { + const value = params[key]; + if (value === undefined) { + throw new Error(`Missing path parameter: ${key}`); + } + return encodeURIComponent(value); + }); + } +} diff --git a/src/create-client.ts b/src/create-client.ts deleted file mode 100644 index b641334..0000000 --- a/src/create-client.ts +++ /dev/null @@ -1,156 +0,0 @@ -import axios from "axios"; -import { RequestError } from "./error"; -import { - ClientConfig, - GetRequestConfig, - PostRequestConfig, - SafeGetRequestConfig, - SafePostRequestConfig, - TypesafeResponse -} from "./types"; - -function createError(e: unknown | any): RequestError { - if (axios.isAxiosError(e) && e.response) { - return new RequestError({ - status: e.response.status, - statusText: e.response.statusText, - stack: e.stack, - message: - e.response.data?.message || e.response.data?.error?.message || e.response.data?.err?.message || undefined, - code: e.response.data?.code || e.response.data?.error?.code || e.response.data?.err?.code || undefined - }); - } - - return new RequestError({ - status: e?.status || 0, - statusText: e?.statusText || "Unknown Error", - message: "Unhandled Rejection" - }); -} - -export function createClient(config: ClientConfig = {}) { - const client = axios.create(config); - - function buildGetLikeRequest( - method: "GET" | "DELETE" - ): (config: GetRequestConfig) => Promise; - function buildGetLikeRequest( - method: "GET" | "DELETE" - ): (config: SafeGetRequestConfig) => Promise>; - function buildGetLikeRequest(method: "GET" | "DELETE") { - return async ({ url, query, ...config }: GetRequestConfig | SafeGetRequestConfig) => { - if ("safe" in config) { - try { - const response = await client.request({ - ...config, - url, - method, - params: query - }); - return [null, response.data as ReturnObject] as const; - } catch (e) { - return [createError(e), null] as const; - } - } - - const response = await client.request({ - ...config, - url, - method, - params: query - }); - return response.data as ReturnObject; - }; - } - - function buildPostLikeRequest( - method: "POST" | "PUT" | "PATCH" - ): (config: PostRequestConfig) => Promise; - function buildPostLikeRequest( - method: "POST" | "PUT" | "PATCH" - ): (config: SafePostRequestConfig) => Promise>; - function buildPostLikeRequest(method: "POST" | "PUT" | "PATCH") { - return async ({ - url, - query, - body, - ...config - }: PostRequestConfig | SafePostRequestConfig) => { - if ("safe" in config) { - try { - const response = await client.request({ - ...config, - url, - method, - data: body, - params: query - }); - return [null, response.data] as const; - } catch (e) { - return [createError(e), null] as const; - } - } - - const response = await client.request({ - ...config, - url, - method, - data: body, - params: query - }); - return response.data; - }; - } - - function get(config: GetRequestConfig): Promise; - function get(config: SafeGetRequestConfig): Promise>; - function get(config: GetRequestConfig | SafeGetRequestConfig) { - return buildGetLikeRequest("GET")(config); - } - - function post(config: PostRequestConfig): Promise; - function post( - config: SafePostRequestConfig - ): Promise>; - function post( - config: PostRequestConfig | SafePostRequestConfig - ) { - return buildPostLikeRequest("POST")(config); - } - - function put(config: PostRequestConfig): Promise; - function put( - config: SafePostRequestConfig - ): Promise>; - function put(config: PostRequestConfig | SafePostRequestConfig) { - return buildPostLikeRequest("PUT")(config); - } - - function patch(config: PostRequestConfig): Promise; - function patch( - config: SafePostRequestConfig - ): Promise>; - function patch( - config: PostRequestConfig | SafePostRequestConfig - ) { - return buildPostLikeRequest("PATCH")(config); - } - - function del(config: GetRequestConfig): Promise; - function del(config: SafeGetRequestConfig): Promise>; - function del(config: GetRequestConfig | SafeGetRequestConfig) { - return buildGetLikeRequest("DELETE")(config); - } - - return { - get, - post, - put, - patch, - delete: del, - // - getConfig() { - return config; - } - }; -} diff --git a/src/error.ts b/src/error.ts deleted file mode 100644 index 9fd9d13..0000000 --- a/src/error.ts +++ /dev/null @@ -1,27 +0,0 @@ -export class RequestError extends Error { - public status: number; - public statusText: string; - public message: string; - public code?: ErrorCodeType; - - constructor({ - status, - statusText, - message, - stack, - code - }: { - status: number; - statusText: string; - message?: string; - stack?: string; - code?: ErrorCodeType; - }) { - super(); - this.status = status; - this.statusText = statusText; - this.message = message ?? statusText; - this.stack = stack; - this.code = code; - } -} diff --git a/src/index.ts b/src/index.ts index 9e78f5a..292c317 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,10 +1,27 @@ -export { createClient } from "./create-client"; -export type { RequestError } from "./error"; +// TypeFetcher API +export { TypeFetcher } from "./client"; export type { - ClientConfig, - TypesafeResponse, - GetRequestConfig, - SafeGetRequestConfig, - PostRequestConfig, - SafePostRequestConfig + HttpMethod, + EndpointDefinition, + EndpointMap, + EndpointSchema, + RequestOptions, + ResponseType, + TypeFetcherConfig, + ExtractPathParams, } from "./types"; +export { TypeFetcherError, ValidationError } from "./types"; + +// Standard Schema +export type { + StandardSchemaV1, + StandardSchemaResult, + StandardSchemaIssue, + InferInput, + InferOutput, +} from "./schema"; +export { validate, validateSync } from "./schema"; + +// アダプター +export { createStandardSchemaFromZod, z } from "./adapters/zod"; +export { createStandardSchemaFromValibot, v } from "./adapters/valibot"; diff --git a/src/schema.test.ts b/src/schema.test.ts new file mode 100644 index 0000000..0eca4d6 --- /dev/null +++ b/src/schema.test.ts @@ -0,0 +1,66 @@ +import { describe, expect, test } from "vitest"; +import { createStandardSchemaFromZod } from "./adapters/zod"; +import { validateSync } from "./schema"; + +describe("Standard Schema", () => { + test("should validate with custom schema", () => { + const schema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: (input: unknown) => { + if (typeof input === "string") { + return { value: input.toUpperCase() }; + } + return { + issues: [{ message: "Expected string" }], + }; + }, + }, + }; + + const validResult = validateSync(schema, "hello"); + expect(validResult.success).toBe(true); + expect(validResult.data).toBe("HELLO"); + + const invalidResult = validateSync(schema, 123); + expect(invalidResult.success).toBe(false); + expect(invalidResult.issues).toEqual([{ message: "Expected string" }]); + }); + + test("should work with Zod adapter", () => { + const mockZodSchema = { + parse: (input: unknown) => { + if (typeof input === "number" && input > 0) { + return input; + } + throw new Error("Must be positive number"); + }, + safeParse: (input: unknown) => { + try { + const data = mockZodSchema.parse(input); + return { success: true as const, data }; + } catch (error) { + return { + success: false as const, + error: { + issues: [{ message: "Must be positive number", path: [] }], + }, + }; + } + }, + _input: undefined as unknown, + _output: undefined as number, + }; + + const standardSchema = createStandardSchemaFromZod(mockZodSchema); + + const validResult = validateSync(standardSchema, 42); + expect(validResult.success).toBe(true); + expect(validResult.data).toBe(42); + + const invalidResult = validateSync(standardSchema, -1); + expect(invalidResult.success).toBe(false); + expect(invalidResult.issues?.[0]?.message).toBe("Must be positive number"); + }); +}); diff --git a/src/schema.ts b/src/schema.ts new file mode 100644 index 0000000..8c05ebc --- /dev/null +++ b/src/schema.ts @@ -0,0 +1,86 @@ +// 公式Standard Schemaの型を使用 +import type { StandardSchemaV1 } from "@standard-schema/spec"; +export type { StandardSchemaV1 } from "@standard-schema/spec"; +export type { + StandardSchemaV1 as StandardSchemaV1Props, + StandardSchemaV1 as StandardSchema, +} from "@standard-schema/spec"; + +// 公式の結果型をエクスポート +export type { StandardSchemaV1 as StandardSchemaTypes } from "@standard-schema/spec"; + +// 互換性のための結果型(簡素化したインターフェース) +export interface StandardSchemaResult { + readonly success: boolean; + readonly data?: Output; + readonly issues?: readonly StandardSchemaIssue[]; +} + +export interface StandardSchemaIssue { + readonly message: string; + readonly path?: readonly (string | number)[]; +} + +/** + * Standard Schema から Input型を抽出(公式実装を使用) + */ +export type InferInput = StandardSchemaV1.InferInput; + +/** + * Standard Schema から Output型を抽出(公式実装を使用) + */ +export type InferOutput = StandardSchemaV1.InferOutput; + +/** + * Standard Schema の検証関数を呼び出すヘルパー + */ +/** + * Standard Schemaの結果を簡素化した形に変換 + */ +function convertResult( + result: StandardSchemaV1.Result +): StandardSchemaResult { + if ("value" in result) { + // 成功ケース + return { + success: true, + data: result.value, + }; + } + // 失敗ケース + return { + success: false, + issues: + result.issues?.map((issue: StandardSchemaV1.Issue) => ({ + message: issue.message, + path: issue.path?.map((segment: any) => + typeof segment === "object" && "key" in segment ? segment.key : segment + ) as (string | number)[], + })) || [], + }; +} + +/** + * Standard Schema の検証関数を呼び出すヘルパー + */ +export async function validate( + schema: T, + input: unknown +): Promise>> { + const result = await schema["~standard"].validate(input); + return convertResult(result) as StandardSchemaResult>; +} + +/** + * 同期版の検証関数 + */ +export function validateSync( + schema: T, + input: unknown +): StandardSchemaResult> { + const result = schema["~standard"].validate(input); + if (result instanceof Promise) { + throw new Error("Schema validation returned a Promise. Use validate() instead."); + } + return convertResult(result) as StandardSchemaResult>; +} diff --git a/src/types.ts b/src/types.ts index 5dd4a13..551af44 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,33 +1,103 @@ -import type { RequestError } from "error"; - -export interface ClientConfig { - auth?: { - username: string; - password: string; - }; - baseURL?: string; - headers?: Record; - maxBodyLength?: number; - maxContentLength?: number; -} +import type { StandardSchemaV1, InferInput, InferOutput } from "./schema"; + +/** + * HTTPメソッド + */ +export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; -export type TypesafeResponse = Readonly<[RequestError, null] | [null, T]>; +/** + * パスパラメータを抽出する型 + * "/users/{id}" -> { id: string } + */ +export type ExtractPathParams = + T extends `${infer _Start}{${infer Param}}${infer Rest}` + ? { [K in Param]: string } & ExtractPathParams + : {}; + +/** + * エンドポイントのスキーマ定義 + */ +export interface EndpointSchema { + readonly pathParams?: StandardSchemaV1; + readonly query?: StandardSchemaV1; + readonly body?: StandardSchemaV1; + readonly response?: StandardSchemaV1; +} -interface SafeConfig { - safe: true; +/** + * エンドポイント定義 + */ +export interface EndpointDefinition< + Method extends HttpMethod = HttpMethod, + Path extends string = string, + Schema extends EndpointSchema = EndpointSchema, +> { + readonly method: Method; + readonly path: Path; + readonly schema?: Schema; } -export interface GetRequestConfig extends ClientConfig { - url: string; - query?: Record; +/** + * エンドポイントマップ + * "GET /users/{id}" -> EndpointDefinition + */ +export type EndpointMap = Record; + +/** + * リクエストオプション + */ +export interface RequestOptions { + readonly pathParams?: Schema["pathParams"] extends StandardSchemaV1 + ? InferInput + : Record; + readonly query?: Schema["query"] extends StandardSchemaV1 + ? InferInput + : Record; + readonly body?: Schema["body"] extends StandardSchemaV1 + ? InferInput + : unknown; + readonly headers?: Record; } -export interface SafeGetRequestConfig extends ClientConfig, SafeConfig, GetRequestConfig {} +/** + * レスポンス型 + */ +export type ResponseType = + Schema["response"] extends StandardSchemaV1 ? InferOutput : unknown; + +/** + * TypeFetcherの設定 + */ +export interface TypeFetcherConfig { + readonly baseURL?: string; + readonly headers?: Record; + readonly timeout?: number; +} -export interface PostRequestConfig extends ClientConfig { - url: string; - body: T; - query?: Record; +/** + * リクエストエラー + */ +export class TypeFetcherError extends Error { + constructor( + public readonly status: number, + public readonly statusText: string, + message?: string, + public readonly data?: unknown + ) { + super(message || `${status} ${statusText}`); + this.name = "TypeFetcherError"; + } } -export interface SafePostRequestConfig extends ClientConfig, SafeConfig, PostRequestConfig {} +/** + * バリデーションエラー + */ +export class ValidationError extends Error { + constructor( + public readonly issues: readonly { message: string; path?: readonly (string | number)[] }[], + message = "Validation failed" + ) { + super(message); + this.name = "ValidationError"; + } +} diff --git a/src/valibot.test.ts b/src/valibot.test.ts new file mode 100644 index 0000000..6784b5c --- /dev/null +++ b/src/valibot.test.ts @@ -0,0 +1,68 @@ +import { describe, expect, test } from "vitest"; +import { createStandardSchemaFromValibot } from "./adapters/valibot"; +import { validateSync } from "./schema"; + +describe("Valibot Adapter", () => { + test("should work with mock Valibot schema", () => { + // Valibotライクなモックスキーマ + const mockValibotSchema = { + safeParse: (input: unknown) => { + if (typeof input === "number" && input > 0) { + return { success: true as const, output: input }; + } + return { + success: false as const, + issues: [{ message: "Must be positive number", path: [] }], + }; + }, + _types: { + input: undefined as unknown, + output: undefined as number, + }, + }; + + const standardSchema = createStandardSchemaFromValibot(mockValibotSchema); + + const validResult = validateSync(standardSchema, 42); + expect(validResult.success).toBe(true); + expect(validResult.data).toBe(42); + + const invalidResult = validateSync(standardSchema, -1); + expect(invalidResult.success).toBe(false); + expect(invalidResult.issues?.[0]?.message).toBe("Must be positive number"); + }); + + test("should handle complex object validation", () => { + const mockUserSchema = { + safeParse: (input: any) => { + if ( + typeof input === "object" && + input !== null && + typeof input.name === "string" && + typeof input.age === "number" && + input.age >= 0 + ) { + return { success: true as const, output: input as { name: string; age: number } }; + } + return { + success: false as const, + issues: [{ message: "Invalid user object", path: [] }], + }; + }, + _types: { + input: undefined as unknown, + output: undefined as { name: string; age: number }, + }, + }; + + const standardSchema = createStandardSchemaFromValibot(mockUserSchema); + + const validResult = validateSync(standardSchema, { name: "John", age: 30 }); + expect(validResult.success).toBe(true); + expect(validResult.data).toEqual({ name: "John", age: 30 }); + + const invalidResult = validateSync(standardSchema, { name: 123 }); + expect(invalidResult.success).toBe(false); + expect(invalidResult.issues?.[0]?.message).toBe("Invalid user object"); + }); +}); diff --git a/tsconfig.json b/tsconfig.json index a1c0b52..e5eddac 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,19 +1,16 @@ { - "compilerOptions": { - "baseUrl": "src", - "rootDir": "src", - "declaration": true, - "target": "ES2020", - "outDir": "./dist", - "module": "CommonJS", - "moduleResolution": "node", - "lib": ["ESNext", "DOM"], - "types": ["jest", "node"], - "strict": true, - "noUnusedLocals": true, - "esModuleInterop": true - }, - "include": ["src/**/*.ts"], - "exclude": ["__tests__", "**/*.test.ts"], - "references": [] + "compilerOptions": { + "target": "ES2022", + "module": "ESNext", + "moduleResolution": "bundler", + "allowImportingTsExtensions": true, + "allowSyntheticDefaultImports": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "skipLibCheck": true, + "noEmit": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist", "**/*.test.ts"] } diff --git a/tsup.config.ts b/tsup.config.ts new file mode 100644 index 0000000..b6d9efd --- /dev/null +++ b/tsup.config.ts @@ -0,0 +1,14 @@ +import { defineConfig } from "tsup"; + +export default defineConfig([ + // Main library (ESM/CJS) + { + entry: ["src/index.ts"], + format: ["esm", "cjs"], + dts: true, + clean: true, + target: "es2020", + platform: "neutral", + external: ["axios", "node-fetch"], + }, +]); diff --git a/vitest.config.ts b/vitest.config.ts new file mode 100644 index 0000000..0eeffb6 --- /dev/null +++ b/vitest.config.ts @@ -0,0 +1,15 @@ +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + environment: "node", + globals: true, + include: ["src/**/*.test.ts"], + coverage: { + provider: "v8", + reporter: ["text", "json", "html"], + include: ["src/**/*.ts"], + exclude: ["node_modules/", "dist/", "**/*.d.ts", "**/*.config.*", "**/coverage/**"], + }, + }, +}); diff --git a/yarn.lock b/yarn.lock deleted file mode 100644 index d20566d..0000000 --- a/yarn.lock +++ /dev/null @@ -1,3870 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ampproject/remapping@^2.1.0": - version "2.1.2" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.1.2.tgz#4edca94973ded9630d20101cd8559cedb8d8bd34" - integrity sha512-hoyByceqwKirw7w3Z7gnIIZC3Wx3J484Y3L/cMpXFbr7d9ZQj2mODrirNzcJa+SM3UlpWXYvKV4RlRpFXlWgXg== - dependencies: - "@jridgewell/trace-mapping" "^0.3.0" - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.16.7.tgz#44416b6bd7624b998f5b1af5d470856c40138789" - integrity sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg== - dependencies: - "@babel/highlight" "^7.16.7" - -"@babel/compat-data@^7.16.4": - version "7.17.0" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.17.0.tgz#86850b8597ea6962089770952075dcaabb8dba34" - integrity sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng== - -"@babel/core@^7.1.0", "@babel/core@^7.12.3", "@babel/core@^7.7.2", "@babel/core@^7.8.0": - version "7.17.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.17.5.tgz#6cd2e836058c28f06a4ca8ee7ed955bbf37c8225" - integrity sha512-/BBMw4EvjmyquN5O+t5eh0+YqB3XXJkYD2cjKpYtWOfFy4lQ4UozNSmxAcWT8r2XtZs0ewG+zrfsqeR15i1ajA== - dependencies: - "@ampproject/remapping" "^2.1.0" - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.3" - "@babel/helper-compilation-targets" "^7.16.7" - "@babel/helper-module-transforms" "^7.16.7" - "@babel/helpers" "^7.17.2" - "@babel/parser" "^7.17.3" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" - convert-source-map "^1.7.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.1.2" - semver "^6.3.0" - -"@babel/generator@^7.17.3", "@babel/generator@^7.7.2": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.17.3.tgz#a2c30b0c4f89858cb87050c3ffdfd36bdf443200" - integrity sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg== - dependencies: - "@babel/types" "^7.17.0" - jsesc "^2.5.1" - source-map "^0.5.0" - -"@babel/helper-compilation-targets@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz#06e66c5f299601e6c7da350049315e83209d551b" - integrity sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA== - dependencies: - "@babel/compat-data" "^7.16.4" - "@babel/helper-validator-option" "^7.16.7" - browserslist "^4.17.5" - semver "^6.3.0" - -"@babel/helper-environment-visitor@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz#ff484094a839bde9d89cd63cba017d7aae80ecd7" - integrity sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-function-name@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz#f1ec51551fb1c8956bc8dd95f38523b6cf375f8f" - integrity sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA== - dependencies: - "@babel/helper-get-function-arity" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/helper-get-function-arity@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz#ea08ac753117a669f1508ba06ebcc49156387419" - integrity sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-hoist-variables@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz#86bcb19a77a509c7b77d0e22323ef588fa58c246" - integrity sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-module-imports@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz#25612a8091a999704461c8a222d0efec5d091437" - integrity sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-module-transforms@^7.16.7": - version "7.17.6" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.17.6.tgz#3c3b03cc6617e33d68ef5a27a67419ac5199ccd0" - integrity sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA== - dependencies: - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-module-imports" "^7.16.7" - "@babel/helper-simple-access" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/helper-validator-identifier" "^7.16.7" - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.3" - "@babel/types" "^7.17.0" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.8.0": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz#aa3a8ab4c3cceff8e65eb9e73d87dc4ff320b2f5" - integrity sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA== - -"@babel/helper-simple-access@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz#d656654b9ea08dbb9659b69d61063ccd343ff0f7" - integrity sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-split-export-declaration@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz#0b648c0c42da9d3920d85ad585f2778620b8726b" - integrity sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw== - dependencies: - "@babel/types" "^7.16.7" - -"@babel/helper-validator-identifier@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz#e8c602438c4a8195751243da9031d1607d247cad" - integrity sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw== - -"@babel/helper-validator-option@^7.16.7": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz#b203ce62ce5fe153899b617c08957de860de4d23" - integrity sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ== - -"@babel/helpers@^7.17.2": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.17.2.tgz#23f0a0746c8e287773ccd27c14be428891f63417" - integrity sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ== - dependencies: - "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.0" - "@babel/types" "^7.17.0" - -"@babel/highlight@^7.16.7": - version "7.16.10" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.16.10.tgz#744f2eb81579d6eea753c227b0f570ad785aba88" - integrity sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" - chalk "^2.0.0" - js-tokens "^4.0.0" - -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.16.7", "@babel/parser@^7.17.3": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.17.3.tgz#b07702b982990bf6fdc1da5049a23fece4c5c3d0" - integrity sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA== - -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-bigint@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz#4c9a6f669f5d0cdf1b90a1671e9a146be5300cea" - integrity sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.8.3": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== - dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - -"@babel/plugin-syntax-import-meta@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.8.3": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-top-level-await@^7.8.3": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-typescript@^7.7.2": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz#39c9b55ee153151990fb038651d58d3fd03f98f8" - integrity sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A== - dependencies: - "@babel/helper-plugin-utils" "^7.16.7" - -"@babel/runtime-corejs3@^7.10.2": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.17.2.tgz#fdca2cd05fba63388babe85d349b6801b008fd13" - integrity sha512-NcKtr2epxfIrNM4VOmPKO46TvDMCBhgi2CrSHaEarrz+Plk2K5r9QemmOFTGpZaoKnWoGH5MO+CzeRsih/Fcgg== - dependencies: - core-js-pure "^3.20.2" - regenerator-runtime "^0.13.4" - -"@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3": - version "7.17.2" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.17.2.tgz#66f68591605e59da47523c631416b18508779941" - integrity sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw== - dependencies: - regenerator-runtime "^0.13.4" - -"@babel/template@^7.16.7", "@babel/template@^7.3.3": - version "7.16.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.16.7.tgz#8d126c8701fde4d66b264b3eba3d96f07666d155" - integrity sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w== - dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/parser" "^7.16.7" - "@babel/types" "^7.16.7" - -"@babel/traverse@^7.17.0", "@babel/traverse@^7.17.3", "@babel/traverse@^7.7.2": - version "7.17.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.17.3.tgz#0ae0f15b27d9a92ba1f2263358ea7c4e7db47b57" - integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw== - dependencies: - "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.3" - "@babel/helper-environment-visitor" "^7.16.7" - "@babel/helper-function-name" "^7.16.7" - "@babel/helper-hoist-variables" "^7.16.7" - "@babel/helper-split-export-declaration" "^7.16.7" - "@babel/parser" "^7.17.3" - "@babel/types" "^7.17.0" - debug "^4.1.0" - globals "^11.1.0" - -"@babel/types@^7.0.0", "@babel/types@^7.16.7", "@babel/types@^7.17.0", "@babel/types@^7.3.0", "@babel/types@^7.3.3": - version "7.17.0" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.17.0.tgz#a826e368bccb6b3d84acd76acad5c0d87342390b" - integrity sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw== - dependencies: - "@babel/helper-validator-identifier" "^7.16.7" - to-fast-properties "^2.0.0" - -"@bcoe/v8-coverage@^0.2.3": - version "0.2.3" - resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" - integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== - -"@cspotcode/source-map-consumer@0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz#33bf4b7b39c178821606f669bbc447a6a629786b" - integrity sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg== - -"@cspotcode/source-map-support@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz#4789840aa859e46d2f3173727ab707c66bf344f5" - integrity sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA== - dependencies: - "@cspotcode/source-map-consumer" "0.8.0" - -"@eslint/eslintrc@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-1.2.0.tgz#7ce1547a5c46dfe56e1e45c3c9ed18038c721c6a" - integrity sha512-igm9SjJHNEJRiUnecP/1R5T3wKLEJ7pL6e2P+GUSfCd0dGjPYYZve08uzw8L2J8foVHFz+NGu12JxRcU2gGo6w== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.3.1" - globals "^13.9.0" - ignore "^4.0.6" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.0.4" - strip-json-comments "^3.1.1" - -"@humanwhocodes/config-array@^0.9.2": - version "0.9.5" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.9.5.tgz#2cbaf9a89460da24b5ca6531b8bbfc23e1df50c7" - integrity sha512-ObyMyWxZiCu/yTisA7uzx81s40xR2fD5Cg/2Kq7G02ajkNubJf6BopgDTmDyc3U7sXpNKM8cYOw7s7Tyr+DnCw== - dependencies: - "@humanwhocodes/object-schema" "^1.2.1" - debug "^4.1.1" - minimatch "^3.0.4" - -"@humanwhocodes/object-schema@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz#b520529ec21d8e5945a1851dfd1c32e94e39ff45" - integrity sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA== - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/console@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/console/-/console-27.5.1.tgz#260fe7239602fe5130a94f1aa386eff54b014bba" - integrity sha512-kZ/tNpS3NXn0mlXXXPNuDZnb4c0oZ20r4K5eemM2k30ZC3G0T02nXUvyhf5YdbXWHPEJLc9qGLxEZ216MdL+Zg== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - -"@jest/core@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/core/-/core-27.5.1.tgz#267ac5f704e09dc52de2922cbf3af9edcd64b626" - integrity sha512-AK6/UTrvQD0Cd24NSqmIA6rKsu0tKIxfiCducZvqxYdmMisOYAsdItspT+fQDQYARPf8XgjAFZi0ogW2agH5nQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/reporters" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - emittery "^0.8.1" - exit "^0.1.2" - graceful-fs "^4.2.9" - jest-changed-files "^27.5.1" - jest-config "^27.5.1" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-resolve-dependencies "^27.5.1" - jest-runner "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - jest-watcher "^27.5.1" - micromatch "^4.0.4" - rimraf "^3.0.0" - slash "^3.0.0" - strip-ansi "^6.0.0" - -"@jest/environment@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/environment/-/environment-27.5.1.tgz#d7425820511fe7158abbecc010140c3fd3be9c74" - integrity sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA== - dependencies: - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - -"@jest/fake-timers@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/fake-timers/-/fake-timers-27.5.1.tgz#76979745ce0579c8a94a4678af7a748eda8ada74" - integrity sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ== - dependencies: - "@jest/types" "^27.5.1" - "@sinonjs/fake-timers" "^8.0.1" - "@types/node" "*" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -"@jest/globals@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/globals/-/globals-27.5.1.tgz#7ac06ce57ab966566c7963431cef458434601b2b" - integrity sha512-ZEJNB41OBQQgGzgyInAv0UUfDDj3upmHydjieSxFvTRuZElrx7tXg/uVQ5hYVEwiXs3+aMsAeEc9X7xiSKCm4Q== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/types" "^27.5.1" - expect "^27.5.1" - -"@jest/reporters@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/reporters/-/reporters-27.5.1.tgz#ceda7be96170b03c923c37987b64015812ffec04" - integrity sha512-cPXh9hWIlVJMQkVk84aIvXuBB4uQQmFqZiacloFuGiP3ah1sbCxCosidXFDfqG8+6fO1oR2dTJTlsOy4VFmUfw== - dependencies: - "@bcoe/v8-coverage" "^0.2.3" - "@jest/console" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - collect-v8-coverage "^1.0.0" - exit "^0.1.2" - glob "^7.1.2" - graceful-fs "^4.2.9" - istanbul-lib-coverage "^3.0.0" - istanbul-lib-instrument "^5.1.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.0" - istanbul-reports "^3.1.3" - jest-haste-map "^27.5.1" - jest-resolve "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - slash "^3.0.0" - source-map "^0.6.0" - string-length "^4.0.1" - terminal-link "^2.0.0" - v8-to-istanbul "^8.1.0" - -"@jest/source-map@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/source-map/-/source-map-27.5.1.tgz#6608391e465add4205eae073b55e7f279e04e8cf" - integrity sha512-y9NIHUYF3PJRlHk98NdC/N1gl88BL08aQQgu4k4ZopQkCw9t9cV8mtl3TV8b/YCB8XaVTFrmUTAJvjsntDireg== - dependencies: - callsites "^3.0.0" - graceful-fs "^4.2.9" - source-map "^0.6.0" - -"@jest/test-result@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-result/-/test-result-27.5.1.tgz#56a6585fa80f7cdab72b8c5fc2e871d03832f5bb" - integrity sha512-EW35l2RYFUcUQxFJz5Cv5MTOxlJIQs4I7gxzi2zVU7PJhOwfYq1MdC5nhSmYjX1gmMmLPvB3sIaC+BkcHRBfag== - dependencies: - "@jest/console" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/istanbul-lib-coverage" "^2.0.0" - collect-v8-coverage "^1.0.0" - -"@jest/test-sequencer@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/test-sequencer/-/test-sequencer-27.5.1.tgz#4057e0e9cea4439e544c6353c6affe58d095745b" - integrity sha512-LCheJF7WB2+9JuCS7VB/EmGIdQuhtqjRNI9A43idHv3E4KltCTsPsLxvdaubFHSYwY/fNjMWjl6vNRhDiN7vpQ== - dependencies: - "@jest/test-result" "^27.5.1" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-runtime "^27.5.1" - -"@jest/transform@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/transform/-/transform-27.5.1.tgz#6c3501dcc00c4c08915f292a600ece5ecfe1f409" - integrity sha512-ipON6WtYgl/1329g5AIJVbUuEh0wZVbdpGwC99Jw4LwuoBNS95MVphU6zOeD9pDkon+LLbFL7lOQRapbB8SCHw== - dependencies: - "@babel/core" "^7.1.0" - "@jest/types" "^27.5.1" - babel-plugin-istanbul "^6.1.1" - chalk "^4.0.0" - convert-source-map "^1.4.0" - fast-json-stable-stringify "^2.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-regex-util "^27.5.1" - jest-util "^27.5.1" - micromatch "^4.0.4" - pirates "^4.0.4" - slash "^3.0.0" - source-map "^0.6.1" - write-file-atomic "^3.0.0" - -"@jest/types@^27.5.1": - version "27.5.1" - resolved "https://registry.yarnpkg.com/@jest/types/-/types-27.5.1.tgz#3c79ec4a8ba61c170bf937bcf9e98a9df175ec80" - integrity sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.0" - "@types/istanbul-reports" "^3.0.0" - "@types/node" "*" - "@types/yargs" "^16.0.0" - chalk "^4.0.0" - -"@jridgewell/resolve-uri@^3.0.3": - version "3.0.5" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.5.tgz#68eb521368db76d040a6315cdb24bf2483037b9c" - integrity sha512-VPeQ7+wH0itvQxnG+lIzWgkysKIr3L9sslimFW55rHMdGu/qCQ5z5h9zq4gI8uBtqkpHhsF4Z/OwExufUCThew== - -"@jridgewell/sourcemap-codec@^1.4.10": - version "1.4.11" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz#771a1d8d744eeb71b6adb35808e1a6c7b9b8c8ec" - integrity sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg== - -"@jridgewell/trace-mapping@^0.3.0": - version "0.3.4" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz#f6a0832dffd5b8a6aaa633b7d9f8e8e94c83a0c3" - integrity sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.walk@^1.2.3": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@sinonjs/commons@^1.7.0": - version "1.8.3" - resolved "https://registry.yarnpkg.com/@sinonjs/commons/-/commons-1.8.3.tgz#3802ddd21a50a949b6721ddd72da36e67e7f1b2d" - integrity sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ== - dependencies: - type-detect "4.0.8" - -"@sinonjs/fake-timers@^8.0.1": - version "8.1.0" - resolved "https://registry.yarnpkg.com/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz#3fdc2b6cb58935b21bfb8d1625eb1300484316e7" - integrity sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg== - dependencies: - "@sinonjs/commons" "^1.7.0" - -"@tknf/eslint-config-typescript@^1.0.5": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@tknf/eslint-config-typescript/-/eslint-config-typescript-1.0.5.tgz#f99762bd5c95615cc443c31062f9126f45a343c9" - integrity sha512-ErzONsEQKqdAdLbKQqtD/V7zBr3mjEie8JPNq6x5StP6FlIBj3g8JSn3bbgRBGllYkvHxEa8mdWKigexnsi/ow== - dependencies: - "@typescript-eslint/eslint-plugin" "^5.12.1" - "@typescript-eslint/parser" "^5.12.1" - eslint "^8.10.0" - eslint-config-prettier "^8.4.0" - eslint-plugin-import "^2.25.4" - eslint-plugin-jest "^26.1.1" - eslint-plugin-jsx-a11y "^6.5.1" - eslint-plugin-react "^7.29.2" - eslint-plugin-react-hooks "^4.3.0" - -"@tknf/prettier-config@^1.0.5": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@tknf/prettier-config/-/prettier-config-1.0.5.tgz#b00af5c9082a62d9bdc4740fdefecc70b2b37923" - integrity sha512-tImhd2XVirdwSev5b6l1x2tosRif18aChF8nXxNTtEwmrbsix4WtWReNKGPOZqDau3MZ+QorRXuEM0X7ggUTRg== - -"@tootallnate/once@1": - version "1.1.2" - resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.1.2.tgz#ccb91445360179a04e7fe6aff78c00ffc1eeaf82" - integrity sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw== - -"@tsconfig/node10@^1.0.7": - version "1.0.8" - resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.8.tgz#c1e4e80d6f964fbecb3359c43bd48b40f7cadad9" - integrity sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg== - -"@tsconfig/node12@^1.0.7": - version "1.0.9" - resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.9.tgz#62c1f6dee2ebd9aead80dc3afa56810e58e1a04c" - integrity sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw== - -"@tsconfig/node14@^1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.1.tgz#95f2d167ffb9b8d2068b0b235302fafd4df711f2" - integrity sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg== - -"@tsconfig/node16@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.2.tgz#423c77877d0569db20e1fc80885ac4118314010e" - integrity sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA== - -"@types/babel__core@^7.0.0", "@types/babel__core@^7.1.14": - version "7.1.18" - resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.18.tgz#1a29abcc411a9c05e2094c98f9a1b7da6cdf49f8" - integrity sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - "@types/babel__generator" "*" - "@types/babel__template" "*" - "@types/babel__traverse" "*" - -"@types/babel__generator@*": - version "7.6.4" - resolved "https://registry.yarnpkg.com/@types/babel__generator/-/babel__generator-7.6.4.tgz#1f20ce4c5b1990b37900b63f050182d28c2439b7" - integrity sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg== - dependencies: - "@babel/types" "^7.0.0" - -"@types/babel__template@*": - version "7.4.1" - resolved "https://registry.yarnpkg.com/@types/babel__template/-/babel__template-7.4.1.tgz#3d1a48fd9d6c0edfd56f2ff578daed48f36c8969" - integrity sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g== - dependencies: - "@babel/parser" "^7.1.0" - "@babel/types" "^7.0.0" - -"@types/babel__traverse@*", "@types/babel__traverse@^7.0.4", "@types/babel__traverse@^7.0.6": - version "7.14.2" - resolved "https://registry.yarnpkg.com/@types/babel__traverse/-/babel__traverse-7.14.2.tgz#ffcd470bbb3f8bf30481678fb5502278ca833a43" - integrity sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA== - dependencies: - "@babel/types" "^7.3.0" - -"@types/graceful-fs@^4.1.2": - version "4.1.5" - resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15" - integrity sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw== - dependencies: - "@types/node" "*" - -"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0", "@types/istanbul-lib-coverage@^2.0.1": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz#8467d4b3c087805d63580480890791277ce35c44" - integrity sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g== - -"@types/istanbul-lib-report@*": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#c14c24f18ea8190c118ee7562b7ff99a36552686" - integrity sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg== - dependencies: - "@types/istanbul-lib-coverage" "*" - -"@types/istanbul-reports@^3.0.0": - version "3.0.1" - resolved "https://registry.yarnpkg.com/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz#9153fe98bba2bd565a63add9436d6f0d7f8468ff" - integrity sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw== - dependencies: - "@types/istanbul-lib-report" "*" - -"@types/jest@^27.4.1": - version "27.4.1" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-27.4.1.tgz#185cbe2926eaaf9662d340cc02e548ce9e11ab6d" - integrity sha512-23iPJADSmicDVrWk+HT58LMJtzLAnB2AgIzplQuq/bSrGaxCrlvRFjGbXmamnnk/mAmCdLStiGqggu28ocUyiw== - dependencies: - jest-matcher-utils "^27.0.0" - pretty-format "^27.0.0" - -"@types/json-schema@^7.0.9": - version "7.0.9" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.9.tgz#97edc9037ea0c38585320b28964dde3b39e4660d" - integrity sha512-qcUXuemtEu+E5wZSJHNxUXeCZhAfXKQ41D+duX+VYPde7xyEVZci+/oXKJL13tnRs9lR2pr4fod59GT6/X1/yQ== - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= - -"@types/node@*": - version "17.0.21" - resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.21.tgz#864b987c0c68d07b4345845c3e63b75edd143644" - integrity sha512-DBZCJbhII3r90XbQxI8Y9IjjiiOGlZ0Hr32omXIZvwwZ7p4DMMXGrKXVyPfuoBOri9XNtL0UK69jYIBIsRX3QQ== - -"@types/prettier@^2.1.5": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.4.tgz#5d9b63132df54d8909fce1c3f8ca260fdd693e17" - integrity sha512-ReVR2rLTV1kvtlWFyuot+d1pkpG2Fw/XKE3PDAdj57rbM97ttSp9JZ2UsP+2EHTylra9cUf6JA7tGwW1INzUrA== - -"@types/stack-utils@^2.0.0": - version "2.0.1" - resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.1.tgz#20f18294f797f2209b5f65c8e3b5c8e8261d127c" - integrity sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw== - -"@types/yargs-parser@*": - version "20.2.1" - resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-20.2.1.tgz#3b9ce2489919d9e4fea439b76916abc34b2df129" - integrity sha512-7tFImggNeNBVMsn0vLrpn1H1uPrUBdnARPTpZoitY37ZrdJREzf7I16tMrlK3hen349gr1NYh8CmZQa7CTG6Aw== - -"@types/yargs@^16.0.0": - version "16.0.4" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-16.0.4.tgz#26aad98dd2c2a38e421086ea9ad42b9e51642977" - integrity sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw== - dependencies: - "@types/yargs-parser" "*" - -"@typescript-eslint/eslint-plugin@^5.12.1": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.13.0.tgz#2809052b85911ced9c54a60dac10e515e9114497" - integrity sha512-vLktb2Uec81fxm/cfz2Hd6QaWOs8qdmVAZXLdOBX6JFJDhf6oDZpMzZ4/LZ6SFM/5DgDcxIMIvy3F+O9yZBuiQ== - dependencies: - "@typescript-eslint/scope-manager" "5.13.0" - "@typescript-eslint/type-utils" "5.13.0" - "@typescript-eslint/utils" "5.13.0" - debug "^4.3.2" - functional-red-black-tree "^1.0.1" - ignore "^5.1.8" - regexpp "^3.2.0" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/parser@^5.12.1": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.13.0.tgz#0394ed8f2f849273c0bf4b811994d177112ced5c" - integrity sha512-GdrU4GvBE29tm2RqWOM0P5QfCtgCyN4hXICj/X9ibKED16136l9ZpoJvCL5pSKtmJzA+NRDzQ312wWMejCVVfg== - dependencies: - "@typescript-eslint/scope-manager" "5.13.0" - "@typescript-eslint/types" "5.13.0" - "@typescript-eslint/typescript-estree" "5.13.0" - debug "^4.3.2" - -"@typescript-eslint/scope-manager@5.13.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.13.0.tgz#cf6aff61ca497cb19f0397eea8444a58f46156b6" - integrity sha512-T4N8UvKYDSfVYdmJq7g2IPJYCRzwtp74KyDZytkR4OL3NRupvswvmJQJ4CX5tDSurW2cvCc1Ia1qM7d0jpa7IA== - dependencies: - "@typescript-eslint/types" "5.13.0" - "@typescript-eslint/visitor-keys" "5.13.0" - -"@typescript-eslint/type-utils@5.13.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.13.0.tgz#b0efd45c85b7bab1125c97b752cab3a86c7b615d" - integrity sha512-/nz7qFizaBM1SuqAKb7GLkcNn2buRdDgZraXlkhz+vUGiN1NZ9LzkA595tHHeduAiS2MsHqMNhE2zNzGdw43Yg== - dependencies: - "@typescript-eslint/utils" "5.13.0" - debug "^4.3.2" - tsutils "^3.21.0" - -"@typescript-eslint/types@5.13.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.13.0.tgz#da1de4ae905b1b9ff682cab0bed6b2e3be9c04e5" - integrity sha512-LmE/KO6DUy0nFY/OoQU0XelnmDt+V8lPQhh8MOVa7Y5k2gGRd6U9Kp3wAjhB4OHg57tUO0nOnwYQhRRyEAyOyg== - -"@typescript-eslint/typescript-estree@5.13.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.13.0.tgz#b37c07b748ff030a3e93d87c842714e020b78141" - integrity sha512-Q9cQow0DeLjnp5DuEDjLZ6JIkwGx3oYZe+BfcNuw/POhtpcxMTy18Icl6BJqTSd+3ftsrfuVb7mNHRZf7xiaNA== - dependencies: - "@typescript-eslint/types" "5.13.0" - "@typescript-eslint/visitor-keys" "5.13.0" - debug "^4.3.2" - globby "^11.0.4" - is-glob "^4.0.3" - semver "^7.3.5" - tsutils "^3.21.0" - -"@typescript-eslint/utils@5.13.0", "@typescript-eslint/utils@^5.10.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.13.0.tgz#2328feca700eb02837298339a2e49c46b41bd0af" - integrity sha512-+9oHlPWYNl6AwwoEt5TQryEHwiKRVjz7Vk6kaBeD3/kwHE5YqTGHtm/JZY8Bo9ITOeKutFaXnBlMgSATMJALUQ== - dependencies: - "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.13.0" - "@typescript-eslint/types" "5.13.0" - "@typescript-eslint/typescript-estree" "5.13.0" - eslint-scope "^5.1.1" - eslint-utils "^3.0.0" - -"@typescript-eslint/visitor-keys@5.13.0": - version "5.13.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.13.0.tgz#f45ff55bcce16403b221ac9240fbeeae4764f0fd" - integrity sha512-HLKEAS/qA1V7d9EzcpLFykTePmOQqOFim8oCvhY3pZgQ8Hi38hYpHd9e5GN6nQBFQNecNhws5wkS9Y5XIO0s/g== - dependencies: - "@typescript-eslint/types" "5.13.0" - eslint-visitor-keys "^3.0.0" - -abab@^2.0.3, abab@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" - integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== - -acorn-globals@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-6.0.0.tgz#46cdd39f0f8ff08a876619b55f5ac8a6dc770b45" - integrity sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg== - dependencies: - acorn "^7.1.1" - acorn-walk "^7.1.1" - -acorn-jsx@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^7.1.1: - version "7.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-7.2.0.tgz#0de889a601203909b0fbe07b8938dc21d2e967bc" - integrity sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA== - -acorn-walk@^8.1.1: - version "8.2.0" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.2.0.tgz#741210f2e2426454508853a2f44d0ab83b7f69c1" - integrity sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA== - -acorn@^7.1.1: - version "7.4.1" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" - integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== - -acorn@^8.2.4, acorn@^8.4.1, acorn@^8.7.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf" - integrity sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ== - -agent-base@6: - version "6.0.2" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-6.0.2.tgz#49fff58577cfee3f37176feab4c22e00f86d7f77" - integrity sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ== - dependencies: - debug "4" - -ajv@^6.10.0, ajv@^6.12.4: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ansi-escapes@^4.2.1: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" - integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== - -anymatch@^3.0.3: - version "3.1.2" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" - integrity sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -aria-query@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" - integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== - dependencies: - "@babel/runtime" "^7.10.2" - "@babel/runtime-corejs3" "^7.10.2" - -array-includes@^3.1.3, array-includes@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.4.tgz#f5b493162c760f3539631f005ba2bb46acb45ba9" - integrity sha512-ZTNSQkmWumEbiHO2GF4GmWxYVTiQyJy2XOTa15sdQSrvKn7l+180egQMqlrMOUMCyLMD7pmyQe4mMDUT6Behrw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - is-string "^1.0.7" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array.prototype.flat@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.2.5.tgz#07e0975d84bbc7c48cd1879d609e682598d33e13" - integrity sha512-KaYU+S+ndVqyUnignHftkwc58o3uVU1jzczILJ1tN2YaIZpFIKBiP/x/j97E5MVPsaCloPbqWLB/8qCTVvT2qg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.0" - -array.prototype.flatmap@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.2.5.tgz#908dc82d8a406930fdf38598d51e7411d18d4446" - integrity sha512-08u6rVyi1Lj7oqWbS9nUxliETrtIROT4XGTA4D/LWGten6E3ocm7cy9SIrmNHOL5XVbVuckUp3X6Xyg8/zpvHA== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - es-abstract "^1.19.0" - -ast-types-flow@^0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" - integrity sha1-9wtzXGvKGlycItmCw+Oef+ujva0= - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha1-x57Zf380y48robyXkLzDZkdLS3k= - -axe-core@^4.3.5: - version "4.4.1" - resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.4.1.tgz#7dbdc25989298f9ad006645cd396782443757413" - integrity sha512-gd1kmb21kwNuWr6BQz8fv6GNECPBnUasepcoLbekws23NVBLODdsClRZ+bQ8+9Uomf3Sm3+Vwn0oYG9NvwnJCw== - -axios@^0.26.0: - version "0.26.0" - resolved "https://registry.yarnpkg.com/axios/-/axios-0.26.0.tgz#9a318f1c69ec108f8cd5f3c3d390366635e13928" - integrity sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og== - dependencies: - follow-redirects "^1.14.8" - -axobject-query@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" - integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== - -babel-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-27.5.1.tgz#a1bf8d61928edfefd21da27eb86a695bfd691444" - integrity sha512-cdQ5dXjGRd0IBRATiQ4mZGlGlRE8kJpjPOixdNRdT+m3UcNqmYWN6rK6nvtXYfY3D76cb8s/O1Ss8ea24PIwcg== - dependencies: - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__core" "^7.1.14" - babel-plugin-istanbul "^6.1.1" - babel-preset-jest "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - slash "^3.0.0" - -babel-plugin-istanbul@^6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-jest-hoist@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.5.1.tgz#9be98ecf28c331eb9f5df9c72d6f89deb8181c2e" - integrity sha512-50wCwD5EMNW4aRpOwtqzyZHIewTYNxLA4nhB+09d8BIssfNfzBRhkBIHiaPv1Si226TQSvp8gxAJm2iY2qs2hQ== - dependencies: - "@babel/template" "^7.3.3" - "@babel/types" "^7.3.3" - "@types/babel__core" "^7.0.0" - "@types/babel__traverse" "^7.0.6" - -babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== - dependencies: - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" - -babel-preset-jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-27.5.1.tgz#91f10f58034cb7989cb4f962b69fa6eef6a6bc81" - integrity sha512-Nptf2FzlPCWYuJg41HBqXVT8ym6bXOevuCTbhxlUpjwtysGaIWFvDEjp4y+G7fl13FgOdjs7P/DmErqH7da0Ag== - dependencies: - babel-plugin-jest-hoist "^27.5.1" - babel-preset-current-node-syntax "^1.0.0" - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -braces@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browser-process-hrtime@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz#3c9b4b7d782c8121e56f10106d84c0d0ffc94626" - integrity sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow== - -browserslist@^4.17.5: - version "4.19.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.19.3.tgz#29b7caad327ecf2859485f696f9604214bedd383" - integrity sha512-XK3X4xtKJ+Txj8G5c30B4gsm71s69lqXlkYui4s6EkKxuv49qjYlY6oVd+IFJ73d4YymtM3+djvvt/R/iJwwDg== - dependencies: - caniuse-lite "^1.0.30001312" - electron-to-chromium "^1.4.71" - escalade "^3.1.1" - node-releases "^2.0.2" - picocolors "^1.0.0" - -bs-logger@0.x: - version "0.2.6" - resolved "https://registry.yarnpkg.com/bs-logger/-/bs-logger-0.2.6.tgz#eb7d365307a72cf974cc6cda76b68354ad336bd8" - integrity sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog== - dependencies: - fast-json-stable-stringify "2.x" - -bser@2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/bser/-/bser-2.1.1.tgz#e6787da20ece9d07998533cfd9de6f5c38f4bc05" - integrity sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ== - dependencies: - node-int64 "^0.4.0" - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -call-bind@^1.0.0, call-bind@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.2.tgz#b1d4e89e688119c3c9a903ad30abb2f6a919be3c" - integrity sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA== - dependencies: - function-bind "^1.1.1" - get-intrinsic "^1.0.2" - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -camelcase@^6.2.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" - integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== - -caniuse-lite@^1.0.30001312: - version "1.0.30001312" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz#e11eba4b87e24d22697dae05455d5aea28550d5f" - integrity sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ== - -chalk@^2.0.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -char-regex@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/char-regex/-/char-regex-1.0.2.tgz#d744358226217f981ed58f479b1d6bcc29545dcf" - integrity sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw== - -ci-info@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.3.0.tgz#b4ed1fb6818dea4803a55c623041f9165d2066b2" - integrity sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw== - -cjs-module-lexer@^1.0.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz#9f84ba3244a512f3a54e5277e8eef4c489864e40" - integrity sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA== - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -co@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" - integrity sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ= - -collect-v8-coverage@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz#cc2c8e94fc18bbdffe64d6534570c8a673b27f59" - integrity sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg== - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha1-p9BVi9icQveV3UIyj3QIMcpTvCU= - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -combined-stream@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= - -convert-source-map@^1.4.0, convert-source-map@^1.6.0, convert-source-map@^1.7.0: - version "1.8.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.8.0.tgz#f3373c32d21b4d780dd8004514684fb791ca4369" - integrity sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA== - dependencies: - safe-buffer "~5.1.1" - -core-js-pure@^3.20.2: - version "3.21.1" - resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.21.1.tgz#8c4d1e78839f5f46208de7230cebfb72bc3bdb51" - integrity sha512-12VZfFIu+wyVbBebyHmRTuEE/tZrB4tJToWcwAMcsp3h4+sHR+fMJWbKpYiCRWlhFBq+KNyO8rIV9rTkeVmznQ== - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -cssom@^0.4.4: - version "0.4.4" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.4.4.tgz#5a66cf93d2d0b661d80bf6a44fb65f5c2e4e0a10" - integrity sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw== - -cssom@~0.3.6: - version "0.3.8" - resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.8.tgz#9f1276f5b2b463f2114d3f2c75250af8c1a36f4a" - integrity sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg== - -cssstyle@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-2.3.0.tgz#ff665a0ddbdc31864b09647f34163443d90b0852" - integrity sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A== - dependencies: - cssom "~0.3.6" - -damerau-levenshtein@^1.0.7: - version "1.0.8" - resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" - integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== - -data-uri-to-buffer@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz#b5db46aea50f6176428ac05b73be39a57701a64b" - integrity sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA== - -data-urls@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-2.0.0.tgz#156485a72963a970f5d5821aaf642bef2bf2db9b" - integrity sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ== - dependencies: - abab "^2.0.3" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.0.0" - -debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.2: - version "4.3.3" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.3.tgz#04266e0b70a98d4462e6e288e38259213332b664" - integrity sha512-/zxw5+vh1Tfv+4Qn7a5nsbcJKPaSvCDhojn6FEl9vupwK2VCSDtEiEtqr8DFtzYFOdz63LBkxec7DYuc2jon6Q== - dependencies: - ms "2.1.2" - -debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@^3.2.7: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -decimal.js@^10.2.1: - version "10.3.1" - resolved "https://registry.yarnpkg.com/decimal.js/-/decimal.js-10.3.1.tgz#d8c3a444a9c6774ba60ca6ad7261c3a94fd5e783" - integrity sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ== - -dedent@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" - integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= - -deep-is@^0.1.3, deep-is@~0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -deepmerge@^4.2.2: - version "4.2.2" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" - integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== - -define-properties@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" - integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== - dependencies: - object-keys "^1.0.12" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha1-3zrhmayt+31ECqrgsp4icrJOxhk= - -detect-newline@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/detect-newline/-/detect-newline-3.1.0.tgz#576f5dfc63ae1a192ff192d8ad3af6308991b651" - integrity sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA== - -diff-sequences@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-27.5.1.tgz#eaecc0d327fd68c8d9672a1e64ab8dccb2ef5327" - integrity sha512-k1gCAXAsNgLwEL+Y8Wvl+M6oEFj5bgazfZULpS5CneoPPXRaCCW7dm+q21Ky2VEE5X+VeRDBVg1Pcvvsr4TtNQ== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -domexception@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/domexception/-/domexception-2.0.1.tgz#fb44aefba793e1574b0af6aed2801d057529f304" - integrity sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg== - dependencies: - webidl-conversions "^5.0.0" - -electron-to-chromium@^1.4.71: - version "1.4.75" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.75.tgz#d1ad9bb46f2f1bf432118c2be21d27ffeae82fdd" - integrity sha512-LxgUNeu3BVU7sXaKjUDD9xivocQLxFtq6wgERrutdY/yIOps3ODOZExK1jg8DTEg4U8TUCb5MLGeWFOYuxjF3Q== - -emittery@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.8.1.tgz#bb23cc86d03b30aa75a7f734819dee2e1ba70860" - integrity sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -emoji-regex@^9.2.2: - version "9.2.2" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" - integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -es-abstract@^1.19.0, es-abstract@^1.19.1: - version "1.19.1" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.19.1.tgz#d4885796876916959de78edaa0df456627115ec3" - integrity sha512-2vJ6tjA/UfqLm2MPs7jxVybLoB8i1t1Jd9R3kISld20sIxPcTbLuggQOUxeWeAvIUkduv/CfMjuh4WmiXr2v9w== - dependencies: - call-bind "^1.0.2" - es-to-primitive "^1.2.1" - function-bind "^1.1.1" - get-intrinsic "^1.1.1" - get-symbol-description "^1.0.0" - has "^1.0.3" - has-symbols "^1.0.2" - internal-slot "^1.0.3" - is-callable "^1.2.4" - is-negative-zero "^2.0.1" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.1" - is-string "^1.0.7" - is-weakref "^1.0.1" - object-inspect "^1.11.0" - object-keys "^1.1.1" - object.assign "^4.1.2" - string.prototype.trimend "^1.0.4" - string.prototype.trimstart "^1.0.4" - unbox-primitive "^1.0.1" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -escalade@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40" - integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw== - -escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -escape-string-regexp@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz#a30304e99daa32e23b2fd20f51babd07cffca344" - integrity sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -escodegen@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-2.0.0.tgz#5e32b12833e8aa8fa35e1bf0befa89380484c7dd" - integrity sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw== - dependencies: - esprima "^4.0.1" - estraverse "^5.2.0" - esutils "^2.0.2" - optionator "^0.8.1" - optionalDependencies: - source-map "~0.6.1" - -eslint-config-prettier@^8.4.0: - version "8.4.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.4.0.tgz#8e6d17c7436649e98c4c2189868562921ef563de" - integrity sha512-CFotdUcMY18nGRo5KGsnNxpznzhkopOcOo0InID+sgQssPrzjvsyKZPvOgymTFeHrFuC3Tzdf2YndhXtULK9Iw== - -eslint-import-resolver-node@^0.3.6: - version "0.3.6" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" - integrity sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw== - dependencies: - debug "^3.2.7" - resolve "^1.20.0" - -eslint-module-utils@^2.7.2: - version "2.7.3" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.7.3.tgz#ad7e3a10552fdd0642e1e55292781bd6e34876ee" - integrity sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ== - dependencies: - debug "^3.2.7" - find-up "^2.1.0" - -eslint-plugin-import@^2.25.4: - version "2.25.4" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.25.4.tgz#322f3f916a4e9e991ac7af32032c25ce313209f1" - integrity sha512-/KJBASVFxpu0xg1kIBn9AUa8hQVnszpwgE7Ld0lKAlx7Ie87yzEzCgSkekt+le/YVhiaosO4Y14GDAOc41nfxA== - dependencies: - array-includes "^3.1.4" - array.prototype.flat "^1.2.5" - debug "^2.6.9" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.6" - eslint-module-utils "^2.7.2" - has "^1.0.3" - is-core-module "^2.8.0" - is-glob "^4.0.3" - minimatch "^3.0.4" - object.values "^1.1.5" - resolve "^1.20.0" - tsconfig-paths "^3.12.0" - -eslint-plugin-jest@^26.1.1: - version "26.1.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-26.1.1.tgz#7176dd745ef8bca3070263f62cdf112f2dfc9aa1" - integrity sha512-HRKOuPi5ADhza4ZBK5ufyNXy28bXXkib87w+pQqdvBhSTsamndh6sIAKPAUl8y0/n9jSWBdTPslrwtKWqkp8dA== - dependencies: - "@typescript-eslint/utils" "^5.10.0" - -eslint-plugin-jsx-a11y@^6.5.1: - version "6.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.1.tgz#cdbf2df901040ca140b6ec14715c988889c2a6d8" - integrity sha512-sVCFKX9fllURnXT2JwLN5Qgo24Ug5NF6dxhkmxsMEUZhXRcGg+X3e1JbJ84YePQKBl5E0ZjAH5Q4rkdcGY99+g== - dependencies: - "@babel/runtime" "^7.16.3" - aria-query "^4.2.2" - array-includes "^3.1.4" - ast-types-flow "^0.0.7" - axe-core "^4.3.5" - axobject-query "^2.2.0" - damerau-levenshtein "^1.0.7" - emoji-regex "^9.2.2" - has "^1.0.3" - jsx-ast-utils "^3.2.1" - language-tags "^1.0.5" - minimatch "^3.0.4" - -eslint-plugin-react-hooks@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.3.0.tgz#318dbf312e06fab1c835a4abef00121751ac1172" - integrity sha512-XslZy0LnMn+84NEG9jSGR6eGqaZB3133L8xewQo3fQagbQuGt7a63gf+P1NGKZavEYEC3UXaWEAA/AqDkuN6xA== - -eslint-plugin-react@^7.29.2: - version "7.29.2" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.29.2.tgz#2d4da69d30d0a736efd30890dc6826f3e91f3f7c" - integrity sha512-ypEBTKOy5liFQXZWMchJ3LN0JX1uPI6n7MN7OPHKacqXAxq5gYC30TdO7wqGYQyxD1OrzpobdHC3hDmlRWDg9w== - dependencies: - array-includes "^3.1.4" - array.prototype.flatmap "^1.2.5" - doctrine "^2.1.0" - estraverse "^5.3.0" - jsx-ast-utils "^2.4.1 || ^3.0.0" - minimatch "^3.1.2" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.0" - object.values "^1.1.5" - prop-types "^15.8.1" - resolve "^2.0.0-next.3" - semver "^6.3.0" - string.prototype.matchall "^4.0.6" - -eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" - integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-utils@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-3.0.0.tgz#8aebaface7345bb33559db0a1f13a1d2d48c3672" - integrity sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA== - dependencies: - eslint-visitor-keys "^2.0.0" - -eslint-visitor-keys@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" - integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== - -eslint-visitor-keys@^3.0.0, eslint-visitor-keys@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" - integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== - -eslint@^8.10.0: - version "8.10.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.10.0.tgz#931be395eb60f900c01658b278e05b6dae47199d" - integrity sha512-tcI1D9lfVec+R4LE1mNDnzoJ/f71Kl/9Cv4nG47jOueCMBrCCKYXr4AUVS7go6mWYGFD4+EoN6+eXSrEbRzXVw== - dependencies: - "@eslint/eslintrc" "^1.2.0" - "@humanwhocodes/config-array" "^0.9.2" - ajv "^6.10.0" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.1.1" - eslint-utils "^3.0.0" - eslint-visitor-keys "^3.3.0" - espree "^9.3.1" - esquery "^1.4.0" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - functional-red-black-tree "^1.0.1" - glob-parent "^6.0.1" - globals "^13.6.0" - ignore "^5.2.0" - import-fresh "^3.0.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.0.4" - natural-compare "^1.4.0" - optionator "^0.9.1" - regexpp "^3.2.0" - strip-ansi "^6.0.1" - strip-json-comments "^3.1.0" - text-table "^0.2.0" - v8-compile-cache "^2.0.3" - -espree@^9.3.1: - version "9.3.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.1.tgz#8793b4bc27ea4c778c19908e0719e7b8f4115bcd" - integrity sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ== - dependencies: - acorn "^8.7.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^3.3.0" - -esprima@^4.0.0, esprima@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.4.0.tgz#2148ffc38b82e8c7057dfed48425b3e61f0f24a5" - integrity sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0, estraverse@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha1-BjJjj42HfMghB9MKD/8aF8uhzQw= - -expect@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/expect/-/expect-27.5.1.tgz#83ce59f1e5bdf5f9d2b94b61d2050db48f3fef74" - integrity sha512-E1q5hSUG2AmYQwQJ041nvgpkODHQvB+RKlB4IYdru6uJsyFTRyZAP463M+1lINorwbqAmUggi6+WwkD8lCS/Dw== - dependencies: - "@jest/types" "^27.5.1" - jest-get-type "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-glob@^3.2.9: - version "3.2.11" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9" - integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-json-stable-stringify@2.x, fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6, fast-levenshtein@~2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= - -fastq@^1.6.0: - version "1.13.0" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.13.0.tgz#616760f88a7526bdfc596b7cab8c18938c36b98c" - integrity sha512-YpkpUnK8od0o1hmeSc7UUs/eB/vIPWJYjKck2QKIzAf71Vm1AAQ3EbuZB3g2JIy+pg+ERD0vqI79KyZiB2e2Nw== - dependencies: - reusify "^1.0.4" - -fb-watchman@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.1.tgz#fc84fb39d2709cf3ff6d743706157bb5708a8a85" - integrity sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg== - dependencies: - bser "2.1.1" - -fetch-blob@^3.1.2, fetch-blob@^3.1.4: - version "3.1.4" - resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.1.4.tgz#e8c6567f80ad7fc22fd302e7dcb72bafde9c1717" - integrity sha512-Eq5Xv5+VlSrYWEqKrusxY1C3Hm/hjeAsCGVG3ft7pZahlUAChpGZT/Ms1WmSLnEAisEXszjzu/s+ce6HZB2VHA== - dependencies: - node-domexception "^1.0.0" - web-streams-polyfill "^3.0.3" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -find-up@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= - dependencies: - locate-path "^2.0.0" - -find-up@^4.0.0, find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -flat-cache@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.0.4.tgz#61b0338302b2fe9f957dcc32fc2a87f1c3048b11" - integrity sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg== - dependencies: - flatted "^3.1.0" - rimraf "^3.0.2" - -flatted@^3.1.0: - version "3.2.5" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.2.5.tgz#76c8584f4fc843db64702a6bd04ab7a8bd666da3" - integrity sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg== - -follow-redirects@^1.14.8: - version "1.14.9" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.14.9.tgz#dd4ea157de7bfaf9ea9b3fbd85aa16951f78d8d7" - integrity sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w== - -form-data@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f" - integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -formdata-polyfill@^4.0.10: - version "4.0.10" - resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" - integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== - dependencies: - fetch-blob "^3.1.2" - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= - -fsevents@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" - integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== - -function-bind@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" - integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== - -functional-red-black-tree@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" - integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.0.2, get-intrinsic@^1.1.0, get-intrinsic@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.1.1.tgz#15f59f376f855c446963948f0d24cd3637b4abc6" - integrity sha512-kWZrnVM42QCiEA2Ig1bG8zjoIMOgxWwYCEeNdwY6Tv/cOSeGpcoX4pXHfKUxNKVoArnrEr2e9srnAxxGIraS9Q== - dependencies: - function-bind "^1.1.1" - has "^1.0.3" - has-symbols "^1.0.1" - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-stream@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - -get-symbol-description@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.0.tgz#7fdb81c900101fbd564dd5f1a30af5aadc1e58d6" - integrity sha512-2EmdH1YvIQiZpltCNgkuiUnyukzxM/R6NDJX31Ke3BG1Nq5b0S2PhX59UKi9vZpPDQVdqn+1IcaAwnzTT5vCjw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.1.1" - -glob-parent@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: - version "7.2.0" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" - integrity sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.6.0, globals@^13.9.0: - version "13.12.1" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.12.1.tgz#ec206be932e6c77236677127577aa8e50bf1c5cb" - integrity sha512-317dFlgY2pdJZ9rspXDks7073GpDmXdfbM3vYYp0HAMKGDh1FfWPleI2ljVNLQX5M5lXcAslTcPTrOrMEFOjyw== - dependencies: - type-fest "^0.20.2" - -globby@^11.0.4: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -graceful-fs@^4.2.9: - version "4.2.9" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96" - integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ== - -has-bigints@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.1.tgz#64fe6acb020673e3b78db035a5af69aa9d07b113" - integrity sha512-LSBS2LjbNBTf6287JEbEzvJgftkF5qFkmCo9hDRpAzKhUOlJ+hx8dd4USs00SgsUNwc4617J9ki5YtEClM2ffA== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha1-tdRU3CGZriJWmfNGfloH87lVuv0= - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-symbols@^1.0.1, has-symbols@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.0.tgz#7e133818a7d394734f941e73c3d3f9291e658b25" - integrity sha512-kFjcSNhnlGV1kyoGk7OXKSawH5JOb/LzUc5w9B02hOTO0dfFRjbHQKvg1d6cf3HbeUmtU9VbbV3qzZ2Teh97WQ== - dependencies: - has-symbols "^1.0.2" - -has@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" - integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== - dependencies: - function-bind "^1.1.1" - -html-encoding-sniffer@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz#42a6dc4fd33f00281176e8b23759ca4e4fa185f3" - integrity sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ== - dependencies: - whatwg-encoding "^1.0.5" - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -http-proxy-agent@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz#8a8c8ef7f5932ccf953c296ca8291b95aa74aa3a" - integrity sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg== - dependencies: - "@tootallnate/once" "1" - agent-base "6" - debug "4" - -https-proxy-agent@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz#e2a90542abb68a762e0a0850f6c9edadfd8506b2" - integrity sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA== - dependencies: - agent-base "6" - debug "4" - -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - -iconv-lite@0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -ignore@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -ignore@^5.1.8, ignore@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" - integrity sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ== - -import-fresh@^3.0.0, import-fresh@^3.2.1: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== - dependencies: - pkg-dir "^4.2.0" - resolve-cwd "^3.0.0" - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -internal-slot@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.3.tgz#7347e307deeea2faac2ac6205d4bc7d34967f59c" - integrity sha512-O0DB1JC/sPyZl7cIo78n5dR7eUSwwpYPiXRhTzNxZVAMUuB8vlnRFyLxdrVToks6XPLVnFfbzaVd5WLjhgg+vA== - dependencies: - get-intrinsic "^1.1.0" - has "^1.0.3" - side-channel "^1.0.4" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0= - -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" - -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-callable@^1.1.4, is-callable@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.4.tgz#47301d58dd0259407865547853df6d61fe471945" - integrity sha512-nsuwtxZfMX67Oryl9LCQ+upnC0Z0BgpwntpS89m1H/TLF0zNfzfLMV/9Wa/6MZsj0acpEjAO0KF1xT6ZdLl95w== - -is-core-module@^2.2.0, is-core-module@^2.8.0, is-core-module@^2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.8.1.tgz#f59fdfca701d5879d0a6b100a40aa1560ce27211" - integrity sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA== - dependencies: - has "^1.0.3" - -is-date-object@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== - dependencies: - has-tostringtag "^1.0.0" - -is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha1-qIwCU1eR8C7TfHahueqXc8gz+MI= - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-generator-fn@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" - integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-negative-zero@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.2.tgz#7bf6f03a28003b8b3965de3ac26f664d765f3150" - integrity sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA== - -is-number-object@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.6.tgz#6a7aaf838c7f0686a50b4553f7e54a96494e89f0" - integrity sha512-bEVOqiRcvo3zO1+G2lVMy+gkkEm9Yh7cDMRusKKu5ZJKPUYSJwICTKZrNKHA2EbSP0Tu0+6B/emsYNHZyn6K8g== - dependencies: - has-tostringtag "^1.0.0" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-potential-custom-element-name@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz#171ed6f19e3ac554394edf78caa05784a45bebb5" - integrity sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ== - -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-shared-array-buffer@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz#97b0c85fbdacb59c9c446fe653b82cf2b5b7cfe6" - integrity sha512-IU0NmyknYZN0rChcKhRO1X8LYz5Isj/Fsqh8NJOSf+N/hCOTwy29F32Ik7a+QszE63IdvmwdTPDd6cZ5pg4cwA== - -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== - dependencies: - has-symbols "^1.0.2" - -is-typedarray@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha1-5HnICFjfDBsR3dppQPlgEfzaSpo= - -is-weakref@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== - dependencies: - call-bind "^1.0.2" - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz#189e7909d0a39fa5a3dfad5b03f71947770191d3" - integrity sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw== - -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz#7b49198b657b27a730b8e9cb601f1e1bff24c59a" - integrity sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz#7518fe52ea44de372f460a76b5ecda9ffb73d8a6" - integrity sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^3.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.1.3: - version "3.1.4" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.4.tgz#1b6f068ecbc6c331040aab5741991273e609e40c" - integrity sha512-r1/DshN4KSE7xWEknZLLLLDn5CJybV3nw01VTkp6D5jzLuELlcbudfj/eSQFvrKsJuTVCGnePO7ho82Nw9zzfw== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -jest-changed-files@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-27.5.1.tgz#a348aed00ec9bf671cc58a66fcbe7c3dfd6a68f5" - integrity sha512-buBLMiByfWGCoMsLLzGUUSpAmIAGnbR2KJoMN10ziLhOLvP4e0SlypHnAel8iqQXTrcbmfEY9sSqae5sgUsTvw== - dependencies: - "@jest/types" "^27.5.1" - execa "^5.0.0" - throat "^6.0.1" - -jest-circus@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-circus/-/jest-circus-27.5.1.tgz#37a5a4459b7bf4406e53d637b49d22c65d125ecc" - integrity sha512-D95R7x5UtlMA5iBYsOHFFbMD/GVA4R/Kdq15f7xYWUfWHBto9NYRsOvnSauTgdF+ogCpJ4tyKOXhUifxS65gdw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - dedent "^0.7.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - throat "^6.0.1" - -jest-cli@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-27.5.1.tgz#278794a6e6458ea8029547e6c6cbf673bd30b145" - integrity sha512-Hc6HOOwYq4/74/c62dEE3r5elx8wjYqxY0r0G/nFrLDPMFRu6RA/u8qINOIkvhxG7mMQ5EJsOGfRpI8L6eFUVw== - dependencies: - "@jest/core" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - exit "^0.1.2" - graceful-fs "^4.2.9" - import-local "^3.0.2" - jest-config "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - prompts "^2.0.1" - yargs "^16.2.0" - -jest-config@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-27.5.1.tgz#5c387de33dca3f99ad6357ddeccd91bf3a0e4a41" - integrity sha512-5sAsjm6tGdsVbW9ahcChPAFCk4IlkQUknH5AvKjuLTSlcO/wCZKyFdn7Rg0EkC+OGgWODEy2hDpWB1PgzH0JNA== - dependencies: - "@babel/core" "^7.8.0" - "@jest/test-sequencer" "^27.5.1" - "@jest/types" "^27.5.1" - babel-jest "^27.5.1" - chalk "^4.0.0" - ci-info "^3.2.0" - deepmerge "^4.2.2" - glob "^7.1.1" - graceful-fs "^4.2.9" - jest-circus "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-get-type "^27.5.1" - jest-jasmine2 "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runner "^27.5.1" - jest-util "^27.5.1" - jest-validate "^27.5.1" - micromatch "^4.0.4" - parse-json "^5.2.0" - pretty-format "^27.5.1" - slash "^3.0.0" - strip-json-comments "^3.1.1" - -jest-diff@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-27.5.1.tgz#a07f5011ac9e6643cf8a95a462b7b1ecf6680def" - integrity sha512-m0NvkX55LDt9T4mctTEgnZk3fmEg3NRYutvMPWM/0iPnkFj2wIeF45O1718cMSOFO1vINkqmxqD8vE37uTEbqw== - dependencies: - chalk "^4.0.0" - diff-sequences "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-docblock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-27.5.1.tgz#14092f364a42c6108d42c33c8cf30e058e25f6c0" - integrity sha512-rl7hlABeTsRYxKiUfpHrQrG4e2obOiTQWfMEH3PxPjOtdsfLQO4ReWSZaQ7DETm4xu07rl4q/h4zcKXyU0/OzQ== - dependencies: - detect-newline "^3.0.0" - -jest-each@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-each/-/jest-each-27.5.1.tgz#5bc87016f45ed9507fed6e4702a5b468a5b2c44e" - integrity sha512-1Ff6p+FbhT/bXQnEouYy00bkNSY7OUpfIcmdl8vZ31A1UUaurOLPA8a8BbJOF2RDUElwJhmeaV7LnagI+5UwNQ== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - jest-get-type "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - -jest-environment-jsdom@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-27.5.1.tgz#ea9ccd1fc610209655a77898f86b2b559516a546" - integrity sha512-TFBvkTC1Hnnnrka/fUb56atfDtJ9VMZ94JkjTbggl1PEpwrYtUBKMezB3inLmWqQsXYLcMwNoDQwoBTAvFfsfw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - jsdom "^16.6.0" - -jest-environment-node@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-27.5.1.tgz#dedc2cfe52fab6b8f5714b4808aefa85357a365e" - integrity sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - jest-mock "^27.5.1" - jest-util "^27.5.1" - -jest-get-type@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-27.5.1.tgz#3cd613c507b0f7ace013df407a1c1cd578bcb4f1" - integrity sha512-2KY95ksYSaK7DMBWQn6dQz3kqAf3BB64y2udeG+hv4KfSOb9qwcYQstTJc1KCbsix+wLZWZYN8t7nwX3GOBLRw== - -jest-haste-map@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-27.5.1.tgz#9fd8bd7e7b4fa502d9c6164c5640512b4e811e7f" - integrity sha512-7GgkZ4Fw4NFbMSDSpZwXeBiIbx+t/46nJ2QitkOjvwPYyZmqttu2TDSimMHP1EkPOi4xUZAN1doE5Vd25H4Jng== - dependencies: - "@jest/types" "^27.5.1" - "@types/graceful-fs" "^4.1.2" - "@types/node" "*" - anymatch "^3.0.3" - fb-watchman "^2.0.0" - graceful-fs "^4.2.9" - jest-regex-util "^27.5.1" - jest-serializer "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - micromatch "^4.0.4" - walker "^1.0.7" - optionalDependencies: - fsevents "^2.3.2" - -jest-jasmine2@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-27.5.1.tgz#a037b0034ef49a9f3d71c4375a796f3b230d1ac4" - integrity sha512-jtq7VVyG8SqAorDpApwiJJImd0V2wv1xzdheGHRGyuT7gZm6gG47QEskOlzsN1PG/6WNaCo5pmwMHDf3AkG2pQ== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - co "^4.6.0" - expect "^27.5.1" - is-generator-fn "^2.0.0" - jest-each "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-runtime "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - pretty-format "^27.5.1" - throat "^6.0.1" - -jest-leak-detector@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-leak-detector/-/jest-leak-detector-27.5.1.tgz#6ec9d54c3579dd6e3e66d70e3498adf80fde3fb8" - integrity sha512-POXfWAMvfU6WMUXftV4HolnJfnPOGEu10fscNCA76KBpRRhcMN2c8d3iT2pxQS3HLbA+5X4sOUPzYO2NUyIlHQ== - dependencies: - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-matcher-utils@^27.0.0, jest-matcher-utils@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-27.5.1.tgz#9c0cdbda8245bc22d2331729d1091308b40cf8ab" - integrity sha512-z2uTx/T6LBaCoNWNFWwChLBKYxTMcGBRjAt+2SbP929/Fflb9aa5LGma654Rz8z9HLxsrUaYzxE9T/EFIL/PAw== - dependencies: - chalk "^4.0.0" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - pretty-format "^27.5.1" - -jest-message-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-27.5.1.tgz#bdda72806da10d9ed6425e12afff38cd1458b6cf" - integrity sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g== - dependencies: - "@babel/code-frame" "^7.12.13" - "@jest/types" "^27.5.1" - "@types/stack-utils" "^2.0.0" - chalk "^4.0.0" - graceful-fs "^4.2.9" - micromatch "^4.0.4" - pretty-format "^27.5.1" - slash "^3.0.0" - stack-utils "^2.0.3" - -jest-mock@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-27.5.1.tgz#19948336d49ef4d9c52021d34ac7b5f36ff967d6" - integrity sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - -jest-pnp-resolver@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz#b704ac0ae028a89108a4d040b3f919dfddc8e33c" - integrity sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w== - -jest-regex-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-27.5.1.tgz#4da143f7e9fd1e542d4aa69617b38e4a78365b95" - integrity sha512-4bfKq2zie+x16okqDXjXn9ql2B0dScQu+vcwe4TvFVhkVyuWLqpZrZtXxLLWoXYgn0E87I6r6GRYHF7wFZBUvg== - -jest-resolve-dependencies@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-27.5.1.tgz#d811ecc8305e731cc86dd79741ee98fed06f1da8" - integrity sha512-QQOOdY4PE39iawDn5rzbIePNigfe5B9Z91GDD1ae/xNDlu9kaat8QQ5EKnNmVWPV54hUdxCVwwj6YMgR2O7IOg== - dependencies: - "@jest/types" "^27.5.1" - jest-regex-util "^27.5.1" - jest-snapshot "^27.5.1" - -jest-resolve@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-27.5.1.tgz#a2f1c5a0796ec18fe9eb1536ac3814c23617b384" - integrity sha512-FFDy8/9E6CV83IMbDpcjOhumAQPDyETnU2KZ1O98DwTnz8AOBsW/Xv3GySr1mOZdItLR+zDZ7I/UdTFbgSOVCw== - dependencies: - "@jest/types" "^27.5.1" - chalk "^4.0.0" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-pnp-resolver "^1.2.2" - jest-util "^27.5.1" - jest-validate "^27.5.1" - resolve "^1.20.0" - resolve.exports "^1.1.0" - slash "^3.0.0" - -jest-runner@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runner/-/jest-runner-27.5.1.tgz#071b27c1fa30d90540805c5645a0ec167c7b62e5" - integrity sha512-g4NPsM4mFCOwFKXO4p/H/kWGdJp9V8kURY2lX8Me2drgXqG7rrZAx5kv+5H7wtt/cdFIjhqYx1HrlqWHaOvDaQ== - dependencies: - "@jest/console" "^27.5.1" - "@jest/environment" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - emittery "^0.8.1" - graceful-fs "^4.2.9" - jest-docblock "^27.5.1" - jest-environment-jsdom "^27.5.1" - jest-environment-node "^27.5.1" - jest-haste-map "^27.5.1" - jest-leak-detector "^27.5.1" - jest-message-util "^27.5.1" - jest-resolve "^27.5.1" - jest-runtime "^27.5.1" - jest-util "^27.5.1" - jest-worker "^27.5.1" - source-map-support "^0.5.6" - throat "^6.0.1" - -jest-runtime@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-27.5.1.tgz#4896003d7a334f7e8e4a53ba93fb9bcd3db0a1af" - integrity sha512-o7gxw3Gf+H2IGt8fv0RiyE1+r83FJBRruoA+FXrlHw6xEyBsU8ugA6IPfTdVyA0w8HClpbK+DGJxH59UrNMx8A== - dependencies: - "@jest/environment" "^27.5.1" - "@jest/fake-timers" "^27.5.1" - "@jest/globals" "^27.5.1" - "@jest/source-map" "^27.5.1" - "@jest/test-result" "^27.5.1" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - chalk "^4.0.0" - cjs-module-lexer "^1.0.0" - collect-v8-coverage "^1.0.0" - execa "^5.0.0" - glob "^7.1.3" - graceful-fs "^4.2.9" - jest-haste-map "^27.5.1" - jest-message-util "^27.5.1" - jest-mock "^27.5.1" - jest-regex-util "^27.5.1" - jest-resolve "^27.5.1" - jest-snapshot "^27.5.1" - jest-util "^27.5.1" - slash "^3.0.0" - strip-bom "^4.0.0" - -jest-serializer@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-serializer/-/jest-serializer-27.5.1.tgz#81438410a30ea66fd57ff730835123dea1fb1f64" - integrity sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w== - dependencies: - "@types/node" "*" - graceful-fs "^4.2.9" - -jest-snapshot@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-27.5.1.tgz#b668d50d23d38054a51b42c4039cab59ae6eb6a1" - integrity sha512-yYykXI5a0I31xX67mgeLw1DZ0bJB+gpq5IpSuCAoyDi0+BhgU/RIrL+RTzDmkNTchvDFWKP8lp+w/42Z3us5sA== - dependencies: - "@babel/core" "^7.7.2" - "@babel/generator" "^7.7.2" - "@babel/plugin-syntax-typescript" "^7.7.2" - "@babel/traverse" "^7.7.2" - "@babel/types" "^7.0.0" - "@jest/transform" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/babel__traverse" "^7.0.4" - "@types/prettier" "^2.1.5" - babel-preset-current-node-syntax "^1.0.0" - chalk "^4.0.0" - expect "^27.5.1" - graceful-fs "^4.2.9" - jest-diff "^27.5.1" - jest-get-type "^27.5.1" - jest-haste-map "^27.5.1" - jest-matcher-utils "^27.5.1" - jest-message-util "^27.5.1" - jest-util "^27.5.1" - natural-compare "^1.4.0" - pretty-format "^27.5.1" - semver "^7.3.2" - -jest-util@^27.0.0, jest-util@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-27.5.1.tgz#3ba9771e8e31a0b85da48fe0b0891fb86c01c2f9" - integrity sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw== - dependencies: - "@jest/types" "^27.5.1" - "@types/node" "*" - chalk "^4.0.0" - ci-info "^3.2.0" - graceful-fs "^4.2.9" - picomatch "^2.2.3" - -jest-validate@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-27.5.1.tgz#9197d54dc0bdb52260b8db40b46ae668e04df067" - integrity sha512-thkNli0LYTmOI1tDB3FI1S1RTp/Bqyd9pTarJwL87OIBFuqEb5Apv5EaApEudYg4g86e3CT6kM0RowkhtEnCBQ== - dependencies: - "@jest/types" "^27.5.1" - camelcase "^6.2.0" - chalk "^4.0.0" - jest-get-type "^27.5.1" - leven "^3.1.0" - pretty-format "^27.5.1" - -jest-watcher@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-watcher/-/jest-watcher-27.5.1.tgz#71bd85fb9bde3a2c2ec4dc353437971c43c642a2" - integrity sha512-z676SuD6Z8o8qbmEGhoEUFOM1+jfEiL3DXHK/xgEiG2EyNYfFG60jluWcupY6dATjfEsKQuibReS1djInQnoVw== - dependencies: - "@jest/test-result" "^27.5.1" - "@jest/types" "^27.5.1" - "@types/node" "*" - ansi-escapes "^4.2.1" - chalk "^4.0.0" - jest-util "^27.5.1" - string-length "^4.0.1" - -jest-worker@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jest@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest/-/jest-27.5.1.tgz#dadf33ba70a779be7a6fc33015843b51494f63fc" - integrity sha512-Yn0mADZB89zTtjkPJEXwrac3LHudkQMR+Paqa8uxJHCBr9agxztUifWCyiYrjhMPBoUVBjyny0I7XH6ozDr7QQ== - dependencies: - "@jest/core" "^27.5.1" - import-local "^3.0.2" - jest-cli "^27.5.1" - -"js-tokens@^3.0.0 || ^4.0.0", js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -jsdom@^16.6.0: - version "16.7.0" - resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-16.7.0.tgz#918ae71965424b197c819f8183a754e18977b710" - integrity sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw== - dependencies: - abab "^2.0.5" - acorn "^8.2.4" - acorn-globals "^6.0.0" - cssom "^0.4.4" - cssstyle "^2.3.0" - data-urls "^2.0.0" - decimal.js "^10.2.1" - domexception "^2.0.1" - escodegen "^2.0.0" - form-data "^3.0.0" - html-encoding-sniffer "^2.0.1" - http-proxy-agent "^4.0.1" - https-proxy-agent "^5.0.0" - is-potential-custom-element-name "^1.0.1" - nwsapi "^2.2.0" - parse5 "6.0.1" - saxes "^5.0.1" - symbol-tree "^3.2.4" - tough-cookie "^4.0.0" - w3c-hr-time "^1.0.2" - w3c-xmlserializer "^2.0.0" - webidl-conversions "^6.1.0" - whatwg-encoding "^1.0.5" - whatwg-mimetype "^2.3.0" - whatwg-url "^8.5.0" - ws "^7.4.6" - xml-name-validator "^3.0.0" - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - -json-parse-even-better-errors@^2.3.0: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= - -json5@2.x, json5@^2.1.2: - version "2.2.0" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.0.tgz#2dfefe720c6ba525d9ebd909950f0515316c89a3" - integrity sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA== - dependencies: - minimist "^1.2.5" - -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== - dependencies: - minimist "^1.2.0" - -"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b" - integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA== - dependencies: - array-includes "^3.1.3" - object.assign "^4.1.2" - -kleur@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" - integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== - -language-subtag-registry@~0.3.2: - version "0.3.21" - resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.21.tgz#04ac218bea46f04cb039084602c6da9e788dd45a" - integrity sha512-L0IqwlIXjilBVVYKFT37X9Ih11Um5NEl9cbJIuU/SwP/zEEAbBPOnEeeuxVMf45ydWQRDQN3Nqc96OgbH1K+Pg== - -language-tags@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.5.tgz#d321dbc4da30ba8bf3024e040fa5c14661f9193a" - integrity sha1-0yHbxNowuovzAk4ED6XBRmH5GTo= - dependencies: - language-subtag-registry "~0.3.2" - -leven@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" - integrity sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -levn@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" - integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= - dependencies: - prelude-ls "~1.1.2" - type-check "~0.3.2" - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -lodash.memoize@4.x: - version "4.1.2" - resolved "https://registry.yarnpkg.com/lodash.memoize/-/lodash.memoize-4.1.2.tgz#bcc6c49a42a2840ed997f323eada5ecd182e0bfe" - integrity sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4= - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash@^4.7.0: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -loose-envify@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf" - integrity sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q== - dependencies: - js-tokens "^3.0.0 || ^4.0.0" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -make-dir@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -make-error@1.x, make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - -makeerror@1.0.12: - version "1.0.12" - resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.12.tgz#3e5dd2079a82e812e983cc6610c4a2cb0eaa801a" - integrity sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg== - dependencies: - tmpl "1.0.5" - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -micromatch@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.4.tgz#896d519dfe9db25fce94ceb7a500919bf881ebf9" - integrity sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg== - dependencies: - braces "^3.0.1" - picomatch "^2.2.3" - -mime-db@1.51.0: - version "1.51.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.51.0.tgz#d9ff62451859b18342d960850dc3cfb77e63fb0c" - integrity sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g== - -mime-types@^2.1.12: - version "2.1.34" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.34.tgz#5a712f9ec1503511a945803640fafe09d3793c24" - integrity sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A== - dependencies: - mime-db "1.51.0" - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -minimatch@^3.0.4, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimist@^1.2.0, minimist@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= - -node-domexception@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" - integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== - -node-fetch@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.2.1.tgz#002177382810cfb77858857f69a3621a86c45f26" - integrity sha512-Ef3SPFtRWFCDyhvcwCSvacLpkwmYZcD57mmZzAsMiks9TpHpIghe32U9H06tMICnr+X7YCpzH7WvUlUoml2urA== - dependencies: - data-uri-to-buffer "^4.0.0" - fetch-blob "^3.1.4" - formdata-polyfill "^4.0.10" - -node-int64@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" - integrity sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs= - -node-releases@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.2.tgz#7139fe71e2f4f11b47d4d2986aaf8c48699e0c01" - integrity sha512-XxYDdcQ6eKqp/YjI+tb2C5WM2LgjnZrfYg4vgQt49EK268b6gYCHsBLrK2qvJo4FmCtqmKezb0WZFK4fkrZNsg== - -normalize-path@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -nwsapi@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.0.tgz#204879a9e3d068ff2a55139c2c772780681a38b7" - integrity sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ== - -object-assign@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM= - -object-inspect@^1.11.0, object-inspect@^1.9.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.12.0.tgz#6e2c120e868fd1fd18cb4f18c31741d0d6e776f0" - integrity sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g== - -object-keys@^1.0.12, object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object.assign@^4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.2.tgz#0ed54a342eceb37b38ff76eb831a0e788cb63940" - integrity sha512-ixT2L5THXsApyiUPYKmW+2EHpXXe5Ii3M+f4e+aJFAHao5amFRW6J0OO6c/LU8Be47utCx2GL89hxGB6XSmKuQ== - dependencies: - call-bind "^1.0.0" - define-properties "^1.1.3" - has-symbols "^1.0.1" - object-keys "^1.1.1" - -object.entries@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" - integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -object.fromentries@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" - integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -object.hasown@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.0.tgz#7232ed266f34d197d15cac5880232f7a4790afe5" - integrity sha512-MhjYRfj3GBlhSkDHo6QmvgjRLXQ2zndabdf3nX0yTyZK9rPfxb6uRpAac8HXNLy1GpqWtZ81Qh4v3uOls2sRAg== - dependencies: - define-properties "^1.1.3" - es-abstract "^1.19.1" - -object.values@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.5.tgz#959f63e3ce9ef108720333082131e4a459b716ac" - integrity sha512-QUZRW0ilQ3PnPpbNtgdNV1PDbEqLIiSFB3l+EnGtBQ/8SUTLj1PZwtQHABZtLgwpJZTSZhuGLOGk57Drx2IvYg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - -once@^1.3.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= - dependencies: - wrappy "1" - -onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -optionator@^0.8.1: - version "0.8.3" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.3.tgz#84fa1d036fe9d3c7e21d99884b601167ec8fb495" - integrity sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA== - dependencies: - deep-is "~0.1.3" - fast-levenshtein "~2.0.6" - levn "~0.3.0" - prelude-ls "~1.1.2" - type-check "~0.3.2" - word-wrap "~1.2.3" - -optionator@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.1.tgz#4f236a6373dae0566a6d43e1326674f50c291499" - integrity sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.3" - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= - dependencies: - p-limit "^1.1.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-json@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse5@6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-6.0.1.tgz#e1a1c085c569b3dc08321184f19a39cc27f7c30b" - integrity sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha1-zg6+ql94yxiSXqfYENe1mwEP1RU= - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-parse@^1.0.6, path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picomatch@^2.0.4, picomatch@^2.2.3: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pirates@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== - -pkg-dir@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-4.2.0.tgz#f099133df7ede422e81d1d8448270eeb3e4261f3" - integrity sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ== - dependencies: - find-up "^4.0.0" - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prelude-ls@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" - integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= - -pretty-format@^27.0.0, pretty-format@^27.5.1: - version "27.5.1" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-27.5.1.tgz#2181879fdea51a7a5851fb39d920faa63f01d88e" - integrity sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ== - dependencies: - ansi-regex "^5.0.1" - ansi-styles "^5.0.0" - react-is "^17.0.1" - -prompts@^2.0.1: - version "2.4.2" - resolved "https://registry.yarnpkg.com/prompts/-/prompts-2.4.2.tgz#7b57e73b3a48029ad10ebd44f74b01722a4cb069" - integrity sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q== - dependencies: - kleur "^3.0.3" - sisteransi "^1.0.5" - -prop-types@^15.8.1: - version "15.8.1" - resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5" - integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg== - dependencies: - loose-envify "^1.4.0" - object-assign "^4.1.1" - react-is "^16.13.1" - -psl@^1.1.33: - version "1.8.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.8.0.tgz#9326f8bcfb013adcc005fdff056acce020e51c24" - integrity sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ== - -punycode@^2.1.0, punycode@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -react-is@^16.13.1: - version "16.13.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4" - integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== - -react-is@^17.0.1: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" - integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w== - -regenerator-runtime@^0.13.4: - version "0.13.9" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz#8925742a98ffd90814988d7566ad30ca3b263b52" - integrity sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA== - -regexp.prototype.flags@^1.3.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz#b3f4c0059af9e47eca9f3f660e51d81307e72307" - integrity sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -regexpp@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-3.2.0.tgz#0425a2768d8f23bad70ca4b90461fa2f1213e1b2" - integrity sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg== - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha1-jGStX9MNqxyXbiNE/+f3kqam30I= - -resolve-cwd@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-cwd/-/resolve-cwd-3.0.0.tgz#0f0075f1bb2544766cf73ba6a6e2adfebcb13f2d" - integrity sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg== - dependencies: - resolve-from "^5.0.0" - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve.exports@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" - integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== - -resolve@^1.20.0: - version "1.22.0" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.0.tgz#5e0b8c67c15df57a89bdbabe603a002f21731198" - integrity sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw== - dependencies: - is-core-module "^2.8.1" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -resolve@^2.0.0-next.3: - version "2.0.0-next.3" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-2.0.0-next.3.tgz#d41016293d4a8586a39ca5d9b5f15cbea1f55e46" - integrity sha512-W8LucSynKUIDu9ylraa7ueVZ7hc0uAgJBxVsQSKOXOyle8a93qXhcz+XAXZ8bIq2d6i4Ehddn6Evt+0/UwKk6Q== - dependencies: - is-core-module "^2.2.0" - path-parse "^1.0.6" - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rimraf@^3.0.0, rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -"safer-buffer@>= 2.1.2 < 3": - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -saxes@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/saxes/-/saxes-5.0.1.tgz#eebab953fa3b7608dbe94e5dadb15c888fa6696d" - integrity sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw== - dependencies: - xmlchars "^2.2.0" - -semver@7.x, semver@^7.3.2, semver@^7.3.5: - version "7.3.5" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7" - integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ== - dependencies: - lru-cache "^6.0.0" - -semver@^6.0.0, semver@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" - integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -side-channel@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.4.tgz#efce5c8fdc104ee751b25c58d4290011fa5ea2cf" - integrity sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw== - dependencies: - call-bind "^1.0.0" - get-intrinsic "^1.0.2" - object-inspect "^1.9.0" - -signal-exit@^3.0.2, signal-exit@^3.0.3: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -sisteransi@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/sisteransi/-/sisteransi-1.0.5.tgz#134d681297756437cc05ca01370d3a7a571075ed" - integrity sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -source-map-support@^0.5.6: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map@^0.5.0: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= - -source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@^0.7.3: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= - -stack-utils@^2.0.3: - version "2.0.5" - resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-2.0.5.tgz#d25265fca995154659dbbfba3b49254778d2fdd5" - integrity sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA== - dependencies: - escape-string-regexp "^2.0.0" - -string-length@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/string-length/-/string-length-4.0.2.tgz#a8a8dc7bd5c1a82b9b3c8b87e125f66871b6e57a" - integrity sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ== - dependencies: - char-regex "^1.0.2" - strip-ansi "^6.0.0" - -string-width@^4.1.0, string-width@^4.2.0: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string.prototype.matchall@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.6.tgz#5abb5dabc94c7b0ea2380f65ba610b3a544b15fa" - integrity sha512-6WgDX8HmQqvEd7J+G6VtAahhsQIssiZ8zl7zKh1VDMFyL3hRTJP4FTNA3RbIp2TOQ9AYNDcc7e3fH0Qbup+DBg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" - has-symbols "^1.0.2" - internal-slot "^1.0.3" - regexp.prototype.flags "^1.3.1" - side-channel "^1.0.4" - -string.prototype.trimend@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.4.tgz#e75ae90c2942c63504686c18b287b4a0b1a45f80" - integrity sha512-y9xCjw1P23Awk8EvTpcyL2NIr1j7wJ39f+k6lvRnSMz+mz9CGz9NYPelDk42kOz6+ql8xjfK8oYzy3jAP5QU5A== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -string.prototype.trimstart@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.4.tgz#b36399af4ab2999b4c9c648bd7a3fb2bb26feeed" - integrity sha512-jh6e984OBfvxS50tdY2nRZnoC5/mLFKOREQfw8t5yytkoUsJRNxvI/E39qu1sD0OtWI3OC0XgKSmcWwziwYuZw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.1.3" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= - -strip-bom@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-4.0.0.tgz#9c3505c1db45bcedca3d9cf7a16f5c5aa3901878" - integrity sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-json-comments@^3.1.0, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^8.0.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb" - integrity sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -symbol-tree@^3.2.4: - version "3.2.4" - resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2" - integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw== - -terminal-link@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/terminal-link/-/terminal-link-2.1.1.tgz#14a64a27ab3c0df933ea546fba55f2d078edc994" - integrity sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ== - dependencies: - ansi-escapes "^4.2.1" - supports-hyperlinks "^2.0.0" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= - -throat@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/throat/-/throat-6.0.1.tgz#d514fedad95740c12c2d7fc70ea863eb51ade375" - integrity sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w== - -tmpl@1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.5.tgz#8683e0b902bb9c20c4f726e3c0b69f36518c07cc" - integrity sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw== - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4= - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -tough-cookie@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-4.0.0.tgz#d822234eeca882f991f0f908824ad2622ddbece4" - integrity sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg== - dependencies: - psl "^1.1.33" - punycode "^2.1.1" - universalify "^0.1.2" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - -ts-jest@^27.1.3: - version "27.1.3" - resolved "https://registry.yarnpkg.com/ts-jest/-/ts-jest-27.1.3.tgz#1f723e7e74027c4da92c0ffbd73287e8af2b2957" - integrity sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA== - dependencies: - bs-logger "0.x" - fast-json-stable-stringify "2.x" - jest-util "^27.0.0" - json5 "2.x" - lodash.memoize "4.x" - make-error "1.x" - semver "7.x" - yargs-parser "20.x" - -ts-node@^10.6.0: - version "10.6.0" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.6.0.tgz#c3f4195d5173ce3affdc8f2fd2e9a7ac8de5376a" - integrity sha512-CJen6+dfOXolxudBQXnVjRVvYTmTWbyz7cn+xq2XTsvnaXbHqr4gXSCNbS2Jj8yTZMuGwUoBESLaOkLascVVvg== - dependencies: - "@cspotcode/source-map-support" "0.7.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.0" - yn "3.1.1" - -tsconfig-paths@^3.12.0: - version "3.12.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.12.0.tgz#19769aca6ee8f6a1a341e38c8fa45dd9fb18899b" - integrity sha512-e5adrnOYT6zqVnWqZu7i/BQ3BnhzvGbjEjejFXO20lKIKpwTaupkCPgEfv4GZK1IBciJUEhYs3J3p75FdaTFVg== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" - strip-bom "^3.0.0" - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-check@~0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" - integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= - dependencies: - prelude-ls "~1.1.2" - -type-detect@4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" - integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -typedarray-to-buffer@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080" - integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q== - dependencies: - is-typedarray "^1.0.0" - -typescript@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.2.tgz#fe12d2727b708f4eef40f51598b3398baa9611d4" - integrity sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg== - -unbox-primitive@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.1.tgz#085e215625ec3162574dc8859abee78a59b14471" - integrity sha512-tZU/3NqK3dA5gpE1KtyiJUrEB0lxnGkMFHptJ7q6ewdZ8s12QrODwNbhIJStmJkd1QDXa1NRA8aF2A1zk/Ypyw== - dependencies: - function-bind "^1.1.1" - has-bigints "^1.0.1" - has-symbols "^1.0.2" - which-boxed-primitive "^1.0.2" - -universalify@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -uri-js@^4.2.2: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -v8-compile-cache-lib@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.0.tgz#0582bcb1c74f3a2ee46487ceecf372e46bce53e8" - integrity sha512-mpSYqfsFvASnSn5qMiwrr4VKfumbPyONLCOPmsR3A6pTY/r0+tSaVbgPWSAIuzbk3lCTa+FForeTiO+wBQGkjA== - -v8-compile-cache@^2.0.3: - version "2.3.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.3.0.tgz#2de19618c66dc247dcfb6f99338035d8245a2cee" - integrity sha512-l8lCEmLcLYZh4nbunNZvQCJc5pv7+RCwa8q/LdUx8u7lsWvPDKmpodJAJNwkAhJC//dFY48KuIEmjtd4RViDrA== - -v8-to-istanbul@^8.1.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz#77b752fd3975e31bbcef938f85e9bd1c7a8d60ed" - integrity sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w== - dependencies: - "@types/istanbul-lib-coverage" "^2.0.1" - convert-source-map "^1.6.0" - source-map "^0.7.3" - -w3c-hr-time@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz#0a89cdf5cc15822df9c360543676963e0cc308cd" - integrity sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ== - dependencies: - browser-process-hrtime "^1.0.0" - -w3c-xmlserializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz#3e7104a05b75146cc60f564380b7f683acf1020a" - integrity sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA== - dependencies: - xml-name-validator "^3.0.0" - -walker@^1.0.7: - version "1.0.8" - resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.8.tgz#bd498db477afe573dc04185f011d3ab8a8d7653f" - integrity sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ== - dependencies: - makeerror "1.0.12" - -web-streams-polyfill@^3.0.3: - version "3.2.0" - resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.2.0.tgz#a6b74026b38e4885869fb5c589e90b95ccfc7965" - integrity sha512-EqPmREeOzttaLRm5HS7io98goBgZ7IVz79aDvqjD0kYXLtFZTc0T/U6wHTPKyIjb+MdN7DFIIX6hgdBEpWmfPA== - -webidl-conversions@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-5.0.0.tgz#ae59c8a00b121543a2acc65c0434f57b0fc11aff" - integrity sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA== - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-encoding@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz#5abacf777c32166a51d085d6b4f3e7d27113ddb0" - integrity sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw== - dependencies: - iconv-lite "0.4.24" - -whatwg-mimetype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz#3d4b1e0312d2079879f826aff18dbeeca5960fbf" - integrity sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g== - -whatwg-url@^8.0.0, whatwg-url@^8.5.0: - version "8.7.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-8.7.0.tgz#656a78e510ff8f3937bc0bcbe9f5c0ac35941b77" - integrity sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg== - dependencies: - lodash "^4.7.0" - tr46 "^2.1.0" - webidl-conversions "^6.1.0" - -which-boxed-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -word-wrap@^1.2.3, word-wrap@~1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.3.tgz#610636f6b1f703891bd34771ccb17fb93b47079c" - integrity sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ== - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= - -write-file-atomic@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8" - integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q== - dependencies: - imurmurhash "^0.1.4" - is-typedarray "^1.0.0" - signal-exit "^3.0.2" - typedarray-to-buffer "^3.1.5" - -ws@^7.4.6: - version "7.5.7" - resolved "https://registry.yarnpkg.com/ws/-/ws-7.5.7.tgz#9e0ac77ee50af70d58326ecff7e85eb3fa375e67" - integrity sha512-KMvVuFzpKBuiIXW3E4u3mySRO2/mCHSyZDJQM5NQ9Q9KHWHWh0NHgfbRMLLrceUK5qAL4ytALJbpRMjixFZh8A== - -xml-name-validator@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a" - integrity sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw== - -xmlchars@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/xmlchars/-/xmlchars-2.2.0.tgz#060fe1bcb7f9c76fe2a17db86a9bc3ab894210cb" - integrity sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yargs-parser@20.x, yargs-parser@^20.2.2: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== From b22994fe635b231a952df211b4f95f0d3c2b081e Mon Sep 17 00:00:00 2001 From: mast1ff Date: Wed, 18 Jun 2025 23:59:18 +0900 Subject: [PATCH 2/5] creat github workflows --- .github/workflows/ci.yaml | 44 ++++++++++++++++++++++++++++++++++ .github/workflows/release.yaml | 27 +++++++++++++++++++++ .npmignore | 2 -- pnpm-lock.yaml | 23 ++++++++++++++++++ src/schema.ts | 8 +++---- 5 files changed, 98 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/ci.yaml create mode 100644 .github/workflows/release.yaml delete mode 100644 .npmignore diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..e3e336f --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,44 @@ +name: ci +on: + push: + branches: ["main"] + pull_request: + branches: ["*"] + paths-ignore: + - "docs/**" + - ".vscode/**" + - "README.md" + - ".gitignore" + - "LICENSE" + +jobs: + main: + name: "Main" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - uses: pnpm/action-setup@v4 + with: + version: 10 + - run: pnpm install + - run: pnpm run build + - run: pnpm run lint + - run: pnpm run format + + coverage: + name: "Coverage" + runs-on: ubuntu-latest + needs: [main] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + - uses: pnpm/action-setup@v4 + with: + version: 10 + - run: pnpm install + - run: pnpm run test:coverage diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..9a3d781 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,27 @@ +name: release +on: + push: + tags: + - "v*.*.*" + +jobs: + release: + name: "Release" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "20" + registry-url: "https://registry.npmjs.org" + - uses: pnpm/action-setup@v4 + with: + version: 10 + - run: pnpm install + - run: pnpm run build + - run: pnpm run lint + - run: pnpm run format + - run: pnpm run test + - run: pnpm publish --access public --no-git-checks + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore deleted file mode 100644 index e5f478e..0000000 --- a/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -__tests__ -fixtures \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7d3357c..3c44adf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,12 @@ importers: '@standard-schema/spec': specifier: ^1.0.0 version: 1.0.0 + valibot: + specifier: ^1.0.0 + version: 1.1.0(typescript@5.8.3) + zod: + specifier: ^3.0.0 + version: 3.25.67 devDependencies: '@biomejs/biome': specifier: ^2.0.0 @@ -1167,6 +1173,14 @@ packages: v8-compile-cache-lib@3.0.1: resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} + valibot@1.1.0: + resolution: {integrity: sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==} + peerDependencies: + typescript: '>=5' + peerDependenciesMeta: + typescript: + optional: true + vite-node@3.2.4: resolution: {integrity: sha512-EbKSKh+bh1E1IFxeO0pg1n4dvoOTt0UDiXMd/qn++r98+jPO1xtJilvXldeuQ8giIB5IkpjCgMleHMNEsGH6pg==} engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} @@ -1312,6 +1326,9 @@ packages: resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} engines: {node: '>=6'} + zod@3.25.67: + resolution: {integrity: sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==} + snapshots: '@ampproject/remapping@2.3.0': @@ -2387,6 +2404,10 @@ snapshots: v8-compile-cache-lib@3.0.1: {} + valibot@1.1.0(typescript@5.8.3): + optionalDependencies: + typescript: 5.8.3 + vite-node@3.2.4(@types/node@24.0.3): dependencies: cac: 6.7.14 @@ -2532,3 +2553,5 @@ snapshots: optional: true yn@3.1.1: {} + + zod@3.25.67: {} diff --git a/src/schema.ts b/src/schema.ts index 8c05ebc..1ce5efd 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,14 +1,14 @@ // 公式Standard Schemaの型を使用 import type { StandardSchemaV1 } from "@standard-schema/spec"; -export type { StandardSchemaV1 } from "@standard-schema/spec"; + +// 公式の結果型をエクスポート export type { + StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1Props, StandardSchemaV1 as StandardSchema, + StandardSchemaV1 as StandardSchemaTypes, } from "@standard-schema/spec"; -// 公式の結果型をエクスポート -export type { StandardSchemaV1 as StandardSchemaTypes } from "@standard-schema/spec"; - // 互換性のための結果型(簡素化したインターフェース) export interface StandardSchemaResult { readonly success: boolean; From cf38e127d12557d3aa51b3a5c3e690012b410b75 Mon Sep 17 00:00:00 2001 From: mast1ff Date: Thu, 19 Jun 2025 02:50:30 +0900 Subject: [PATCH 3/5] update types --- CHANGELOG.md | 25 -- LICENSE | 4 +- README.md | 517 ++++++++++++++++++++++++++++--- biome.json | 2 +- examples/basic-usage.ts | 76 +++-- examples/nodejs-usage.ts | 88 ++++++ examples/signal-and-raw-usage.ts | 277 +++++++++++++++++ examples/valibot-usage.ts | 86 +++++ package.json | 20 +- pnpm-lock.yaml | 181 ++++------- src/adapters/valibot.ts | 66 ---- src/adapters/zod.ts | 53 ---- src/client.test.ts | 492 ++++++++++++++++++++++++----- src/client.ts | 153 ++++++--- src/index.ts | 8 +- src/raw-response.test.ts | 181 +++++++++++ src/schema.test.ts | 141 +++++++-- src/schema.ts | 40 ++- src/types.ts | 55 ++-- src/valibot.test.ts | 68 ---- tsconfig.json | 2 +- vitest.config.ts | 12 +- 22 files changed, 1912 insertions(+), 635 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 examples/nodejs-usage.ts create mode 100644 examples/signal-and-raw-usage.ts create mode 100644 examples/valibot-usage.ts delete mode 100644 src/adapters/valibot.ts delete mode 100644 src/adapters/zod.ts create mode 100644 src/raw-response.test.ts delete mode 100644 src/valibot.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 195a0da..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,25 +0,0 @@ -## 0.1.1 (2022-03-02) - -### 🎉 New Feature -- `v0.1.1` release -#### Committers -- Tasuku Kuribayashi([@mast1ff](https://github.com/mast1ff)) - -### 💥 Breaking Change -- None -### 🚀 Enhancement -- None -### 💉 Bug Fix -- None -### ⚠️ Deprecated -- None -### 📝 Documentation -- None -### ✨ Refactoring -- None -### ✅ Testing -- None -### 🛠️ Build -- None -### 📦 Dependency -- None \ No newline at end of file diff --git a/LICENSE b/LICENSE index 33b8d57..97cf020 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022-present TKNF LLC +Copyright (c) 2025 TKNF LLC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. \ No newline at end of file +SOFTWARE. diff --git a/README.md b/README.md index ce833bd..8444bb6 100644 --- a/README.md +++ b/README.md @@ -1,74 +1,503 @@ -# Typefetcher [![npm version](https://badge.fury.io/js/@tknf%2Ftypefetcher.svg)](https://badge.fury.io/js/@tknf%2Ftypefetcher) +
+ Snowflake Logo +

@tknf/typefetcher

+

TypeScript-first API client with Standard Schema support, providing excellent DX and strict type safety.

+
-This library provides a TypeScript-first and very simple wrapper around Axios. +[![Github Workflow Status](https://img.shields.io/github/actions/workflow/status/tknf/typefetcher/ci.yaml?branch=main)](https://github.com/tknf/typefetcher/actions) +[![Github](https://img.shields.io/github/license/tknf/typefetcher)](https://github.com/tknf/typefetcher/blob/main/LICENSE) +[![npm](https://img.shields.io/npm/v/@tknf/typefetcher)](https://www.npmjs.com/package/@tknf/typefetcher) +[![npm bundle size](https://img.shields.io/bundlephobia/min/@tknf/typefetcher)](https://bundlephobia.com/package/@tknf/typefetcher) +[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@tknf/typefetcher)](https://bundlephobia.com/package/@tknf/typefetcher) +[![Github commit activity](https://img.shields.io/github/commit-activity/m/tknf/typefetcher)](https://github.com/tknf/typefetcher/pulse) +[![GitHub last commit](https://img.shields.io/github/last-commit/tknf/typefetcher)](https://github.com/tknf/typefetcher/commits/main) +[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/tknf/typefetcher) -[Axios](https://github.com/axios/axios) +## ✨ Features -## Usage +- **🎯 Type-Safe**: Full TypeScript support with strict type inference +- **📊 Standard Schema**: Native support for Zod, Valibot, and other Standard Schema compliant libraries +- **🔍 Request/Response Validation**: Runtime validation with detailed error messages +- **🏗️ Builder Pattern**: Intuitive API inspired by Hono and Octokit +- **⚡ Lightweight**: Zero dependencies (except peer dependencies) +- **🛡️ Error Handling**: Comprehensive error types for different failure scenarios +- **🎪 Flexible**: Works with any Standard Schema compliant validation library -### Installation +## 📦 Installation ```bash -$ yarn add @tknf/typefetcher@latest -# or -$ npm install --save-dev @tknf/typefetcher@latest +npm install @tknf/typefetcher ``` -### Basic usage +### Peer Dependencies +TypeFetcher works with Standard Schema compliant validation libraries. Install one or more: + +```bash +# Zod (requires v3.25.0+ for Standard Schema support) +npm install zod + +# Valibot (requires v1.0.0+ for Standard Schema support) +npm install valibot +``` + +### Node.js Compatibility + +- **Node.js 18+**: Built-in fetch support, works out of the box +- **Node.js < 18**: Provide a custom fetch implementation: + +```bash +# Option 1: node-fetch +npm install node-fetch + +# Option 2: undici (fast HTTP client) +npm install undici +``` + +## 🚀 Quick Start + +### Basic Usage (No Schema) + +```typescript +import { TypeFetcher } from "@tknf/typefetcher"; + +const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + headers: { + "Authorization": "Bearer your-token" + } +}); + +// Register endpoints +const api = client + .addEndpoint("GET", "/users") + .addEndpoint("GET", "/users/{id}") + .addEndpoint("POST", "/users"); + +// Make requests (Octokit-style) +const users = await api.request("GET /users"); +const user = await api.request("GET /users/{id}", { + params: { id: "1" } +}); + +const newUser = await api.request("POST /users", { + body: { name: "John", email: "john@example.com" } +}); +``` + +### Type-Safe Usage with Zod + +```typescript +import { TypeFetcher } from "@tknf/typefetcher"; +import { z } from "zod"; + +// Define your schemas +const UserSchema = z.object({ + id: z.number(), + name: z.string(), + email: z.string().email(), +}); + +const CreateUserSchema = z.object({ + name: z.string(), + email: z.string().email(), +}); + +const PathIdSchema = z.object({ + id: z.string() +}); + +// Create type-safe client +const client = new TypeFetcher({ + baseURL: "https://api.example.com" +}); + +const api = client + .addEndpoint("GET", "/users", { + response: z.array(UserSchema) + }) + .addEndpoint("GET", "/users/{id}", { + params: PathIdSchema, // ✅ params is required when schema provided + response: UserSchema + }) + .addEndpoint("POST", "/users", { + body: CreateUserSchema, // ✅ body is required when schema provided + response: UserSchema + }); + +// Fully type-safe requests +const users = await api.request("GET /users"); +// Type: { id: number; name: string; email: string; }[] + +const user = await api.request("GET /users/{id}", { + params: { id: "123" } // ✅ TypeScript ensures correct type +}); +// Type: { id: number; name: string; email: string; } + +const created = await api.request("POST /users", { + body: { name: "Jane", email: "jane@example.com" } // ✅ Validated at runtime +}); +``` + +### Type-Safe Usage with Valibot + +```typescript +import { TypeFetcher } from "@tknf/typefetcher"; +import * as v from "valibot"; + +// Define Valibot schemas +const UserSchema = v.object({ + id: v.number(), + name: v.string(), + email: v.pipe(v.string(), v.email()), +}); + +const CreateUserSchema = v.object({ + name: v.string(), + email: v.pipe(v.string(), v.email()), +}); + +// Use directly with TypeFetcher +const api = client + .addEndpoint("GET", "/users", { + response: v.array(UserSchema) + }) + .addEndpoint("POST", "/users", { + body: CreateUserSchema, + response: UserSchema + }); + +// Same type-safe API as with Zod +const users = await api.request("GET /users"); +const newUser = await api.request("POST /users", { + body: { name: "John", email: "john@example.com" } +}); +``` + +## 📚 API Reference + +### TypeFetcher Constructor + +```typescript +new TypeFetcher(config?: TypeFetcherConfig) +``` + +**Parameters:** +- `config` (optional): Configuration object + +**TypeFetcherConfig:** +```typescript +interface TypeFetcherConfig { + readonly baseURL?: string; + readonly headers?: Record; + readonly timeout?: number; + readonly fetch?: typeof globalThis.fetch; // Custom fetch implementation +} +``` + +### addEndpoint + +```typescript +addEndpoint( + method: Method, + path: Path, + schema?: Schema +): TypeFetcher<...> +``` + +Registers a new endpoint with optional schema validation. + +**Parameters:** +- `method`: HTTP method (`"GET" | "POST" | "PUT" | "PATCH" | "DELETE"`) +- `path`: URL path with optional parameters (e.g., `"/users/{id}"`) +- `schema` (optional): Validation schema object + +**Schema Object:** +```typescript +interface EndpointSchema { + readonly params?: StandardSchemaV1; // Path parameters (formerly pathParams) + readonly query?: StandardSchemaV1; // Query parameters + readonly body?: StandardSchemaV1; // Request body + readonly response?: StandardSchemaV1; // Response validation +} +``` + +### request + +```typescript +request(key: K, options?: RequestOptions): Promise +``` + +Executes a request to a registered endpoint. + +**Parameters:** +- `key`: Endpoint key in format `"METHOD /path"` +- `options`: Request options (automatically typed based on schema) + +**Request Options (when schema is provided):** ```typescript -import { createClient } from "@tknf/typefechter"; +// Schema-specified parameters become required +{ + params: InferInput; // Required if params schema exists + query: InferInput; // Required if query schema exists + body: InferInput; // Required if body schema exists + headers?: Record; // Always optional +} +``` + +## 🔧 Advanced Usage + +### Node.js Usage + +For Node.js environments, you can provide a custom fetch implementation: + +```typescript +// Node.js 18+ (built-in fetch) +const client = new TypeFetcher({ + baseURL: "https://api.example.com" +}); + +// Node.js < 18 with node-fetch +import fetch from "node-fetch"; +const client = new TypeFetcher({ + baseURL: "https://api.example.com", + fetch: fetch as unknown as typeof globalThis.fetch +}); -type ErrorCodes = "BAD_REQUEST" | "DATABASE_ERROR" +// Using undici for better performance +import { fetch } from "undici"; +const client = new TypeFetcher({ + baseURL: "https://api.example.com", + fetch: fetch as unknown as typeof globalThis.fetch +}); +``` -const client = createClient(); +### Error Handling -interface IResponse { - items: { - name: string - }[] +```typescript +import { TypeFetcherError, ValidationError } from "@tknf/typefetcher"; + +try { + const user = await api.request("GET /users/{id}", { + params: { id: "123" } + }); +} catch (error) { + if (error instanceof TypeFetcherError) { + // HTTP errors (404, 500, etc.) + console.error(`HTTP ${error.status}: ${error.statusText}`); + console.error("Response data:", error.data); + } else if (error instanceof ValidationError) { + // Schema validation errors + console.error("Validation failed:", error.message); + console.error("Issues:", error.issues); + } else { + // Other errors + console.error("Unexpected error:", error); + } } +``` + +### Custom Headers per Request + +```typescript +const user = await api.request("GET /users/{id}", { + params: { id: "123" }, + headers: { + "Accept-Language": "en-US", + "Custom-Header": "value" + } +}); +``` + +### Query Parameters + +```typescript +const QuerySchema = z.object({ + page: z.string(), + limit: z.string(), + search: z.string().optional() +}); + +const api = client.addEndpoint("GET", "/users", { + query: QuerySchema, + response: z.array(UserSchema) +}); -// default request -const response = await client.get({ - url: "/", +const users = await api.request("GET /users", { query: { - q: "dog" + page: "1", + limit: "10", + search: "john" } }); +``` + +### Schema Transformations -console.log(response.items); // items: IResponse["items"] +Zod and Valibot schemas with transformations work seamlessly: +```typescript +const TransformSchema = z.object({ + id: z.string().transform(val => val.toUpperCase()) +}); -// safe request -const [err, res] = await client.get({ - url: "/", - safe: true -}) +const api = client.addEndpoint("GET", "/items/{id}", { + params: TransformSchema +}); -if (!err) { - console.log(res); // IResponse -} else { - console.log(err, res); // RequestError, null -} +// Input is transformed before making the request +await api.request("GET /items/{id}", { + params: { id: "abc" } // Becomes "ABC" in the actual URL +}); ``` -### Configuration +## 🌟 Why TypeFetcher? + +### Standard Schema Native + +Unlike other API clients that require adapters or wrappers, TypeFetcher natively supports any [Standard Schema](https://standardschema.dev/) compliant library: ```typescript -createClient(config: ClientConfig); +// ❌ Other libraries require adapters +const schema = someAdapter(z.string()); + +// ✅ TypeFetcher uses schemas directly +const schema = z.string(); // Works with Zod 3.25.0+ +const schema = v.string(); // Works with Valibot 1.0.0+ +``` + +### Excellent TypeScript Integration -interface ClientConfig { - auth?: { - username: string; - password: string; - }; - baseURL?: string; - headers?: Record; - maxBodyLength?: number; - maxContentLength?: number; +- **Required Parameters**: Schema-specified parameters become required in TypeScript +- **Type Inference**: Full type inference from schemas to response types +- **Autocomplete**: Rich IDE support with parameter suggestions + +### Minimal Bundle Size + +- Zero runtime dependencies (except peer dependencies) +- Tree-shakable exports +- Only import what you use + +## 🔍 Examples + +### REST API Client + +```typescript +import { TypeFetcher } from "@tknf/typefetcher"; +import { z } from "zod"; + +const PostSchema = z.object({ + id: z.number(), + title: z.string(), + body: z.string(), + userId: z.number() +}); + +class BlogAPI { + private client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com" + }); + + private api = this.client + .addEndpoint("GET", "/posts", { + response: z.array(PostSchema) + }) + .addEndpoint("GET", "/posts/{id}", { + params: z.object({ id: z.string() }), + response: PostSchema + }) + .addEndpoint("POST", "/posts", { + body: z.object({ + title: z.string(), + body: z.string(), + userId: z.number() + }), + response: PostSchema + }); + + async getAllPosts() { + return this.api.request("GET /posts"); + } + + async getPost(id: string) { + return this.api.request("GET /posts/{id}", { params: { id } }); + } + + async createPost(post: { title: string; body: string; userId: number }) { + return this.api.request("POST /posts", { body: post }); + } } ``` -`ErrorCodes` is optional TypeScript args. -If your request return some error codes, `err.code` will be the type you defined. `typefetcher` can read the property `code`, `err.code`, and `error.code` of the response object when it throws an error. \ No newline at end of file +### GraphQL-like Type Safety + +```typescript +// Define your API schema once +const api = client + .addEndpoint("GET", "/users/{id}/profile", { + params: z.object({ id: z.string() }), + response: z.object({ + user: UserSchema, + preferences: PreferencesSchema, + statistics: StatsSchema + }) + }); + +// Get fully typed response +const profile = await api.request("GET /users/{id}/profile", { + params: { id: "123" } +}); + +// TypeScript knows the exact shape: +// profile.user.name +// profile.preferences.theme +// profile.statistics.loginCount +``` + +## 🛠️ Development + +```bash +# Install dependencies +npm install + +# Run tests +npm test + +# Run tests with coverage +npm run test:coverage + +# Type checking +npm run typecheck + +# Linting +npm run lint + +# Build +npm run build +``` + +## 📋 Requirements + +- **Node.js**: 16.x or higher +- **TypeScript**: 5.x or higher +- **Zod**: 3.25.0+ (if using Zod) +- **Valibot**: 1.0.0+ (if using Valibot) + +## 📄 License + +MIT License - see [LICENSE](LICENSE) for details. + +## 🤝 Contributing + +1. Fork the repository +2. Create a feature branch +3. Make your changes +4. Ensure tests pass: `pnpm run test` +5. Ensure linting passes: `pnpm run lint` +6. Submit a pull request + +## 👏 Acknowledgments + +- [Standard Schema](https://standardschema.dev/) specification +- [Zod](https://zod.dev/) and [Valibot](https://valibot.dev/) for schema validation +- [Hono](https://hono.dev/) and [Octokit](https://octokit.github.io/rest.js/) for API design inspiration diff --git a/biome.json b/biome.json index bae03ca..e938e9b 100644 --- a/biome.json +++ b/biome.json @@ -1,7 +1,7 @@ { "$schema": "https://biomejs.dev/schemas/2.0.0/schema.json", "files": { - "includes": ["src/**/*.ts", "tests/**/*.ts", "*.ts", "*.json"], + "includes": ["src/**/*.ts", "./*.ts", "*.json"], "experimentalScannerIgnores": ["dist", "node_modules", "coverage"] }, "vcs": { diff --git a/examples/basic-usage.ts b/examples/basic-usage.ts index e2568de..e81ee32 100644 --- a/examples/basic-usage.ts +++ b/examples/basic-usage.ts @@ -1,20 +1,18 @@ /** - * TypeFetcher基本的な使用例 + * TypeFetcher Basic Usage Examples * - * このファイルはTypeFetcherの基本的な使い方を示すサンプルです。 - * 実際のプロジェクトでは、Zodなどのスキーマライブラリと組み合わせて使用します。 + * This file demonstrates basic usage patterns for TypeFetcher. + * Zod 3.25.0+ / Valibot 1.0+ are Standard Schema compliant, so they can be used directly. */ -import { TypeFetcher, createStandardSchemaFromZod } from "../dist"; - -// Zodがインストールされている場合の例(実際にはimportする) -declare const z: any; +import { TypeFetcher, TypeFetcherError, ValidationError } from "../dist"; +import { z } from "zod" /** - * 基本的な使用例(スキーマなし) + * Basic usage example (no schema validation) */ function basicExample() { - // クライアントを作成 + // Create client instance const client = new TypeFetcher({ baseURL: "https://jsonplaceholder.typicode.com", headers: { @@ -22,7 +20,7 @@ function basicExample() { }, }); - // エンドポイントを登録 + // Register endpoints const api = client .addEndpoint("GET", "/users") .addEndpoint("GET", "/users/{id}") @@ -30,7 +28,7 @@ function basicExample() { .addEndpoint("PUT", "/users/{id}") .addEndpoint("DELETE", "/users/{id}"); - // Octokitライクな呼び出し + // Octokit-style API methods return { async getUsers() { // TypeScript: Promise @@ -38,9 +36,9 @@ function basicExample() { }, async getUser(id: string) { - // パスパラメータを渡す + // Pass path parameters return await api.request("GET /users/{id}", { - pathParams: { id }, + params: { id }, }); }, @@ -52,24 +50,24 @@ function basicExample() { async updateUser(id: string, userData: any) { return await api.request("PUT /users/{id}", { - pathParams: { id }, + params: { id }, body: userData, }); }, async deleteUser(id: string) { return await api.request("DELETE /users/{id}", { - pathParams: { id }, + params: { id }, }); }, }; } /** - * スキーマ付きの型安全な使用例 + * Type-safe usage example with schema validation */ function typeSafeExample() { - // Zodスキーマを定義(実際のプロジェクトでzodを使用) + // Define Zod schemas (Zod 3.25.0+ is Standard Schema compliant) const UserSchema = z.object({ id: z.number(), name: z.string(), @@ -87,55 +85,55 @@ function typeSafeExample() { id: z.string(), }); - // クライアントを作成 + // Create client instance const client = new TypeFetcher({ baseURL: "https://jsonplaceholder.typicode.com", }); - // スキーマ付きでエンドポイントを登録 + // Register endpoints with schema validation const api = client .addEndpoint("GET", "/users", { - response: createStandardSchemaFromZod(z.array(UserSchema)), + response: z.array(UserSchema), }) .addEndpoint("GET", "/users/{id}", { - pathParams: createStandardSchemaFromZod(PathIdSchema), - response: createStandardSchemaFromZod(UserSchema), + pathParams: PathIdSchema, + response: UserSchema, }) .addEndpoint("POST", "/users", { - body: createStandardSchemaFromZod(CreateUserSchema), - response: createStandardSchemaFromZod(UserSchema), + body: CreateUserSchema, + response: UserSchema, }) .addEndpoint("PUT", "/users/{id}", { - pathParams: createStandardSchemaFromZod(PathIdSchema), - body: createStandardSchemaFromZod(CreateUserSchema), - response: createStandardSchemaFromZod(UserSchema), + pathParams: PathIdSchema, + body: CreateUserSchema, + response: UserSchema, }); return { async getUsers() { // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }[]> - // 実行時にレスポンスが検証される + // Response is validated at runtime return await api.request("GET /users"); }, async getUser(id: string) { - // pathParamsが型チェック・実行時検証される + // params are type-checked and validated at runtime // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }> return await api.request("GET /users/{id}", { - pathParams: { id }, // string型が期待される + params: { id } }); }, async createUser(userData: { name: string; email: string; username: string }) { - // bodyが型チェック・実行時検証される + // body is type-checked and validated at runtime return await api.request("POST /users", { - body: userData, // CreateUserSchemaの型が期待される + body: userData, // Expects CreateUserSchema type }); }, async updateUser(id: string, userData: { name: string; email: string; username: string }) { return await api.request("PUT /users/{id}", { - pathParams: { id }, + params: { id }, body: userData, }); }, @@ -143,7 +141,7 @@ function typeSafeExample() { } /** - * エラーハンドリングの例 + * Error handling example */ async function errorHandlingExample() { const client = new TypeFetcher({ @@ -154,24 +152,24 @@ async function errorHandlingExample() { try { const user = await api.request("GET /users/{id}", { - pathParams: { id: "123" }, + params: { id: "123" }, }); console.log(user); } catch (error) { if (error instanceof TypeFetcherError) { - // HTTPエラー(404, 500など) + // HTTP errors (404, 500, etc.) console.error(`HTTP Error: ${error.status} ${error.statusText}`); console.error("Response data:", error.data); } else if (error instanceof ValidationError) { - // スキーマ検証エラー + // Schema validation errors console.error("Validation Error:", error.message); console.error("Issues:", error.issues); } else { - // その他のエラー + // Other errors console.error("Unexpected error:", error); } } } -// 使用例のエクスポート +// Export usage examples export { basicExample, typeSafeExample, errorHandlingExample }; diff --git a/examples/nodejs-usage.ts b/examples/nodejs-usage.ts new file mode 100644 index 0000000..1f16458 --- /dev/null +++ b/examples/nodejs-usage.ts @@ -0,0 +1,88 @@ +/** + * TypeFetcher Node.js Usage Examples + * + * Shows how to use TypeFetcher in Node.js environments + */ + +import { TypeFetcher } from "../dist"; +import { z } from "zod"; + +/** + * Node.js 18+ usage (built-in fetch) + */ +function nodeJsModernExample() { + // Node.js 18+ has built-in fetch, so no additional config needed + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + const api = client.addEndpoint("GET", "/users/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + name: z.string(), + email: z.string(), + }), + }); + + return { + async getUser(id: string) { + return await api.request("GET /users/{id}", { + params: { id }, + }); + }, + }; +} + +/** + * Node.js with custom fetch implementation + */ +async function nodeJsCustomFetchExample() { + // For Node.js < 18 or custom fetch implementation + const { default: nodeFetch } = await import("node-fetch"); + + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + fetch: nodeFetch as unknown as typeof globalThis.fetch, + }); + + const api = client.addEndpoint("GET", "/users/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + name: z.string(), + email: z.string(), + }), + }); + + return { + async getUser(id: string) { + return await api.request("GET /users/{id}", { + params: { id }, + }); + }, + }; +} + +/** + * Using with undici (another fetch implementation) + */ +async function nodeJsUndiciExample() { + // Using undici as fetch implementation + const { fetch } = await import("undici"); + + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + fetch: fetch as unknown as typeof globalThis.fetch, + }); + + const api = client.addEndpoint("GET", "/users"); + + return { + async getUsers() { + return await api.request("GET /users"); + }, + }; +} + +export { nodeJsModernExample, nodeJsCustomFetchExample, nodeJsUndiciExample }; diff --git a/examples/signal-and-raw-usage.ts b/examples/signal-and-raw-usage.ts new file mode 100644 index 0000000..ff72b75 --- /dev/null +++ b/examples/signal-and-raw-usage.ts @@ -0,0 +1,277 @@ +/** + * TypeFetcher AbortSignal and ~raw Response Examples + * + * This file demonstrates how to use AbortSignal for request cancellation + * and how to access raw response data through the ~raw property. + */ + +import { TypeFetcher, TypeFetcherError } from "../dist"; +import { z } from "zod"; + +/** + * AbortSignal usage example for request cancellation + */ +async function abortSignalExample() { + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + const api = client.addEndpoint("GET", "/posts/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + title: z.string(), + body: z.string(), + userId: z.number(), + }), + }); + + // Create an AbortController for cancellation + const controller = new AbortController(); + + // Cancel the request after 1 second + setTimeout(() => { + controller.abort(); + console.log("Request cancelled"); + }, 1000); + + try { + const post = await api.request("GET /posts/{id}", { + params: { id: "1" }, + signal: controller.signal, // Pass the abort signal + }); + console.log("Post received:", post); + } catch (error) { + if (error instanceof Error && error.name === "AbortError") { + console.log("Request was cancelled"); + } else { + console.error("Request failed:", error); + } + } +} + +/** + * Raw response access example using ~raw property + */ +async function rawResponseExample() { + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + const api = client.addEndpoint("GET", "/posts/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + title: z.string(), + body: z.string(), + userId: z.number(), + }), + }); + + try { + // Use regular request method - it now includes ~raw property + const result = await api.request("GET /posts/{id}", { + params: { id: "1" }, + }); + + // Access parsed, validated data directly + console.log("Post ID:", result.id); + console.log("Post title:", result.title); + + // Access raw response metadata through ~raw property + console.log("Response status:", result["~raw"].status); + console.log("Response headers:"); + for (const [key, value] of result["~raw"].headers.entries()) { + console.log(` ${key}: ${value}`); + } + + // Check response timing and other metadata + console.log("Response URL:", result["~raw"].url); + console.log("Response type:", result["~raw"].type); + console.log("Response redirected:", result["~raw"].redirected); + + // You can also access the raw body again if needed + // Note: response.clone() is used internally so this won't conflict + const rawText = await result["~raw"].text(); + console.log("Raw response body length:", rawText.length); + } catch (error) { + console.error("Request failed:", error); + } +} + +/** + * Combined example with both signal and ~raw response access + */ +async function combinedExample() { + const client = new TypeFetcher({ + baseURL: "https://api.github.com", + headers: { + "User-Agent": "TypeFetcher Example", + }, + }); + + const api = client.addEndpoint("GET", "/users/{username}", { + params: z.object({ username: z.string() }), + response: z.object({ + id: z.number(), + login: z.string(), + name: z.string().nullable(), + public_repos: z.number(), + followers: z.number(), + }), + }); + + const controller = new AbortController(); + + // Set up a timeout for demonstration + setTimeout(() => { + controller.abort(); + }, 5000); // 5 second timeout + + try { + const result = await api.request("GET /users/{username}", { + params: { username: "octocat" }, + signal: controller.signal, + headers: { + "Accept": "application/vnd.github.v3+json", + }, + }); + + console.log("GitHub user:", result.login); + console.log("Name:", result.name); + console.log("Public repos:", result.public_repos); + + // Check rate limiting headers through ~raw property + const rateLimitRemaining = result["~raw"].headers.get("x-ratelimit-remaining"); + const rateLimitReset = result["~raw"].headers.get("x-ratelimit-reset"); + + console.log("Rate limit remaining:", rateLimitRemaining); + if (rateLimitReset) { + const resetDate = new Date(parseInt(rateLimitReset) * 1000); + console.log("Rate limit resets at:", resetDate.toISOString()); + } + + // Check if response was cached + const cacheStatus = result["~raw"].headers.get("x-served-by"); + if (cacheStatus) { + console.log("Served by cache:", cacheStatus); + } + } catch (error) { + if (error instanceof Error && error.name === "AbortError") { + console.log("Request was cancelled due to timeout"); + } else if (error instanceof TypeFetcherError) { + console.error(`GitHub API error: ${error.status} ${error.statusText}`); + console.error("Error data:", error.data); + } else { + console.error("Unexpected error:", error); + } + } +} + +/** + * Long-polling example with cancellation + */ +async function longPollingExample() { + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + timeout: 30000, // 30 second timeout + }); + + const api = client.addEndpoint("GET", "/events", { + query: z.object({ + since: z.string().optional(), + timeout: z.string().optional(), + }), + response: z.array(z.object({ + id: z.string(), + type: z.string(), + timestamp: z.string(), + })), + }); + + const controller = new AbortController(); + + // Cancel if user presses Ctrl+C or after 25 seconds + const cancelTimeout = setTimeout(() => { + controller.abort(); + console.log("Long polling cancelled due to timeout"); + }, 25000); + + try { + console.log("Starting long polling for events..."); + + const result = await api.request("GET /events", { + query: { + timeout: "30", // Server-side timeout + }, + signal: controller.signal, + }); + + clearTimeout(cancelTimeout); + + console.log("Received events:", result.length); + result.forEach(event => { + console.log(`Event ${event.id}: ${event.type} at ${event.timestamp}`); + }); + + // Check if the connection was kept alive through ~raw property + const connection = result["~raw"].headers.get("connection"); + console.log("Connection:", connection); + } catch (error) { + clearTimeout(cancelTimeout); + + if (error instanceof Error && error.name === "AbortError") { + console.log("Long polling was cancelled"); + } else { + console.error("Long polling failed:", error); + } + } +} + +/** + * Example showing type inference with ~raw property + */ +async function typeInferenceExample() { + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + const api = client.addEndpoint("GET", "/posts/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + title: z.string(), + body: z.string(), + userId: z.number(), + }), + }); + + // TypeScript knows the exact shape of the response + const post = await api.request("GET /posts/{id}", { + params: { id: "1" }, + }); + + // All these have full type inference: + console.log("Post ID:", post.id); // number + console.log("Post title:", post.title); // string + console.log("User ID:", post.userId); // number + + // Raw response access also has proper typing: + console.log("Status:", post["~raw"].status); // number + console.log("Headers:", post["~raw"].headers); // Headers object + console.log("Content-Type:", post["~raw"].headers.get("content-type")); // string | null + + // The ~raw property doesn't interfere with the main data structure + const { "~raw": rawResponse, ...postData } = post; + console.log("Clean post data:", postData); // { id: number, title: string, body: string, userId: number } + console.log("Raw response status:", rawResponse.status); // number +} + +// Export usage examples +export { + abortSignalExample, + rawResponseExample, + combinedExample, + longPollingExample, + typeInferenceExample, +}; diff --git a/examples/valibot-usage.ts b/examples/valibot-usage.ts new file mode 100644 index 0000000..4abaf2c --- /dev/null +++ b/examples/valibot-usage.ts @@ -0,0 +1,86 @@ +/** + * TypeFetcher Valibot Usage Example + * + * Valibot 1.0+ is Standard Schema compliant, so it can be used directly. + */ + +import { TypeFetcher } from "../dist"; +import * as v from "valibot"; + +/** + * Example using Valibot schemas directly + */ +function valibotDirectExample() { + // Define Valibot schemas (Valibot 1.0+ is Standard Schema compliant) + const UserSchema = v.object({ + id: v.number(), + name: v.string(), + email: v.pipe(v.string(), v.email()), + username: v.string(), + }); + + const CreateUserSchema = v.object({ + name: v.string(), + email: v.pipe(v.string(), v.email()), + username: v.string(), + }); + + const PathIdSchema = v.object({ + id: v.string(), + }); + + // Create client instance + const client = new TypeFetcher({ + baseURL: "https://jsonplaceholder.typicode.com", + }); + + // Register endpoints using schemas directly + const api = client + .addEndpoint("GET", "/users", { + response: v.array(UserSchema), + }) + .addEndpoint("GET", "/users/{id}", { + pathParams: PathIdSchema, + response: UserSchema, + }) + .addEndpoint("POST", "/users", { + body: CreateUserSchema, + response: UserSchema, + }) + .addEndpoint("PUT", "/users/{id}", { + pathParams: PathIdSchema, + body: CreateUserSchema, + response: UserSchema, + }); + + return { + async getUsers() { + // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }[]> + return await api.request("GET /users"); + }, + + async getUser(id: string) { + // params are type-checked and validated at runtime + // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }> + return await api.request("GET /users/{id}", { + params: { id } + }); + }, + + async createUser(userData: { name: string; email: string; username: string }) { + // body is type-checked and validated at runtime + return await api.request("POST /users", { + body: userData, + }); + }, + + async updateUser(id: string, userData: { name: string; email: string; username: string }) { + return await api.request("PUT /users/{id}", { + params: { id }, + body: userData, + }); + }, + }; +} + +export { valibotDirectExample }; diff --git a/package.json b/package.json index 031e04a..5a4b4b7 100644 --- a/package.json +++ b/package.json @@ -29,9 +29,9 @@ "types": "dist/index.d.ts", "exports": { ".": { - "types": "./index.d.ts", - "import": "./index.js", - "require": "./index.cjs" + "types": "./dist/index.d.ts", + "import": "./dist/index.js", + "require": "./dist/index.cjs" } }, "files": [ @@ -39,17 +39,16 @@ ], "scripts": { "build": "tsup", - "test": "vitest", + "test": "vitest run", "test:coverage": "vitest run --coverage", - "test:watch": "vitest --watch", "lint": "biome lint", "format": "biome format", "typecheck": "tsc --noEmit", "prepublishOnly": "npm run build && npm run typecheck && npm run lint" }, "peerDependencies": { - "zod": "^3.0.0", - "valibot": "^1.0.0" + "valibot": "^1.0.0", + "zod": "^3.25.0" }, "peerDependenciesMeta": { "zod": { @@ -63,10 +62,13 @@ "@biomejs/biome": "^2.0.0", "@types/node": "^24.0.3", "@vitest/coverage-v8": "^3.2.4", - "ts-node": "^10.6.0", + "node-fetch": "^3.3.2", "tsup": "^8.5.0", "typescript": "^5.8.3", - "vitest": "^3.2.4" + "undici": "^7.10.0", + "valibot": "^1.1.0", + "vitest": "^3.2.4", + "zod": "^3.25.67" }, "dependencies": { "@standard-schema/spec": "^1.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3c44adf..51bf146 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,12 +11,6 @@ importers: '@standard-schema/spec': specifier: ^1.0.0 version: 1.0.0 - valibot: - specifier: ^1.0.0 - version: 1.1.0(typescript@5.8.3) - zod: - specifier: ^3.0.0 - version: 3.25.67 devDependencies: '@biomejs/biome': specifier: ^2.0.0 @@ -27,18 +21,27 @@ importers: '@vitest/coverage-v8': specifier: ^3.2.4 version: 3.2.4(vitest@3.2.4(@types/node@24.0.3)(jsdom@16.7.0)) - ts-node: - specifier: ^10.6.0 - version: 10.9.2(@types/node@24.0.3)(typescript@5.8.3) + node-fetch: + specifier: ^3.3.2 + version: 3.3.2 tsup: specifier: ^8.5.0 version: 8.5.0(postcss@8.5.6)(typescript@5.8.3) typescript: specifier: ^5.8.3 version: 5.8.3 + undici: + specifier: ^7.10.0 + version: 7.10.0 + valibot: + specifier: ^1.1.0 + version: 1.1.0(typescript@5.8.3) vitest: specifier: ^3.2.4 version: 3.2.4(@types/node@24.0.3)(jsdom@16.7.0) + zod: + specifier: ^3.25.67 + version: 3.25.67 packages: @@ -120,10 +123,6 @@ packages: cpu: [x64] os: [win32] - '@cspotcode/source-map-support@0.8.1': - resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==} - engines: {node: '>=12'} - '@esbuild/aix-ppc64@0.25.5': resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==} engines: {node: '>=18'} @@ -300,9 +299,6 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@jridgewell/trace-mapping@0.3.9': - resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==} - '@pkgjs/parseargs@0.11.0': resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} @@ -414,18 +410,6 @@ packages: resolution: {integrity: sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==} engines: {node: '>= 6'} - '@tsconfig/node10@1.0.11': - resolution: {integrity: sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw==} - - '@tsconfig/node12@1.0.11': - resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==} - - '@tsconfig/node14@1.0.3': - resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==} - - '@tsconfig/node16@1.0.4': - resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==} - '@types/chai@5.2.2': resolution: {integrity: sha512-8kB30R7Hwqf40JPiKhVzodJs2Qc1ZJ5zuT3uzw5Hq/dhNCl3G3l83jfpdI1e20BP348+fV7VIL/+FxaXkqBmWg==} @@ -490,10 +474,6 @@ packages: resolution: {integrity: sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==} engines: {node: '>=0.4.0'} - acorn-walk@8.3.4: - resolution: {integrity: sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g==} - engines: {node: '>=0.4.0'} - acorn@7.4.1: resolution: {integrity: sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==} engines: {node: '>=0.4.0'} @@ -527,9 +507,6 @@ packages: any-promise@1.3.0: resolution: {integrity: sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==} - arg@4.1.3: - resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==} - assertion-error@2.0.1: resolution: {integrity: sha512-Izi8RQcffqCeNVgFigKli1ssklIbpHnCYc6AknXGYoB6grJqyeby7jv12JUQgmTAnIDnbck1uxksT4dzN3PWBA==} engines: {node: '>=12'} @@ -597,9 +574,6 @@ packages: resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==} engines: {node: ^14.18.0 || >=16.10.0} - create-require@1.1.1: - resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} - cross-spawn@7.0.6: resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} engines: {node: '>= 8'} @@ -614,6 +588,10 @@ packages: resolution: {integrity: sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==} engines: {node: '>=8'} + data-uri-to-buffer@4.0.1: + resolution: {integrity: sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==} + engines: {node: '>= 12'} + data-urls@2.0.0: resolution: {integrity: sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==} engines: {node: '>=10'} @@ -638,10 +616,6 @@ packages: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} - diff@4.0.2: - resolution: {integrity: sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==} - engines: {node: '>=0.3.1'} - domexception@2.0.1: resolution: {integrity: sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==} engines: {node: '>=8'} @@ -717,6 +691,10 @@ packages: picomatch: optional: true + fetch-blob@3.2.0: + resolution: {integrity: sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==} + engines: {node: ^12.20 || >= 14.13} + fix-dts-default-cjs-exports@1.0.1: resolution: {integrity: sha512-pVIECanWFC61Hzl2+oOCtoJ3F17kglZC/6N94eRWycFgBH35hHx0Li604ZIzhseh97mf2p0cv7vVrOZGoqhlEg==} @@ -728,6 +706,10 @@ packages: resolution: {integrity: sha512-q5YBMeWy6E2Un0nMGWMgI65MAKtaylxfNJGJxpGh45YDciZB4epbWpaAfImil6CPAPTYB4sh0URQNDRIZG5F2w==} engines: {node: '>= 6'} + formdata-polyfill@4.0.10: + resolution: {integrity: sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==} + engines: {node: '>=12.20.0'} + fsevents@2.3.3: resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} @@ -865,9 +847,6 @@ packages: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} - make-error@1.3.6: - resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==} - math-intrinsics@1.1.0: resolution: {integrity: sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==} engines: {node: '>= 0.4'} @@ -902,6 +881,15 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + node-domexception@1.0.0: + resolution: {integrity: sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==} + engines: {node: '>=10.5.0'} + deprecated: Use your platform's native DOMException instead + + node-fetch@3.3.2: + resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} + engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + nwsapi@2.2.20: resolution: {integrity: sha512-/ieB+mDe4MrrKMT8z+mQL8klXydZWGR5Dowt4RAGKbJ3kIGEx3X4ljUo+6V73IXtUPWgfOlU5B9MlGxFO5T+cA==} @@ -1119,20 +1107,6 @@ packages: ts-interface-checker@0.1.13: resolution: {integrity: sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==} - ts-node@10.9.2: - resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} - hasBin: true - peerDependencies: - '@swc/core': '>=1.2.50' - '@swc/wasm': '>=1.2.50' - '@types/node': '*' - typescript: '>=2.7' - peerDependenciesMeta: - '@swc/core': - optional: true - '@swc/wasm': - optional: true - tsup@8.5.0: resolution: {integrity: sha512-VmBp77lWNQq6PfuMqCHD3xWl22vEoWsKajkF8t+yMBawlUS8JzEI+vOVMeuNZIuMML8qXRizFKi9oD5glKQVcQ==} engines: {node: '>=18'} @@ -1163,6 +1137,10 @@ packages: undici-types@7.8.0: resolution: {integrity: sha512-9UJ2xGDvQ43tYyVMpuHlsgApydB8ZKfVYTsLDhXkFL/6gfkp+U8xTGdh8pMJv1SpZna0zxG1DwsKZsreLbXBxw==} + undici@7.10.0: + resolution: {integrity: sha512-u5otvFBOBZvmdjWLVW+5DAc9Nkq8f24g0O9oY7qw2JVIF1VocIFoyz9JFkuVOS2j41AufeO0xnlweJ2RLT8nGw==} + engines: {node: '>=20.18.1'} + universalify@0.2.0: resolution: {integrity: sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==} engines: {node: '>= 4.0.0'} @@ -1170,9 +1148,6 @@ packages: url-parse@1.5.10: resolution: {integrity: sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==} - v8-compile-cache-lib@3.0.1: - resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==} - valibot@1.1.0: resolution: {integrity: sha512-Nk8lX30Qhu+9txPYTwM0cFlWLdPFsFr6LblzqIySfbZph9+BFsAHsNvHOymEviUepeIW6KFHzpX8TKhbptBXXw==} peerDependencies: @@ -1262,6 +1237,10 @@ packages: resolution: {integrity: sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==} engines: {node: '>=10'} + web-streams-polyfill@3.3.3: + resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} + engines: {node: '>= 8'} + webidl-conversions@4.0.2: resolution: {integrity: sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==} @@ -1322,10 +1301,6 @@ packages: xmlchars@2.2.0: resolution: {integrity: sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==} - yn@3.1.1: - resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==} - engines: {node: '>=6'} - zod@3.25.67: resolution: {integrity: sha512-idA2YXwpCdqUSKRCACDE6ItZD9TZzy3OZMtpfLoh6oPR47lipysRrJfjzMqFxQ3uJuUPyUeWe1r9vLH33xO/Qw==} @@ -1386,10 +1361,6 @@ snapshots: '@biomejs/cli-win32-x64@2.0.0': optional: true - '@cspotcode/source-map-support@0.8.1': - dependencies: - '@jridgewell/trace-mapping': 0.3.9 - '@esbuild/aix-ppc64@0.25.5': optional: true @@ -1493,11 +1464,6 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@jridgewell/trace-mapping@0.3.9': - dependencies: - '@jridgewell/resolve-uri': 3.1.2 - '@jridgewell/sourcemap-codec': 1.5.0 - '@pkgjs/parseargs@0.11.0': optional: true @@ -1566,14 +1532,6 @@ snapshots: '@tootallnate/once@1.1.2': optional: true - '@tsconfig/node10@1.0.11': {} - - '@tsconfig/node12@1.0.11': {} - - '@tsconfig/node14@1.0.3': {} - - '@tsconfig/node16@1.0.4': {} - '@types/chai@5.2.2': dependencies: '@types/deep-eql': 4.0.2 @@ -1661,10 +1619,6 @@ snapshots: acorn-walk@7.2.0: optional: true - acorn-walk@8.3.4: - dependencies: - acorn: 8.15.0 - acorn@7.4.1: optional: true @@ -1689,8 +1643,6 @@ snapshots: any-promise@1.3.0: {} - arg@4.1.3: {} - assertion-error@2.0.1: {} ast-v8-to-istanbul@0.3.3: @@ -1755,8 +1707,6 @@ snapshots: consola@3.4.2: {} - create-require@1.1.1: {} - cross-spawn@7.0.6: dependencies: path-key: 3.1.1 @@ -1774,6 +1724,8 @@ snapshots: cssom: 0.3.8 optional: true + data-uri-to-buffer@4.0.1: {} + data-urls@2.0.0: dependencies: abab: 2.0.6 @@ -1793,8 +1745,6 @@ snapshots: delayed-stream@1.0.0: optional: true - diff@4.0.2: {} - domexception@2.0.1: dependencies: webidl-conversions: 5.0.0 @@ -1890,6 +1840,11 @@ snapshots: optionalDependencies: picomatch: 4.0.2 + fetch-blob@3.2.0: + dependencies: + node-domexception: 1.0.0 + web-streams-polyfill: 3.3.3 + fix-dts-default-cjs-exports@1.0.1: dependencies: magic-string: 0.30.17 @@ -1909,6 +1864,10 @@ snapshots: mime-types: 2.1.35 optional: true + formdata-polyfill@4.0.10: + dependencies: + fetch-blob: 3.2.0 + fsevents@2.3.3: optional: true @@ -2093,8 +2052,6 @@ snapshots: dependencies: semver: 7.7.2 - make-error@1.3.6: {} - math-intrinsics@1.1.0: optional: true @@ -2129,6 +2086,14 @@ snapshots: nanoid@3.3.11: {} + node-domexception@1.0.0: {} + + node-fetch@3.3.2: + dependencies: + data-uri-to-buffer: 4.0.1 + fetch-blob: 3.2.0 + formdata-polyfill: 4.0.10 + nwsapi@2.2.20: optional: true @@ -2341,24 +2306,6 @@ snapshots: ts-interface-checker@0.1.13: {} - ts-node@10.9.2(@types/node@24.0.3)(typescript@5.8.3): - dependencies: - '@cspotcode/source-map-support': 0.8.1 - '@tsconfig/node10': 1.0.11 - '@tsconfig/node12': 1.0.11 - '@tsconfig/node14': 1.0.3 - '@tsconfig/node16': 1.0.4 - '@types/node': 24.0.3 - acorn: 8.15.0 - acorn-walk: 8.3.4 - arg: 4.1.3 - create-require: 1.1.1 - diff: 4.0.2 - make-error: 1.3.6 - typescript: 5.8.3 - v8-compile-cache-lib: 3.0.1 - yn: 3.1.1 - tsup@8.5.0(postcss@8.5.6)(typescript@5.8.3): dependencies: bundle-require: 5.1.0(esbuild@0.25.5) @@ -2393,6 +2340,8 @@ snapshots: undici-types@7.8.0: {} + undici@7.10.0: {} + universalify@0.2.0: optional: true @@ -2402,8 +2351,6 @@ snapshots: requires-port: 1.0.0 optional: true - v8-compile-cache-lib@3.0.1: {} - valibot@1.1.0(typescript@5.8.3): optionalDependencies: typescript: 5.8.3 @@ -2493,6 +2440,8 @@ snapshots: xml-name-validator: 3.0.0 optional: true + web-streams-polyfill@3.3.3: {} + webidl-conversions@4.0.2: {} webidl-conversions@5.0.0: @@ -2552,6 +2501,4 @@ snapshots: xmlchars@2.2.0: optional: true - yn@3.1.1: {} - zod@3.25.67: {} diff --git a/src/adapters/valibot.ts b/src/adapters/valibot.ts deleted file mode 100644 index f629bf1..0000000 --- a/src/adapters/valibot.ts +++ /dev/null @@ -1,66 +0,0 @@ -import type { StandardSchemaV1 } from "../schema"; - -/** - * Valibot互換のスキーマインターフェース - */ -interface ValibotLike { - safeParse( - input: unknown - ): - | { success: true; output: Output; issues?: never } - | { success: false; issues: readonly ValibotIssue[]; output?: never }; - _types?: { - input: Input; - output: Output; - }; -} - -interface ValibotIssue { - message: string; - path?: readonly { key: string | number }[]; -} - -/** - * ValibotスキーマをStandard Schemaに変換 - */ -export function createStandardSchemaFromValibot( - valibotSchema: T -): StandardSchemaV1< - T["_types"] extends { input: infer I } ? I : unknown, - T["_types"] extends { output: infer O } ? O : unknown -> { - return { - "~standard": { - version: 1, - vendor: "valibot", - validate: (input: unknown) => { - const result = valibotSchema.safeParse(input); - if (result.success) { - return { - value: result.output as T["_types"] extends { output: infer O } ? O : unknown, - }; - } - return { - issues: result.issues?.map((issue) => ({ - message: issue.message, - path: issue.path?.map((segment) => segment.key), - })) || [{ message: "Validation failed" }], - }; - }, - types: { - input: undefined as T["_types"] extends { input: infer I } ? I : unknown, - output: undefined as T["_types"] extends { output: infer O } ? O : unknown, - }, - }, - }; -} - -/** - * 型安全なValibotアダプター(型推論のヘルパー) - */ -export const v = { - /** - * Valibotスキーマを Standard Schema に変換 - */ - toStandardSchema: createStandardSchemaFromValibot, -} as const; diff --git a/src/adapters/zod.ts b/src/adapters/zod.ts deleted file mode 100644 index f180f62..0000000 --- a/src/adapters/zod.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type { StandardSchemaV1 } from "../schema"; - -/** - * Zod互換のスキーマインターフェース - */ -interface ZodLike { - parse(input: unknown): Output; - safeParse(input: unknown): { success: true; data: Output } | { success: false; error: any }; - _input: Input; - _output: Output; -} - -/** - * ZodスキーマをStandard Schemaに変換 - */ -export function createStandardSchemaFromZod( - zodSchema: T -): StandardSchemaV1 { - return { - "~standard": { - version: 1, - vendor: "zod", - validate: (input: unknown) => { - const result = zodSchema.safeParse(input); - if (result.success) { - return { - value: result.data, - }; - } - return { - issues: (result as { success: false; error: any }).error.issues?.map((issue: any) => ({ - message: issue.message, - path: issue.path, - })) || [{ message: "Validation failed" }], - }; - }, - types: { - input: undefined as T["_input"], - output: undefined as T["_output"], - }, - }, - }; -} - -/** - * 型安全なZodアダプター(型推論のヘルパー) - */ -export const z = { - /** - * Zodスキーマを Standard Schema に変換 - */ - toStandardSchema: createStandardSchemaFromZod, -} as const; diff --git a/src/client.test.ts b/src/client.test.ts index d6629a7..32f4179 100644 --- a/src/client.test.ts +++ b/src/client.test.ts @@ -1,33 +1,28 @@ -import { beforeEach, describe, expect, test, vi } from "vitest"; -import { createStandardSchemaFromZod } from "./adapters/zod"; +import { describe, test, expect, vi, beforeEach } from "vitest"; import { TypeFetcher } from "./client"; import { TypeFetcherError, ValidationError } from "./types"; +import { z } from "zod"; // Mock fetch const mockFetch = vi.fn(); global.fetch = mockFetch; -// Zodライクなモックスキーマ -const createMockZodSchema = (validator: (input: unknown) => T) => ({ - parse: (input: unknown) => validator(input), - safeParse: (input: unknown) => { - try { - const data = validator(input); - return { success: true as const, data }; - } catch (error) { - return { - success: false as const, - error: { - issues: [{ message: "Validation failed", path: [] }], - }, - }; - } - }, - _input: undefined as unknown, - _output: undefined as T, -}); - -describe("TypeFetcher", () => { +// Helper to create mock response with clone method +const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean } = {}) => { + const response = { + ok: options.ok ?? (options.status === undefined || options.status < 400), + status: options.status ?? 200, + statusText: options.statusText ?? "OK", + headers: new Headers({ "content-type": "application/json", ...options.headers }), + json: vi.fn().mockResolvedValue(data), + text: vi.fn().mockResolvedValue(typeof data === "string" ? data : JSON.stringify(data)), + clone: vi.fn(), + }; + response.clone.mockReturnValue(response); + return response; +}; + +describe("TypeFetcher with ~raw Response", () => { let fetcher: TypeFetcher; beforeEach(() => { @@ -45,114 +40,110 @@ describe("TypeFetcher", () => { expect(newFetcher).toBeInstanceOf(TypeFetcher); }); - test("should make GET request without schema", async () => { + test("should make GET request without schema and include ~raw", async () => { const responseData = { id: 1, name: "John" }; - mockFetch.mockResolvedValueOnce({ - ok: true, - json: async () => responseData, - headers: new Headers({ "content-type": "application/json" }), - }); + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); const client = fetcher.addEndpoint("GET", "/users/{id}"); const result = await client.request("GET /users/{id}", { - pathParams: { id: "1" }, + params: { id: "1" }, }); + expect(result).toMatchObject(responseData); + expect(result["~raw"]).toBeDefined(); + expect(result["~raw"].status).toBe(200); expect(mockFetch).toHaveBeenCalledWith( "https://api.example.com/users/1", expect.objectContaining({ method: "GET", - headers: expect.objectContaining({ - "Content-Type": "application/json", - }), }) ); - expect(result).toEqual(responseData); }); test("should make POST request with body", async () => { - const requestBody = { name: "Jane", email: "jane@example.com" }; - const responseData = { id: 2, ...requestBody }; - - mockFetch.mockResolvedValueOnce({ - ok: true, - json: async () => responseData, - headers: new Headers({ "content-type": "application/json" }), - }); + const requestData = { name: "Jane", email: "jane@example.com" }; + const responseData = { id: 2, ...requestData }; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); const client = fetcher.addEndpoint("POST", "/users"); const result = await client.request("POST /users", { - body: requestBody, + body: requestData, }); + expect(result).toMatchObject(responseData); + expect(result["~raw"].status).toBe(200); expect(mockFetch).toHaveBeenCalledWith( "https://api.example.com/users", expect.objectContaining({ method: "POST", - body: JSON.stringify(requestBody), + body: JSON.stringify(requestData), }) ); - expect(result).toEqual(responseData); }); test("should validate request with schema", async () => { - const userSchema = createMockZodSchema((input: any) => { - if (typeof input?.name !== "string") throw new Error("Invalid name"); - return input as { name: string; email?: string }; + const userSchema = z.object({ + name: z.string(), + email: z.string().email(), }); - const responseData = { id: 1, name: "John" }; - mockFetch.mockResolvedValueOnce({ - ok: true, - json: async () => responseData, - headers: new Headers({ "content-type": "application/json" }), + const responseSchema = z.object({ + id: z.number(), + name: z.string(), + email: z.string(), }); + const requestData = { name: "Alice", email: "alice@example.com" }; + const responseData = { id: 3, ...requestData }; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); + const client = fetcher.addEndpoint("POST", "/users", { - body: createStandardSchemaFromZod(userSchema), + body: userSchema, + response: responseSchema, }); const result = await client.request("POST /users", { - body: { name: "John", email: "john@example.com" }, + body: requestData, }); - expect(result).toEqual(responseData); + // Type inference should work - these properties should be strongly typed + expect(result.id).toBe(3); + expect(result.name).toBe("Alice"); + expect(result.email).toBe("alice@example.com"); + expect(result["~raw"].status).toBe(200); }); test("should throw ValidationError for invalid request body", async () => { - const userSchema = createMockZodSchema((input: any) => { - if (typeof input?.name !== "string") throw new Error("Invalid name"); - return input; + const userSchema = z.object({ + name: z.string(), }); const client = fetcher.addEndpoint("POST", "/users", { - body: createStandardSchemaFromZod(userSchema), + body: userSchema, }); await expect( client.request("POST /users", { - body: { name: 123 }, // Invalid: name should be string + body: { name: 123 } as any, // Invalid input - name should be string, not number }) - ).rejects.toThrow(ValidationError); + ).rejects.toThrow("Request body validation failed"); }); test("should handle HTTP errors", async () => { const errorData = { error: "User not found" }; - mockFetch.mockResolvedValueOnce({ - ok: false, + mockFetch.mockResolvedValueOnce(createMockResponse(errorData, { status: 404, statusText: "Not Found", - json: async () => errorData, - headers: new Headers({ "content-type": "application/json" }), - }); + ok: false, + })); const client = fetcher.addEndpoint("GET", "/users/{id}"); try { await client.request("GET /users/{id}", { - pathParams: { id: "999" }, + params: { id: "999" }, }); expect.fail("Should have thrown TypeFetcherError"); } catch (error) { @@ -163,11 +154,7 @@ describe("TypeFetcher", () => { test("should handle query parameters", async () => { const responseData = [{ id: 1, name: "John" }]; - mockFetch.mockResolvedValueOnce({ - ok: true, - json: async () => responseData, - headers: new Headers({ "content-type": "application/json" }), - }); + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); const client = fetcher.addEndpoint("GET", "/users"); @@ -177,27 +164,28 @@ describe("TypeFetcher", () => { expect(mockFetch).toHaveBeenCalledWith( "https://api.example.com/users?page=1&limit=10", - expect.any(Object) + expect.objectContaining({ + method: "GET", + }) ); }); test("should throw error for non-existent endpoint", async () => { - await expect(fetcher.request("GET /non-existent" as any, {} as any)).rejects.toThrow( - "Endpoint not found" - ); + const client = fetcher.addEndpoint("GET", "/users"); + + await expect( + client.request("POST /users" as any, {}) + ).rejects.toThrow("Endpoint not found: POST /users"); }); test("should replace path parameters correctly", async () => { - mockFetch.mockResolvedValueOnce({ - ok: true, - json: async () => ({}), - headers: new Headers({ "content-type": "application/json" }), - }); + const responseData = { id: 1, name: "John" }; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); - const client = fetcher.addEndpoint("GET", "/users/{userId}/posts/{postId}"); + const client = fetcher.addEndpoint("GET", "/users/{id}/posts/{postId}"); - await client.request("GET /users/{userId}/posts/{postId}", { - pathParams: { userId: "123", postId: "456" }, + await client.request("GET /users/{id}/posts/{postId}", { + params: { id: "123", postId: "456" }, }); expect(mockFetch).toHaveBeenCalledWith( @@ -205,4 +193,336 @@ describe("TypeFetcher", () => { expect.any(Object) ); }); -}); + + test("should throw error for missing path parameter", async () => { + const client = fetcher.addEndpoint("GET", "/users/{id}"); + + // This error should occur before fetch is called + mockFetch.mockResolvedValue(createMockResponse({})); + + await expect( + client.request("GET /users/{id}", { + params: { notId: "value" } as any, // Wrong parameter name + }) + ).rejects.toThrow("Missing path parameter: id"); + }); + + test("should throw error for invalid request key format", async () => { + const client = fetcher.addEndpoint("GET", "/users"); + + await expect( + client.request("INVALID FORMAT" as any, {}) + ).rejects.toThrow("Endpoint not found: INVALID FORMAT"); + }); + + test("should handle non-JSON response", async () => { + const textResponse = "Plain text"; + mockFetch.mockResolvedValueOnce(createMockResponse(textResponse, { + headers: { "content-type": "text/plain" }, + })); + + const client = fetcher.addEndpoint("GET", "/text"); + + const result = await client.request("GET /text"); + + expect(result["~raw"].headers.get("content-type")).toBe("text/plain"); + }); + + test("should handle HTTP error with non-JSON response", async () => { + const errorText = "Internal Server Error"; + mockFetch.mockResolvedValueOnce(createMockResponse(errorText, { + status: 500, + statusText: "Internal Server Error", + headers: { "content-type": "text/plain" }, + ok: false, + })); + + const client = fetcher.addEndpoint("GET", "/error"); + + try { + await client.request("GET /error"); + expect.fail("Should have thrown TypeFetcherError"); + } catch (error) { + expect(error).toBeInstanceOf(TypeFetcherError); + expect((error as TypeFetcherError).status).toBe(500); + } + }); + + test("should handle HTTP error with unparseable response", async () => { + const mockResponse = createMockResponse("invalid json {", { + status: 500, + statusText: "Internal Server Error", + ok: false, + }); + mockResponse.json.mockRejectedValue(new Error("Parse error")); + mockFetch.mockResolvedValueOnce(mockResponse); + + const client = fetcher.addEndpoint("GET", "/error"); + + try { + await client.request("GET /error"); + expect.fail("Should have thrown TypeFetcherError"); + } catch (error) { + expect(error).toBeInstanceOf(TypeFetcherError); + expect((error as TypeFetcherError).status).toBe(500); + } + }); + + test("should validate response with schema", async () => { + const responseSchema = z.object({ + id: z.number(), + name: z.string(), + }); + + const responseData = { id: 1, name: "John" }; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); + + const client = fetcher.addEndpoint("GET", "/users/{id}", { + response: responseSchema, + }); + + const result = await client.request("GET /users/{id}", { + params: { id: "1" }, + }); + + expect(result.id).toBe(1); + expect(result.name).toBe("John"); + expect(result["~raw"].status).toBe(200); + }); + + test("should throw ValidationError for invalid response", async () => { + const responseSchema = z.object({ + id: z.number(), + name: z.string(), + }); + + const invalidResponse = { id: "not a number", name: "John" }; + mockFetch.mockResolvedValueOnce(createMockResponse(invalidResponse)); + + const client = fetcher.addEndpoint("GET", "/users/{id}", { + response: responseSchema, + }); + + await expect( + client.request("GET /users/{id}", { + params: { id: "1" }, + }) + ).rejects.toThrow("Response validation failed"); + }); + + test("should throw ValidationError for invalid path parameters", async () => { + const pathSchema = z.object({ + id: z.string().min(1), + }); + + const client = fetcher.addEndpoint("GET", "/users/{id}", { + params: pathSchema, + }); + + await expect( + client.request("GET /users/{id}", { + params: { id: "" }, // Invalid: empty string + }) + ).rejects.toThrow("Path parameters validation failed"); + }); + + test("should throw ValidationError for invalid query parameters", async () => { + const querySchema = z.object({ + page: z.string().min(1), + }); + + const client = fetcher.addEndpoint("GET", "/users", { + query: querySchema, + }); + + await expect( + client.request("GET /users", { + query: { page: "" }, // Invalid: empty string + }) + ).rejects.toThrow("Query parameters validation failed"); + }); + + test("should validate and use path parameters with schema", async () => { + const pathSchema = z.object({ + id: z.string().min(1), + }); + + const responseData = { id: 1, name: "John" }; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); + + const client = fetcher.addEndpoint("GET", "/users/{id}", { + params: pathSchema, + }); + + await client.request("GET /users/{id}", { + params: { id: "123" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users/123", + expect.any(Object) + ); + }); + + test("should validate and use query parameters with schema", async () => { + const querySchema = z.object({ + page: z.string(), + limit: z.string(), + }); + + const responseData = [{ id: 1, name: "John" }]; + mockFetch.mockResolvedValueOnce(createMockResponse(responseData)); + + const client = fetcher.addEndpoint("GET", "/users", { + query: querySchema, + }); + + await client.request("GET /users", { + query: { page: "1", limit: "10" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users?page=1&limit=10", + expect.any(Object) + ); + }); + + test("should pass AbortSignal to fetch request", async () => { + const controller = new AbortController(); + const signal = controller.signal; + + mockFetch.mockResolvedValue(createMockResponse({ id: 1, name: "John" })); + + const client = fetcher.addEndpoint("GET", "/users/{id}"); + + await client.request("GET /users/{id}", { + params: { id: "1" }, + signal, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users/1", + expect.objectContaining({ + signal, + }) + ); + }); + + test("should not include signal when not provided", async () => { + mockFetch.mockResolvedValue(createMockResponse({ data: "test" })); + + const client = fetcher.addEndpoint("GET", "/test"); + + await client.request("GET /test"); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/test", + expect.not.objectContaining({ + signal: expect.anything(), + }) + ); + }); + + test("should use custom fetch implementation", async () => { + const customFetch = vi.fn().mockResolvedValue(createMockResponse({ data: "custom" })); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + fetch: customFetch, + }); + + const api = client.addEndpoint("GET", "/custom"); + await api.request("GET /custom"); + + expect(customFetch).toHaveBeenCalledWith( + "https://api.example.com/custom", + expect.any(Object) + ); + }); + + test("should handle GET and DELETE methods without body", async () => { + mockFetch.mockResolvedValue(createMockResponse({ success: true })); + + const client = fetcher + .addEndpoint("GET", "/get-test") + .addEndpoint("DELETE", "/delete-test"); + + await client.request("GET /get-test"); + await client.request("DELETE /delete-test"); + + // Both calls should not include body in request + expect(mockFetch).toHaveBeenNthCalledWith(1, + "https://api.example.com/get-test", + expect.not.objectContaining({ + body: expect.anything(), + }) + ); + expect(mockFetch).toHaveBeenNthCalledWith(2, + "https://api.example.com/delete-test", + expect.not.objectContaining({ + body: expect.anything(), + }) + ); + }); + + test("should handle invalid request key format that passes initial check", async () => { + const client = fetcher.addEndpoint("GET", "/test"); + + // Mock endpoints directly to test parseRequestKey edge case + (client as any).endpoints = { + "INVALID": { method: "GET", path: "/test" } + }; + + await expect( + (client as any).request("INVALID", {}) + ).rejects.toThrow("Invalid request key format: INVALID"); + }); + + test("should handle error response parsing with text content", async () => { + const errorText = "Server Error"; + const mockResponse = createMockResponse(errorText, { + status: 500, + statusText: "Internal Server Error", + headers: { "content-type": "text/plain" }, + ok: false, + }); + + mockFetch.mockResolvedValueOnce(mockResponse); + + const client = fetcher.addEndpoint("GET", "/error"); + + try { + await client.request("GET /error"); + expect.fail("Should have thrown TypeFetcherError"); + } catch (error) { + expect(error).toBeInstanceOf(TypeFetcherError); + expect((error as TypeFetcherError).status).toBe(500); + expect((error as TypeFetcherError).data).toBe(errorText); + } + }); + + test("should handle request with all parameter types", async () => { + const responseData = { success: true }; + mockFetch.mockResolvedValue(createMockResponse(responseData)); + + const client = fetcher.addEndpoint("PUT", "/users/{id}"); + + await client.request("PUT /users/{id}", { + params: { id: "123" }, + query: { version: "v2" }, + body: { name: "Updated" }, + headers: { "X-Custom": "value" }, + }); + + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/users/123?version=v2", + expect.objectContaining({ + method: "PUT", + body: JSON.stringify({ name: "Updated" }), + headers: expect.objectContaining({ + "X-Custom": "value", + }), + }) + ); + }); +}); \ No newline at end of file diff --git a/src/client.ts b/src/client.ts index a360b62..c27bb3b 100644 --- a/src/client.ts +++ b/src/client.ts @@ -11,54 +11,97 @@ import type { import { TypeFetcherError, ValidationError } from "./types"; /** - * エンドポイントマップからリクエストオプションの型を生成 + * Get the appropriate fetch implementation for the current environment + * Priority: custom fetch > globalThis.fetch > global.fetch > throw error + */ +function getFetchImplementation(customFetch?: typeof globalThis.fetch): typeof globalThis.fetch { + // Use custom fetch if provided + if (customFetch) { + return customFetch; + } + + // Check for globalThis.fetch (modern browsers and Node.js 18+) + if (typeof globalThis !== "undefined" && globalThis.fetch) { + return globalThis.fetch.bind(globalThis); + } + + // Check for global.fetch (Node.js) + if (typeof global !== "undefined" && global.fetch) { + return global.fetch.bind(global); + } + + // No fetch available + throw new Error( + "fetch is not available. Please provide a fetch implementation in the config, " + + "upgrade to Node.js 18+, or install a fetch polyfill." + ); +} + +/** + * Generate request options type from endpoint map */ type RequestOptionsForEndpoint< T extends EndpointMap, K extends keyof T, -> = T[K] extends EndpointDefinition +> = T[K] extends EndpointDefinition ? Schema extends EndpointSchema - ? { - [P in keyof RequestOptions]: RequestOptions[P]; - } + ? RequestOptions : { - pathParams?: Record; - query?: Record; - body?: unknown; - headers?: Record; + readonly params?: Record; + readonly query?: Record; + readonly body?: unknown; + readonly headers?: Record; + readonly signal?: AbortSignal; } : { - pathParams?: Record; - query?: Record; - body?: unknown; - headers?: Record; + readonly params?: Record; + readonly query?: Record; + readonly body?: unknown; + readonly headers?: Record; + readonly signal?: AbortSignal; }; /** - * エンドポイントマップからレスポンス型を生成 + * Base response type with raw response access + */ +type BaseResponseWithRaw = T & { readonly "~raw": Response }; + +/** + * Generate response type from endpoint map with raw response access */ type ResponseForEndpoint< T extends EndpointMap, K extends keyof T, -> = T[K] extends EndpointDefinition +> = T[K] extends EndpointDefinition ? Schema extends EndpointSchema - ? ResponseType - : unknown - : unknown; + ? BaseResponseWithRaw> + : BaseResponseWithRaw + : BaseResponseWithRaw; +/** + * TypeScript-first API client with Standard Schema support + * Provides type-safe HTTP requests with runtime validation + */ export class TypeFetcher { private endpoints: T; private config: TypeFetcherConfig; + private fetch: typeof globalThis.fetch; constructor(config: TypeFetcherConfig = {}) { this.endpoints = {} as T; this.config = config; + this.fetch = getFetchImplementation(config.fetch); } /** - * エンドポイントを登録 + * Register a new endpoint with optional schema validation + * Returns a new TypeFetcher instance with the endpoint added to the type map */ - addEndpoint( + addEndpoint< + Method extends HttpMethod, + Path extends string, + Schema extends EndpointSchema | undefined = undefined, + >( method: Method, path: Path, schema?: Schema @@ -81,46 +124,48 @@ export class TypeFetcher { } /** - * リクエストを実行 + * Execute a request to a registered endpoint + * Validates request parameters and response data if schemas are provided */ - async request( + async request( key: K, options?: RequestOptionsForEndpoint - ): Promise>; - async request(key: string, options?: any): Promise; - async request( - key: K | string, - options: RequestOptionsForEndpoint | any = {} - ): Promise | any> { + ): Promise> { const endpoint = this.endpoints[key]; if (!endpoint) { - throw new Error(`Endpoint not found: ${key}`); + throw new Error(`Endpoint not found: ${String(key)}`); } - const parsed = this.parseRequestKey(key); + const parsed = this.parseRequestKey(String(key)); if (!parsed) { - throw new Error(`Invalid request key format: ${key}`); + throw new Error(`Invalid request key format: ${String(key)}`); } const [method, pathTemplate] = parsed; - const { pathParams, query, body, headers = {} } = options as any; + const { + params, + query, + body, + headers = {}, + signal, + } = (options || {}) as RequestOptionsForEndpoint; - // パスパラメータの検証と置換 + // Validate and replace path parameters let finalPath = pathTemplate; - if (pathParams) { - if (endpoint.schema?.pathParams) { - const validation = validateSync(endpoint.schema.pathParams, pathParams); + if (params) { + if (endpoint.schema?.params) { + const validation = validateSync(endpoint.schema.params, params); if (!validation.success) { throw new ValidationError(validation.issues || [], "Path parameters validation failed"); } finalPath = this.replacePath(pathTemplate, validation.data as Record); } else { - finalPath = this.replacePath(pathTemplate, pathParams as Record); + finalPath = this.replacePath(pathTemplate, params as Record); } } - // クエリパラメータの検証 - let validatedQuery: any; + // Validate query parameters + let validatedQuery: unknown; if (query) { if (endpoint.schema?.query) { const validation = validateSync(endpoint.schema.query, query); @@ -133,8 +178,8 @@ export class TypeFetcher { } } - // ボディの検証 - let validatedBody: any; + // Validate request body + let validatedBody: unknown; if (body) { if (endpoint.schema?.body) { const validation = validateSync(endpoint.schema.body, body); @@ -147,7 +192,7 @@ export class TypeFetcher { } } - // リクエストの実行 + // Execute HTTP request const url = new URL(finalPath, this.config.baseURL); if (validatedQuery) { Object.entries(validatedQuery).forEach(([key, value]) => { @@ -160,15 +205,19 @@ export class TypeFetcher { headers: { "Content-Type": "application/json", ...this.config.headers, - ...headers, + ...(headers as Record), }, + ...(signal && { signal }), }; if (validatedBody && method !== "GET" && method !== "DELETE") { requestInit.body = JSON.stringify(validatedBody); } - const response = await fetch(url.toString(), requestInit); + const response = await this.fetch(url.toString(), requestInit); + + // Clone response immediately before consuming body + const responseClone = response.clone(); if (!response.ok) { let errorData: unknown; @@ -183,7 +232,7 @@ export class TypeFetcher { throw new TypeFetcherError(response.status, response.statusText, undefined, errorData); } - // レスポンスの解析 + // Parse response based on content type const contentType = response.headers.get("content-type"); let responseData: unknown; if (contentType?.includes("application/json")) { @@ -192,24 +241,32 @@ export class TypeFetcher { responseData = await response.text(); } - // レスポンスの検証 + // Validate response data against schema if (endpoint.schema?.response) { const validation = validateSync(endpoint.schema.response, responseData); if (!validation.success) { throw new ValidationError(validation.issues || [], "Response validation failed"); } - return validation.data as ResponseForEndpoint; + return Object.assign(validation.data as any, { "~raw": responseClone }) as ResponseForEndpoint; } - return responseData as ResponseForEndpoint; + return Object.assign(responseData as any, { "~raw": responseClone }) as ResponseForEndpoint; } + /** + * Parse request key into HTTP method and path + * Expected format: "METHOD /path" + */ private parseRequestKey(key: string): [HttpMethod, string] | null { const match = key.match(/^(GET|POST|PUT|PATCH|DELETE) (.+)$/); if (!match) return null; return [match[1] as HttpMethod, match[2]]; } + /** + * Replace path template parameters with actual values + * Template format: "/users/{id}" becomes "/users/123" + */ private replacePath(template: string, params: Record): string { return template.replace(/\{([^}]+)\}/g, (_, key) => { const value = params[key]; diff --git a/src/index.ts b/src/index.ts index 292c317..7f17db8 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -// TypeFetcher API +// Main TypeFetcher API exports export { TypeFetcher } from "./client"; export type { HttpMethod, @@ -12,7 +12,7 @@ export type { } from "./types"; export { TypeFetcherError, ValidationError } from "./types"; -// Standard Schema +// Standard Schema integration exports export type { StandardSchemaV1, StandardSchemaResult, @@ -21,7 +21,3 @@ export type { InferOutput, } from "./schema"; export { validate, validateSync } from "./schema"; - -// アダプター -export { createStandardSchemaFromZod, z } from "./adapters/zod"; -export { createStandardSchemaFromValibot, v } from "./adapters/valibot"; diff --git a/src/raw-response.test.ts b/src/raw-response.test.ts new file mode 100644 index 0000000..259595a --- /dev/null +++ b/src/raw-response.test.ts @@ -0,0 +1,181 @@ +import { describe, test, expect, vi, beforeEach } from "vitest"; +import { TypeFetcher } from "./client"; +import { z } from "zod"; + +// Mock fetch for testing +const mockFetch = vi.fn(); +global.fetch = mockFetch; + +// Helper to create mock response with clone method +const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean } = {}) => { + const response = { + ok: options.ok ?? (options.status === undefined || options.status < 400), + status: options.status ?? 200, + statusText: options.statusText ?? "OK", + headers: new Headers({ "content-type": "application/json", ...options.headers }), + json: vi.fn().mockResolvedValue(data), + text: vi.fn().mockResolvedValue(typeof data === "string" ? data : JSON.stringify(data)), + clone: vi.fn(), + }; + response.clone.mockReturnValue(response); + return response; +}; + +describe("~raw Response Property", () => { + beforeEach(() => { + mockFetch.mockClear(); + }); + + test("should include ~raw property in response with schema", async () => { + const responseData = { id: 1, name: "John", email: "john@example.com" }; + mockFetch.mockResolvedValue(createMockResponse(responseData)); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/users/{id}", { + params: z.object({ id: z.string() }), + response: z.object({ + id: z.number(), + name: z.string(), + email: z.string(), + }), + }); + + const result = await api.request("GET /users/{id}", { + params: { id: "1" }, + }); + + // Check parsed data properties + expect(result.id).toBe(1); + expect(result.name).toBe("John"); + expect(result.email).toBe("john@example.com"); + + // Check ~raw property + expect(result["~raw"]).toBeDefined(); + expect(result["~raw"].status).toBe(200); + expect(result["~raw"].statusText).toBe("OK"); + }); + + test("should include ~raw property in response without schema", async () => { + const responseData = { anything: "goes", here: 123 }; + mockFetch.mockResolvedValue(createMockResponse(responseData)); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/anything"); + + const result = await api.request("GET /anything"); + + // Check that response includes both data and ~raw + expect(result).toMatchObject(responseData); + expect(result["~raw"]).toBeDefined(); + expect(result["~raw"].status).toBe(200); + }); + + test("should work with non-JSON response", async () => { + const textResponse = "Plain text response"; + mockFetch.mockResolvedValue(createMockResponse(textResponse, { + headers: { "content-type": "text/plain" }, + })); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/text"); + + const result = await api.request("GET /text"); + + // For text responses, the result is the text string with ~raw property added + expect(typeof result).toBe("object"); // Object.assign creates an object + expect(result["~raw"]).toBeDefined(); + expect(result["~raw"].headers.get("content-type")).toBe("text/plain"); + }); + + test("should work with AbortSignal", async () => { + const controller = new AbortController(); + const signal = controller.signal; + + const responseData = { message: "success" }; + mockFetch.mockResolvedValue(createMockResponse(responseData)); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("POST", "/data", { + body: z.object({ value: z.string() }), + response: z.object({ message: z.string() }), + }); + + const result = await api.request("POST /data", { + body: { value: "test" }, + signal, + }); + + // Verify signal was passed to fetch + expect(mockFetch).toHaveBeenCalledWith( + "https://api.example.com/data", + expect.objectContaining({ + signal, + }) + ); + + // Verify we get data with ~raw property + expect(result.message).toBe("success"); + expect(result["~raw"].status).toBe(200); + }); + + test("should work with custom headers", async () => { + const responseData = { data: "test" }; + mockFetch.mockResolvedValue(createMockResponse(responseData, { + headers: { "x-custom-header": "custom-value" }, + })); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/test"); + + const result = await api.request("GET /test", { + headers: { + "Accept": "application/json", + }, + }); + + expect(result["~raw"].headers.get("x-custom-header")).toBe("custom-value"); + }); + + test("should preserve response headers and metadata", async () => { + const responseData = { id: 1 }; + mockFetch.mockResolvedValue(createMockResponse(responseData, { + status: 201, + statusText: "Created", + headers: { + "location": "/users/1", + "x-ratelimit-remaining": "999", + }, + })); + + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("POST", "/users"); + + const result = await api.request("POST /users", { + body: { name: "John" }, + }); + + // Check that all response metadata is preserved + expect(result["~raw"].status).toBe(201); + expect(result["~raw"].statusText).toBe("Created"); + expect(result["~raw"].headers.get("location")).toBe("/users/1"); + expect(result["~raw"].headers.get("x-ratelimit-remaining")).toBe("999"); + }); +}); \ No newline at end of file diff --git a/src/schema.test.ts b/src/schema.test.ts index 0eca4d6..5d75be0 100644 --- a/src/schema.test.ts +++ b/src/schema.test.ts @@ -1,6 +1,5 @@ import { describe, expect, test } from "vitest"; -import { createStandardSchemaFromZod } from "./adapters/zod"; -import { validateSync } from "./schema"; +import { validate, validateSync } from "./schema"; describe("Standard Schema", () => { test("should validate with custom schema", () => { @@ -28,39 +27,129 @@ describe("Standard Schema", () => { expect(invalidResult.issues).toEqual([{ message: "Expected string" }]); }); - test("should work with Zod adapter", () => { - const mockZodSchema = { - parse: (input: unknown) => { - if (typeof input === "number" && input > 0) { - return input; - } - throw new Error("Must be positive number"); - }, - safeParse: (input: unknown) => { - try { - const data = mockZodSchema.parse(input); - return { success: true as const, data }; - } catch (error) { + test("should work with Standard Schema compliant numeric validation", () => { + const numberSchema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: (input: unknown) => { + if (typeof input === "number" && input > 0) { + return { value: input }; + } return { - success: false as const, - error: { - issues: [{ message: "Must be positive number", path: [] }], - }, + issues: [{ message: "Must be positive number" }], }; - } + }, }, - _input: undefined as unknown, - _output: undefined as number, }; - const standardSchema = createStandardSchemaFromZod(mockZodSchema); - - const validResult = validateSync(standardSchema, 42); + const validResult = validateSync(numberSchema, 42); expect(validResult.success).toBe(true); expect(validResult.data).toBe(42); - const invalidResult = validateSync(standardSchema, -1); + const invalidResult = validateSync(numberSchema, -1); expect(invalidResult.success).toBe(false); expect(invalidResult.issues?.[0]?.message).toBe("Must be positive number"); }); + + test("should handle async validation", async () => { + const asyncSchema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: async (input: unknown) => { + await new Promise((resolve) => setTimeout(resolve, 1)); + if (typeof input === "string") { + return { value: input.toLowerCase() }; + } + return { + issues: [{ message: "Expected string" }], + }; + }, + }, + }; + + const validResult = await validate(asyncSchema, "HELLO"); + expect(validResult.success).toBe(true); + expect(validResult.data).toBe("hello"); + + const invalidResult = await validate(asyncSchema, 123); + expect(invalidResult.success).toBe(false); + expect(invalidResult.issues).toEqual([{ message: "Expected string" }]); + }); + + test("should throw error when async schema is used with validateSync", () => { + const asyncSchema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: async (input: unknown) => { + return { value: input }; + }, + }, + }; + + expect(() => validateSync(asyncSchema, "test")).toThrow( + "Schema validation returned a Promise. Use validate() instead." + ); + }); + + test("should handle complex path structures in issues", () => { + const schema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: (_input: unknown) => { + return { + issues: [ + { + message: "Complex path error", + path: ["users", 0, { key: "profile" }, "name"], + }, + ], + }; + }, + }, + }; + + const result = validateSync(schema, {}); + expect(result.success).toBe(false); + expect(result.issues?.[0]?.path).toEqual(["users", 0, "profile", "name"]); + }); + + test("should handle missing issues in failure result", () => { + const schema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: (_input: unknown) => { + return { + issues: [], + }; + }, + }, + }; + + const result = validateSync(schema, {}); + expect(result.success).toBe(false); + expect(result.issues).toEqual([]); + }); + + test("should handle undefined issues in failure result", () => { + const schema = { + "~standard": { + version: 1 as const, + vendor: "test", + validate: (_input: unknown) => { + return { + issues: [], + }; + }, + }, + }; + + const result = validateSync(schema, {}); + expect(result.success).toBe(false); + expect(result.issues).toEqual([]); + }); }); diff --git a/src/schema.ts b/src/schema.ts index 1ce5efd..f1ffb4d 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -1,7 +1,7 @@ -// 公式Standard Schemaの型を使用 +// Import official Standard Schema types import type { StandardSchemaV1 } from "@standard-schema/spec"; -// 公式の結果型をエクスポート +// Re-export official Standard Schema types with aliases export type { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1Props, @@ -9,59 +9,67 @@ export type { StandardSchemaV1 as StandardSchemaTypes, } from "@standard-schema/spec"; -// 互換性のための結果型(簡素化したインターフェース) +/** + * Simplified validation result interface for better compatibility + * Provides a consistent interface across different schema libraries + */ export interface StandardSchemaResult { readonly success: boolean; readonly data?: Output; readonly issues?: readonly StandardSchemaIssue[]; } +/** + * Simplified validation issue interface + * Contains error message and optional path information + */ export interface StandardSchemaIssue { readonly message: string; readonly path?: readonly (string | number)[]; } /** - * Standard Schema から Input型を抽出(公式実装を使用) + * Extract input type from Standard Schema (using official implementation) */ export type InferInput = StandardSchemaV1.InferInput; /** - * Standard Schema から Output型を抽出(公式実装を使用) + * Extract output type from Standard Schema (using official implementation) */ export type InferOutput = StandardSchemaV1.InferOutput; /** - * Standard Schema の検証関数を呼び出すヘルパー - */ -/** - * Standard Schemaの結果を簡素化した形に変換 + * Convert Standard Schema result to simplified format + * Transforms the official result format to our consistent interface */ function convertResult( result: StandardSchemaV1.Result ): StandardSchemaResult { if ("value" in result) { - // 成功ケース + // Success case return { success: true, data: result.value, }; } - // 失敗ケース + // Failure case return { success: false, issues: result.issues?.map((issue: StandardSchemaV1.Issue) => ({ message: issue.message, - path: issue.path?.map((segment: any) => - typeof segment === "object" && "key" in segment ? segment.key : segment + path: issue.path?.map((segment: unknown) => + typeof segment === "object" && segment !== null && "key" in segment + ? segment.key + : segment ) as (string | number)[], })) || [], }; } /** - * Standard Schema の検証関数を呼び出すヘルパー + * Async validation helper for Standard Schema + * Validates input against schema and returns simplified result */ export async function validate( schema: T, @@ -72,7 +80,9 @@ export async function validate( } /** - * 同期版の検証関数 + * Synchronous validation helper for Standard Schema + * Validates input against schema and returns simplified result + * Throws error if schema validation is async */ export function validateSync( schema: T, diff --git a/src/types.ts b/src/types.ts index 551af44..88f9c32 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,36 +1,37 @@ import type { StandardSchemaV1, InferInput, InferOutput } from "./schema"; /** - * HTTPメソッド + * Supported HTTP methods for API requests */ export type HttpMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE"; /** - * パスパラメータを抽出する型 + * Extract path parameters from URL template * "/users/{id}" -> { id: string } */ export type ExtractPathParams = T extends `${infer _Start}{${infer Param}}${infer Rest}` ? { [K in Param]: string } & ExtractPathParams - : {}; + : Record; /** - * エンドポイントのスキーマ定義 + * Schema definition for endpoint validation + * Defines validation schemas for different parts of the request/response */ export interface EndpointSchema { - readonly pathParams?: StandardSchemaV1; + readonly params?: StandardSchemaV1; readonly query?: StandardSchemaV1; readonly body?: StandardSchemaV1; readonly response?: StandardSchemaV1; } /** - * エンドポイント定義 + * Complete endpoint definition including method, path, and optional schema */ export interface EndpointDefinition< Method extends HttpMethod = HttpMethod, Path extends string = string, - Schema extends EndpointSchema = EndpointSchema, + Schema extends EndpointSchema | undefined = EndpointSchema | undefined, > { readonly method: Method; readonly path: Path; @@ -38,44 +39,47 @@ export interface EndpointDefinition< } /** - * エンドポイントマップ - * "GET /users/{id}" -> EndpointDefinition + * Map of endpoint keys to their definitions + * Key format: "METHOD /path" -> EndpointDefinition */ export type EndpointMap = Record; /** - * リクエストオプション + * Request options with conditional typing based on schema + * Parameters become required when schema is provided */ -export interface RequestOptions { - readonly pathParams?: Schema["pathParams"] extends StandardSchemaV1 - ? InferInput - : Record; - readonly query?: Schema["query"] extends StandardSchemaV1 - ? InferInput - : Record; - readonly body?: Schema["body"] extends StandardSchemaV1 - ? InferInput - : unknown; +export type RequestOptions = { readonly headers?: Record; -} + readonly signal?: AbortSignal; +} & (Schema["params"] extends StandardSchemaV1 + ? { readonly params: InferInput } + : { readonly params?: Record }) & + (Schema["query"] extends StandardSchemaV1 + ? { readonly query: InferInput } + : { readonly query?: Record }) & + (Schema["body"] extends StandardSchemaV1 + ? { readonly body: InferInput } + : { readonly body?: unknown }); /** - * レスポンス型 + * Response type inferred from schema or unknown if no schema provided */ export type ResponseType = Schema["response"] extends StandardSchemaV1 ? InferOutput : unknown; /** - * TypeFetcherの設定 + * Configuration options for TypeFetcher client */ export interface TypeFetcherConfig { readonly baseURL?: string; readonly headers?: Record; readonly timeout?: number; + readonly fetch?: typeof globalThis.fetch; } /** - * リクエストエラー + * HTTP error thrown when request fails + * Contains status code, status text, and optional response data */ export class TypeFetcherError extends Error { constructor( @@ -90,7 +94,8 @@ export class TypeFetcherError extends Error { } /** - * バリデーションエラー + * Schema validation error with detailed issue information + * Contains validation issues with messages and optional paths */ export class ValidationError extends Error { constructor( diff --git a/src/valibot.test.ts b/src/valibot.test.ts deleted file mode 100644 index 6784b5c..0000000 --- a/src/valibot.test.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { describe, expect, test } from "vitest"; -import { createStandardSchemaFromValibot } from "./adapters/valibot"; -import { validateSync } from "./schema"; - -describe("Valibot Adapter", () => { - test("should work with mock Valibot schema", () => { - // Valibotライクなモックスキーマ - const mockValibotSchema = { - safeParse: (input: unknown) => { - if (typeof input === "number" && input > 0) { - return { success: true as const, output: input }; - } - return { - success: false as const, - issues: [{ message: "Must be positive number", path: [] }], - }; - }, - _types: { - input: undefined as unknown, - output: undefined as number, - }, - }; - - const standardSchema = createStandardSchemaFromValibot(mockValibotSchema); - - const validResult = validateSync(standardSchema, 42); - expect(validResult.success).toBe(true); - expect(validResult.data).toBe(42); - - const invalidResult = validateSync(standardSchema, -1); - expect(invalidResult.success).toBe(false); - expect(invalidResult.issues?.[0]?.message).toBe("Must be positive number"); - }); - - test("should handle complex object validation", () => { - const mockUserSchema = { - safeParse: (input: any) => { - if ( - typeof input === "object" && - input !== null && - typeof input.name === "string" && - typeof input.age === "number" && - input.age >= 0 - ) { - return { success: true as const, output: input as { name: string; age: number } }; - } - return { - success: false as const, - issues: [{ message: "Invalid user object", path: [] }], - }; - }, - _types: { - input: undefined as unknown, - output: undefined as { name: string; age: number }, - }, - }; - - const standardSchema = createStandardSchemaFromValibot(mockUserSchema); - - const validResult = validateSync(standardSchema, { name: "John", age: 30 }); - expect(validResult.success).toBe(true); - expect(validResult.data).toEqual({ name: "John", age: 30 }); - - const invalidResult = validateSync(standardSchema, { name: 123 }); - expect(invalidResult.success).toBe(false); - expect(invalidResult.issues?.[0]?.message).toBe("Invalid user object"); - }); -}); diff --git a/tsconfig.json b/tsconfig.json index e5eddac..c74a324 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -12,5 +12,5 @@ "noEmit": true }, "include": ["src/**/*"], - "exclude": ["node_modules", "dist", "**/*.test.ts"] + "exclude": ["node_modules", "dist"] } diff --git a/vitest.config.ts b/vitest.config.ts index 0eeffb6..2dfdd04 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -2,14 +2,18 @@ import { defineConfig } from "vitest/config"; export default defineConfig({ test: { - environment: "node", - globals: true, include: ["src/**/*.test.ts"], coverage: { provider: "v8", - reporter: ["text", "json", "html"], + reporter: ["text", "html"], include: ["src/**/*.ts"], - exclude: ["node_modules/", "dist/", "**/*.d.ts", "**/*.config.*", "**/coverage/**"], + exclude: ["src/index.ts"], + thresholds: { + lines: 95, + statements: 95, + functions: 100, + branches: 90, + }, }, }, }); From 67dcc25d53930cb7af7ed2940bb815439ee6aec6 Mon Sep 17 00:00:00 2001 From: mast1ff Date: Thu, 19 Jun 2025 03:05:18 +0900 Subject: [PATCH 4/5] change response types --- README.md | 385 +++++++++++++++++++++++-------- examples/basic-usage.ts | 147 ++++++++++-- examples/nodejs-usage.ts | 26 ++- examples/signal-and-raw-usage.ts | 89 +++---- examples/valibot-usage.ts | 29 ++- package.json | 4 +- src/client.test.ts | 28 ++- src/client.ts | 31 ++- src/raw-response.test.ts | 13 +- 9 files changed, 559 insertions(+), 193 deletions(-) diff --git a/README.md b/README.md index 8444bb6..a362d4e 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,11 @@ - **📊 Standard Schema**: Native support for Zod, Valibot, and other Standard Schema compliant libraries - **🔍 Request/Response Validation**: Runtime validation with detailed error messages - **🏗️ Builder Pattern**: Intuitive API inspired by Hono and Octokit +- **📋 Structured Response**: Rich response metadata (headers, status, URL) with `~raw` access - **⚡ Lightweight**: Zero dependencies (except peer dependencies) - **🛡️ Error Handling**: Comprehensive error types for different failure scenarios - **🎪 Flexible**: Works with any Standard Schema compliant validation library +- **🚫 AbortSignal Support**: Request cancellation and timeout support ## 📦 Installation @@ -75,14 +77,22 @@ const api = client .addEndpoint("POST", "/users"); // Make requests (Octokit-style) -const users = await api.request("GET /users"); -const user = await api.request("GET /users/{id}", { +const response = await api.request("GET /users"); + +// Structured response with metadata +console.log("Data:", response.data); // Response body +console.log("Status:", response.status); // HTTP status code +console.log("Headers:", response.headers); // Response headers +console.log("URL:", response.url); // Request URL +console.log("Raw:", response["~raw"]); // Raw Response object + +// Access specific user +const userResponse = await api.request("GET /users/{id}", { params: { id: "1" } }); -const newUser = await api.request("POST /users", { - body: { name: "John", email: "john@example.com" } -}); +const user = userResponse.data; // Just the data +const status = userResponse.status; // 200, 404, etc. ``` ### Type-Safe Usage with Zod @@ -125,18 +135,75 @@ const api = client response: UserSchema }); -// Fully type-safe requests -const users = await api.request("GET /users"); -// Type: { id: number; name: string; email: string; }[] +// Fully type-safe requests with structured responses +const usersResponse = await api.request("GET /users"); +// Type: StructuredResponse + +const users = usersResponse.data; // User[] +const status = usersResponse.status; // number +const headers = usersResponse.headers; // Headers -const user = await api.request("GET /users/{id}", { +const userResponse = await api.request("GET /users/{id}", { params: { id: "123" } // ✅ TypeScript ensures correct type }); -// Type: { id: number; name: string; email: string; } +// Type: StructuredResponse + +const user = userResponse.data; // User object +if (userResponse.status === 200) { + console.log("User found:", user.name); +} const created = await api.request("POST /users", { body: { name: "Jane", email: "jane@example.com" } // ✅ Validated at runtime }); + +// Access creation details +console.log("Created user:", created.data); +console.log("Location:", created.headers.get("location")); +console.log("Status:", created.status); // 201 +``` + +## 📊 Response Structure + +Every request returns a structured response with rich metadata: + +```typescript +interface StructuredResponse { + readonly data: T; // Parsed response data (your API data) + readonly headers: Headers; // Response headers object + readonly status: number; // HTTP status code (200, 404, etc.) + readonly url: string; // Final request URL + readonly "~raw": Response; // Raw fetch Response object +} +``` + +### Working with Response Data + +```typescript +const response = await api.request("GET /users/{id}", { + params: { id: "123" } +}); + +// Access parsed data (type-safe when schema is provided) +const user = response.data; + +// Check HTTP status +if (response.status === 200) { + console.log("Success!"); +} else if (response.status === 404) { + console.log("User not found"); +} + +// Access response headers +const contentType = response.headers.get("content-type"); +const rateLimit = response.headers.get("x-rate-limit-remaining"); + +// Get request URL (useful for debugging) +console.log("Request was made to:", response.url); + +// Access raw Response for advanced use cases +const rawResponse = response["~raw"]; +const responseText = await rawResponse.clone().text(); ``` ### Type-Safe Usage with Valibot @@ -168,10 +235,13 @@ const api = client }); // Same type-safe API as with Zod -const users = await api.request("GET /users"); -const newUser = await api.request("POST /users", { +const usersResponse = await api.request("GET /users"); +const users = usersResponse.data; // User[] + +const newUserResponse = await api.request("POST /users", { body: { name: "John", email: "john@example.com" } }); +const newUser = newUserResponse.data; // User ``` ## 📚 API Reference @@ -215,8 +285,8 @@ Registers a new endpoint with optional schema validation. **Schema Object:** ```typescript interface EndpointSchema { - readonly params?: StandardSchemaV1; // Path parameters (formerly pathParams) - readonly query?: StandardSchemaV1; // Query parameters + readonly params?: StandardSchemaV1; // Path parameters + readonly query?: StandardSchemaV1; // Query parameters readonly body?: StandardSchemaV1; // Request body readonly response?: StandardSchemaV1; // Response validation } @@ -225,28 +295,120 @@ interface EndpointSchema { ### request ```typescript -request(key: K, options?: RequestOptions): Promise +request(key: K, options?: RequestOptions): Promise> ``` -Executes a request to a registered endpoint. +Executes a request to a registered endpoint and returns a structured response. **Parameters:** - `key`: Endpoint key in format `"METHOD /path"` - `options`: Request options (automatically typed based on schema) -**Request Options (when schema is provided):** +**Request Options:** ```typescript -// Schema-specified parameters become required -{ - params: InferInput; // Required if params schema exists - query: InferInput; // Required if query schema exists - body: InferInput; // Required if body schema exists - headers?: Record; // Always optional +interface RequestOptions { + readonly params?: Record | SchemaType; // Path parameters + readonly query?: Record | SchemaType; // Query parameters + readonly body?: unknown | SchemaType; // Request body + readonly headers?: Record; // Custom headers + readonly signal?: AbortSignal; // Abort signal } + +// When schema is provided, corresponding fields become required and strongly typed ``` ## 🔧 Advanced Usage +### AbortSignal Support + +```typescript +// Request cancellation +const controller = new AbortController(); + +// Cancel after 5 seconds +setTimeout(() => controller.abort(), 5000); + +try { + const response = await api.request("GET /users/{id}", { + params: { id: "123" }, + signal: controller.signal + }); + + console.log("User:", response.data); +} catch (error) { + if (error.name === 'AbortError') { + console.log("Request was cancelled"); + } +} +``` + +### Custom Headers per Request + +```typescript +const response = await api.request("GET /users/{id}", { + params: { id: "123" }, + headers: { + "Accept-Language": "en-US", + "X-Custom-Header": "value", + "Authorization": "Bearer specific-token" // Override global headers + } +}); +``` + +### Query Parameters + +```typescript +const QuerySchema = z.object({ + page: z.string(), + limit: z.string(), + search: z.string().optional() +}); + +const api = client.addEndpoint("GET", "/users", { + query: QuerySchema, + response: z.array(UserSchema) +}); + +const response = await api.request("GET /users", { + query: { + page: "1", + limit: "10", + search: "john" + } +}); + +console.log("Users:", response.data); +console.log("Total pages:", response.headers.get("x-total-pages")); +``` + +### Working with Raw Response + +For advanced use cases, access the raw `Response` object: + +```typescript +const response = await api.request("GET /download/{id}", { + params: { id: "file123" } +}); + +// Access raw Response +const rawResponse = response["~raw"]; + +// Stream response body +const reader = rawResponse.body?.getReader(); +const contentLength = rawResponse.headers.get("content-length"); + +console.log(`Downloading ${contentLength} bytes`); + +// Process stream... +while (reader) { + const { done, value } = await reader.read(); + if (done) break; + + // Process chunk + console.log(`Received ${value.length} bytes`); +} +``` + ### Node.js Usage For Node.js environments, you can provide a custom fetch implementation: @@ -278,9 +440,12 @@ const client = new TypeFetcher({ import { TypeFetcherError, ValidationError } from "@tknf/typefetcher"; try { - const user = await api.request("GET /users/{id}", { + const response = await api.request("GET /users/{id}", { params: { id: "123" } }); + + console.log("User:", response.data); + console.log("Status:", response.status); } catch (error) { if (error instanceof TypeFetcherError) { // HTTP errors (404, 500, etc.) @@ -289,56 +454,24 @@ try { } else if (error instanceof ValidationError) { // Schema validation errors console.error("Validation failed:", error.message); - console.error("Issues:", error.issues); + error.issues.forEach(issue => { + console.error(`- ${issue.message} at ${issue.path?.join('.')}`); + }); } else { - // Other errors + // Other errors (network, abort, etc.) console.error("Unexpected error:", error); } } ``` -### Custom Headers per Request - -```typescript -const user = await api.request("GET /users/{id}", { - params: { id: "123" }, - headers: { - "Accept-Language": "en-US", - "Custom-Header": "value" - } -}); -``` - -### Query Parameters - -```typescript -const QuerySchema = z.object({ - page: z.string(), - limit: z.string(), - search: z.string().optional() -}); - -const api = client.addEndpoint("GET", "/users", { - query: QuerySchema, - response: z.array(UserSchema) -}); - -const users = await api.request("GET /users", { - query: { - page: "1", - limit: "10", - search: "john" - } -}); -``` - ### Schema Transformations Zod and Valibot schemas with transformations work seamlessly: ```typescript const TransformSchema = z.object({ - id: z.string().transform(val => val.toUpperCase()) + id: z.string().transform(val => val.toUpperCase()), + date: z.string().transform(val => new Date(val)) }); const api = client.addEndpoint("GET", "/items/{id}", { @@ -346,8 +479,9 @@ const api = client.addEndpoint("GET", "/items/{id}", { }); // Input is transformed before making the request -await api.request("GET /items/{id}", { - params: { id: "abc" } // Becomes "ABC" in the actual URL +const response = await api.request("GET /items/{id}", { + params: { id: "abc", date: "2023-01-01" } + // Becomes: id="ABC", date=Date object in the actual request }); ``` @@ -366,11 +500,27 @@ const schema = z.string(); // Works with Zod 3.25.0+ const schema = v.string(); // Works with Valibot 1.0.0+ ``` +### Rich Response Information + +Get comprehensive response metadata without extra work: + +```typescript +// ❌ Traditional fetch +const rawResponse = await fetch("/api/users"); +const data = await rawResponse.json(); +// Lost: headers, status, url information + +// ✅ TypeFetcher structured response +const response = await api.request("GET /users"); +// Available: data, headers, status, url, ~raw +``` + ### Excellent TypeScript Integration - **Required Parameters**: Schema-specified parameters become required in TypeScript - **Type Inference**: Full type inference from schemas to response types -- **Autocomplete**: Rich IDE support with parameter suggestions +- **Autocomplete**: Rich IDE support with endpoint and parameter suggestions +- **Structured Response**: Access both data and metadata with full type safety ### Minimal Bundle Size @@ -416,64 +566,113 @@ class BlogAPI { }); async getAllPosts() { - return this.api.request("GET /posts"); + const response = await this.api.request("GET /posts"); + return { + posts: response.data, + count: response.headers.get("x-total-count") + }; } async getPost(id: string) { - return this.api.request("GET /posts/{id}", { params: { id } }); + const response = await this.api.request("GET /posts/{id}", { + params: { id } + }); + + if (response.status === 404) { + throw new Error("Post not found"); + } + + return response.data; } async createPost(post: { title: string; body: string; userId: number }) { - return this.api.request("POST /posts", { body: post }); + const response = await this.api.request("POST /posts", { body: post }); + + return { + post: response.data, + location: response.headers.get("location"), + status: response.status + }; } } ``` -### GraphQL-like Type Safety +### File Upload with Progress ```typescript -// Define your API schema once -const api = client - .addEndpoint("GET", "/users/{id}/profile", { - params: z.object({ id: z.string() }), - response: z.object({ - user: UserSchema, - preferences: PreferencesSchema, - statistics: StatsSchema - }) +const api = client.addEndpoint("POST", "/upload", { + body: z.instanceof(FormData), + response: z.object({ + fileId: z.string(), + url: z.string() + }) +}); + +async function uploadFile(file: File, onProgress?: (progress: number) => void) { + const formData = new FormData(); + formData.append("file", file); + + const response = await api.request("POST /upload", { + body: formData, + headers: { + // Don't set Content-Type, let browser set it with boundary + } }); -// Get fully typed response -const profile = await api.request("GET /users/{id}/profile", { - params: { id: "123" } -}); + console.log("Upload completed!"); + console.log("File ID:", response.data.fileId); + console.log("File URL:", response.data.url); + console.log("Server:", response.headers.get("server")); + + return response.data; +} +``` -// TypeScript knows the exact shape: -// profile.user.name -// profile.preferences.theme -// profile.statistics.loginCount +### Pagination Helper + +```typescript +async function getAllUsers() { + const users = []; + let page = 1; + let hasMore = true; + + while (hasMore) { + const response = await api.request("GET /users", { + query: { page: page.toString(), limit: "50" } + }); + + users.push(...response.data); + + // Check if there are more pages + const totalPages = parseInt(response.headers.get("x-total-pages") || "1"); + hasMore = page < totalPages; + page++; + } + + return users; +} ``` ## 🛠️ Development ```bash # Install dependencies -npm install +pnpm install # Run tests -npm test +pnpm test # Run tests with coverage -npm run test:coverage +pnpm run test:coverage # Type checking -npm run typecheck +pnpm run typecheck # Linting -npm run lint +pnpm run lint # Build -npm run build +pnpm run build ``` ## 📋 Requirements @@ -500,4 +699,4 @@ MIT License - see [LICENSE](LICENSE) for details. - [Standard Schema](https://standardschema.dev/) specification - [Zod](https://zod.dev/) and [Valibot](https://valibot.dev/) for schema validation -- [Hono](https://hono.dev/) and [Octokit](https://octokit.github.io/rest.js/) for API design inspiration +- [Hono](https://hono.dev/) and [Octokit](https://octokit.github.io/rest.js/) for API design inspiration \ No newline at end of file diff --git a/examples/basic-usage.ts b/examples/basic-usage.ts index e81ee32..b3f43c7 100644 --- a/examples/basic-usage.ts +++ b/examples/basic-usage.ts @@ -31,34 +31,45 @@ function basicExample() { // Octokit-style API methods return { async getUsers() { - // TypeScript: Promise - return await api.request("GET /users"); + // Returns structured response with metadata + const response = await api.request("GET /users"); + console.log("Users data:", response.data); + console.log("Response status:", response.status); + console.log("Response headers:", response.headers); + console.log("Request URL:", response.url); + // Access raw Response object: response["~raw"] + return response; }, async getUser(id: string) { // Pass path parameters - return await api.request("GET /users/{id}", { + const response = await api.request("GET /users/{id}", { params: { id }, }); + return response.data; // Return just the data }, async createUser(userData: any) { - return await api.request("POST /users", { + const response = await api.request("POST /users", { body: userData, }); + return response; }, async updateUser(id: string, userData: any) { - return await api.request("PUT /users/{id}", { + const response = await api.request("PUT /users/{id}", { params: { id }, body: userData, }); + return response; }, async deleteUser(id: string) { - return await api.request("DELETE /users/{id}", { + const response = await api.request("DELETE /users/{id}", { params: { id }, }); + // Check status code for success + return response.status === 204; }, }; } @@ -96,7 +107,7 @@ function typeSafeExample() { response: z.array(UserSchema), }) .addEndpoint("GET", "/users/{id}", { - pathParams: PathIdSchema, + params: PathIdSchema, response: UserSchema, }) .addEndpoint("POST", "/users", { @@ -104,38 +115,87 @@ function typeSafeExample() { response: UserSchema, }) .addEndpoint("PUT", "/users/{id}", { - pathParams: PathIdSchema, + params: PathIdSchema, body: CreateUserSchema, response: UserSchema, }); return { async getUsers() { - // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }[]> + // TypeScript: Promise> // Response is validated at runtime - return await api.request("GET /users"); + const response = await api.request("GET /users"); + // response.data is strongly typed as User[] + return response.data; }, async getUser(id: string) { // params are type-checked and validated at runtime - // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }> - return await api.request("GET /users/{id}", { - params: { id } + // TypeScript: Promise> + const response = await api.request("GET /users/{id}", { + params: { id } // Type-checked against PathIdSchema }); + // response.data is strongly typed as User + return response.data; }, async createUser(userData: { name: string; email: string; username: string }) { // body is type-checked and validated at runtime - return await api.request("POST /users", { - body: userData, // Expects CreateUserSchema type + const response = await api.request("POST /users", { + body: userData, // Type-checked against CreateUserSchema }); + + // Access both data and metadata + console.log("Created user:", response.data); + console.log("Location header:", response.headers.get("location")); + console.log("Status:", response.status); + + return response.data; }, async updateUser(id: string, userData: { name: string; email: string; username: string }) { - return await api.request("PUT /users/{id}", { + const response = await api.request("PUT /users/{id}", { params: { id }, body: userData, }); + return response.data; + }, + }; +} + +/** + * Advanced usage with AbortSignal and custom headers + */ +function advancedExample() { + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + headers: { + "Authorization": "Bearer token", + }, + }); + + const api = client.addEndpoint("GET", "/users/{id}"); + + return { + async getUserWithAbort(id: string, timeoutMs: number = 5000) { + const controller = new AbortController(); + const timeoutId = setTimeout(() => controller.abort(), timeoutMs); + + try { + const response = await api.request("GET /users/{id}", { + params: { id }, + signal: controller.signal, + headers: { + "X-Custom-Header": "custom-value", + }, + }); + + clearTimeout(timeoutId); + return response; + } catch (error) { + clearTimeout(timeoutId); + throw error; + } }, }; } @@ -151,10 +211,13 @@ async function errorHandlingExample() { const api = client.addEndpoint("GET", "/users/{id}"); try { - const user = await api.request("GET /users/{id}", { + const response = await api.request("GET /users/{id}", { params: { id: "123" }, }); - console.log(user); + + console.log("User data:", response.data); + console.log("Status:", response.status); + console.log("Headers:", response.headers); } catch (error) { if (error instanceof TypeFetcherError) { // HTTP errors (404, 500, etc.) @@ -165,11 +228,55 @@ async function errorHandlingExample() { console.error("Validation Error:", error.message); console.error("Issues:", error.issues); } else { - // Other errors + // Other errors (network, abort, etc.) console.error("Unexpected error:", error); } } } +/** + * Working with raw Response object + */ +async function rawResponseExample() { + const client = new TypeFetcher({ + baseURL: "https://api.example.com", + }); + + const api = client.addEndpoint("GET", "/download/{id}"); + + const response = await api.request("GET /download/{id}", { + params: { id: "file123" }, + }); + + // Access raw Response for advanced operations + const rawResponse = response["~raw"]; + + // Stream the response body + const reader = rawResponse.body?.getReader(); + + // Check response headers + const contentType = rawResponse.headers.get("content-type"); + const contentLength = rawResponse.headers.get("content-length"); + + console.log(`Downloading ${contentType}, size: ${contentLength} bytes`); + + // Process stream... + if (reader) { + // Handle streaming... + } + + return { + data: response.data, + contentType, + contentLength: contentLength ? parseInt(contentLength) : undefined, + }; +} + // Export usage examples -export { basicExample, typeSafeExample, errorHandlingExample }; +export { + basicExample, + typeSafeExample, + advancedExample, + errorHandlingExample, + rawResponseExample +}; diff --git a/examples/nodejs-usage.ts b/examples/nodejs-usage.ts index 1f16458..36acf23 100644 --- a/examples/nodejs-usage.ts +++ b/examples/nodejs-usage.ts @@ -27,9 +27,15 @@ function nodeJsModernExample() { return { async getUser(id: string) { - return await api.request("GET /users/{id}", { + const response = await api.request("GET /users/{id}", { params: { id }, }); + + console.log("User data:", response.data); + console.log("Response status:", response.status); + console.log("Content-Type:", response.headers.get("content-type")); + + return response.data; }, }; } @@ -57,9 +63,15 @@ async function nodeJsCustomFetchExample() { return { async getUser(id: string) { - return await api.request("GET /users/{id}", { + const response = await api.request("GET /users/{id}", { params: { id }, }); + + return { + user: response.data, + status: response.status, + url: response.url + }; }, }; } @@ -80,7 +92,15 @@ async function nodeJsUndiciExample() { return { async getUsers() { - return await api.request("GET /users"); + const response = await api.request("GET /users"); + + console.log("Fetched", response.data?.length || 0, "users"); + console.log("Response headers:"); + for (const [key, value] of response.headers.entries()) { + console.log(` ${key}: ${value}`); + } + + return response.data; }, }; } diff --git a/examples/signal-and-raw-usage.ts b/examples/signal-and-raw-usage.ts index ff72b75..9e94800 100644 --- a/examples/signal-and-raw-usage.ts +++ b/examples/signal-and-raw-usage.ts @@ -36,11 +36,12 @@ async function abortSignalExample() { }, 1000); try { - const post = await api.request("GET /posts/{id}", { + const response = await api.request("GET /posts/{id}", { params: { id: "1" }, signal: controller.signal, // Pass the abort signal }); - console.log("Post received:", post); + console.log("Post received:", response.data); + console.log("Response status:", response.status); } catch (error) { if (error instanceof Error && error.name === "AbortError") { console.log("Request was cancelled"); @@ -69,30 +70,30 @@ async function rawResponseExample() { }); try { - // Use regular request method - it now includes ~raw property - const result = await api.request("GET /posts/{id}", { + // Use regular request method - it now returns structured response + const response = await api.request("GET /posts/{id}", { params: { id: "1" }, }); // Access parsed, validated data directly - console.log("Post ID:", result.id); - console.log("Post title:", result.title); + console.log("Post ID:", response.data.id); + console.log("Post title:", response.data.title); - // Access raw response metadata through ~raw property - console.log("Response status:", result["~raw"].status); + // Access response metadata directly + console.log("Response status:", response.status); + console.log("Response URL:", response.url); console.log("Response headers:"); - for (const [key, value] of result["~raw"].headers.entries()) { + for (const [key, value] of response.headers.entries()) { console.log(` ${key}: ${value}`); } - // Check response timing and other metadata - console.log("Response URL:", result["~raw"].url); - console.log("Response type:", result["~raw"].type); - console.log("Response redirected:", result["~raw"].redirected); + // Access raw response for advanced operations + console.log("Raw response type:", response["~raw"].type); + console.log("Response redirected:", response["~raw"].redirected); // You can also access the raw body again if needed // Note: response.clone() is used internally so this won't conflict - const rawText = await result["~raw"].text(); + const rawText = await response["~raw"].text(); console.log("Raw response body length:", rawText.length); } catch (error) { console.error("Request failed:", error); @@ -129,7 +130,7 @@ async function combinedExample() { }, 5000); // 5 second timeout try { - const result = await api.request("GET /users/{username}", { + const response = await api.request("GET /users/{username}", { params: { username: "octocat" }, signal: controller.signal, headers: { @@ -137,13 +138,13 @@ async function combinedExample() { }, }); - console.log("GitHub user:", result.login); - console.log("Name:", result.name); - console.log("Public repos:", result.public_repos); + console.log("GitHub user:", response.data.login); + console.log("Name:", response.data.name); + console.log("Public repos:", response.data.public_repos); - // Check rate limiting headers through ~raw property - const rateLimitRemaining = result["~raw"].headers.get("x-ratelimit-remaining"); - const rateLimitReset = result["~raw"].headers.get("x-ratelimit-reset"); + // Check rate limiting headers directly from response + const rateLimitRemaining = response.headers.get("x-ratelimit-remaining"); + const rateLimitReset = response.headers.get("x-ratelimit-reset"); console.log("Rate limit remaining:", rateLimitRemaining); if (rateLimitReset) { @@ -152,7 +153,7 @@ async function combinedExample() { } // Check if response was cached - const cacheStatus = result["~raw"].headers.get("x-served-by"); + const cacheStatus = response.headers.get("x-served-by"); if (cacheStatus) { console.log("Served by cache:", cacheStatus); } @@ -200,7 +201,7 @@ async function longPollingExample() { try { console.log("Starting long polling for events..."); - const result = await api.request("GET /events", { + const response = await api.request("GET /events", { query: { timeout: "30", // Server-side timeout }, @@ -209,13 +210,13 @@ async function longPollingExample() { clearTimeout(cancelTimeout); - console.log("Received events:", result.length); - result.forEach(event => { + console.log("Received events:", response.data.length); + response.data.forEach(event => { console.log(`Event ${event.id}: ${event.type} at ${event.timestamp}`); }); - // Check if the connection was kept alive through ~raw property - const connection = result["~raw"].headers.get("connection"); + // Check if the connection was kept alive through headers + const connection = response.headers.get("connection"); console.log("Connection:", connection); } catch (error) { clearTimeout(cancelTimeout); @@ -246,25 +247,29 @@ async function typeInferenceExample() { }), }); - // TypeScript knows the exact shape of the response - const post = await api.request("GET /posts/{id}", { + // TypeScript knows the exact shape of the structured response + const response = await api.request("GET /posts/{id}", { params: { id: "1" }, }); // All these have full type inference: - console.log("Post ID:", post.id); // number - console.log("Post title:", post.title); // string - console.log("User ID:", post.userId); // number - - // Raw response access also has proper typing: - console.log("Status:", post["~raw"].status); // number - console.log("Headers:", post["~raw"].headers); // Headers object - console.log("Content-Type:", post["~raw"].headers.get("content-type")); // string | null - - // The ~raw property doesn't interfere with the main data structure - const { "~raw": rawResponse, ...postData } = post; - console.log("Clean post data:", postData); // { id: number, title: string, body: string, userId: number } - console.log("Raw response status:", rawResponse.status); // number + console.log("Post ID:", response.data.id); // number + console.log("Post title:", response.data.title); // string + console.log("User ID:", response.data.userId); // number + + // Structured response properties also have proper typing: + console.log("Status:", response.status); // number + console.log("Headers:", response.headers); // Headers object + console.log("URL:", response.url); // string + console.log("Content-Type:", response.headers.get("content-type")); // string | null + + // Raw response access also available: + console.log("Raw response status:", response["~raw"].status); // number + + // Clean separation of data and metadata + const { data, status, headers, url, "~raw": rawResponse } = response; + console.log("Post data:", data); // { id: number, title: string, body: string, userId: number } + console.log("Response metadata:", { status, url }); // { status: number, url: string } } // Export usage examples diff --git a/examples/valibot-usage.ts b/examples/valibot-usage.ts index 4abaf2c..b836161 100644 --- a/examples/valibot-usage.ts +++ b/examples/valibot-usage.ts @@ -40,7 +40,7 @@ function valibotDirectExample() { response: v.array(UserSchema), }) .addEndpoint("GET", "/users/{id}", { - pathParams: PathIdSchema, + params: PathIdSchema, response: UserSchema, }) .addEndpoint("POST", "/users", { @@ -48,37 +48,50 @@ function valibotDirectExample() { response: UserSchema, }) .addEndpoint("PUT", "/users/{id}", { - pathParams: PathIdSchema, + params: PathIdSchema, body: CreateUserSchema, response: UserSchema, }); return { async getUsers() { - // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }[]> - return await api.request("GET /users"); + // TypeScript: Promise> + const response = await api.request("GET /users"); + return response.data; // Return just the users array }, async getUser(id: string) { // params are type-checked and validated at runtime - // TypeScript: Promise<{ id: number; name: string; email: string; username: string; }> - return await api.request("GET /users/{id}", { + // TypeScript: Promise> + const response = await api.request("GET /users/{id}", { params: { id } }); + return response.data; // Return just the user object }, async createUser(userData: { name: string; email: string; username: string }) { // body is type-checked and validated at runtime - return await api.request("POST /users", { + const response = await api.request("POST /users", { body: userData, }); + + console.log("Created user with status:", response.status); + console.log("Location header:", response.headers.get("location")); + + return response.data; }, async updateUser(id: string, userData: { name: string; email: string; username: string }) { - return await api.request("PUT /users/{id}", { + const response = await api.request("PUT /users/{id}", { params: { id }, body: userData, }); + + return { + user: response.data, + status: response.status, + lastModified: response.headers.get("last-modified") + }; }, }; } diff --git a/package.json b/package.json index 5a4b4b7..86d0637 100644 --- a/package.json +++ b/package.json @@ -10,9 +10,7 @@ "type-safe", "standard-schema", "validation", - "dx", - "hono-like", - "octokit-like" + "dx" ], "repository": { "url": "https://github.com/tknf/typefetcher" diff --git a/src/client.test.ts b/src/client.test.ts index 32f4179..9e8ff43 100644 --- a/src/client.test.ts +++ b/src/client.test.ts @@ -1,6 +1,6 @@ import { describe, test, expect, vi, beforeEach } from "vitest"; import { TypeFetcher } from "./client"; -import { TypeFetcherError, ValidationError } from "./types"; +import { TypeFetcherError } from "./types"; import { z } from "zod"; // Mock fetch @@ -8,11 +8,12 @@ const mockFetch = vi.fn(); global.fetch = mockFetch; // Helper to create mock response with clone method -const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean } = {}) => { +const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean; url?: string } = {}) => { const response = { ok: options.ok ?? (options.status === undefined || options.status < 400), status: options.status ?? 200, statusText: options.statusText ?? "OK", + url: options.url ?? "https://api.example.com/test", headers: new Headers({ "content-type": "application/json", ...options.headers }), json: vi.fn().mockResolvedValue(data), text: vi.fn().mockResolvedValue(typeof data === "string" ? data : JSON.stringify(data)), @@ -50,7 +51,7 @@ describe("TypeFetcher with ~raw Response", () => { params: { id: "1" }, }); - expect(result).toMatchObject(responseData); + expect(result.data).toMatchObject(responseData); expect(result["~raw"]).toBeDefined(); expect(result["~raw"].status).toBe(200); expect(mockFetch).toHaveBeenCalledWith( @@ -72,7 +73,7 @@ describe("TypeFetcher with ~raw Response", () => { body: requestData, }); - expect(result).toMatchObject(responseData); + expect(result.data).toMatchObject(responseData); expect(result["~raw"].status).toBe(200); expect(mockFetch).toHaveBeenCalledWith( "https://api.example.com/users", @@ -109,10 +110,13 @@ describe("TypeFetcher with ~raw Response", () => { }); // Type inference should work - these properties should be strongly typed - expect(result.id).toBe(3); - expect(result.name).toBe("Alice"); - expect(result.email).toBe("alice@example.com"); + expect(result.data.id).toBe(3); + expect(result.data.name).toBe("Alice"); + expect(result.data.email).toBe("alice@example.com"); expect(result["~raw"].status).toBe(200); + expect(result.status).toBe(200); + expect(result.headers).toBeDefined(); + expect(result.url).toBeDefined(); }); test("should throw ValidationError for invalid request body", async () => { @@ -126,6 +130,7 @@ describe("TypeFetcher with ~raw Response", () => { await expect( client.request("POST /users", { + // biome-ignore lint/suspicious/noExplicitAny: Test requires invalid input type body: { name: 123 } as any, // Invalid input - name should be string, not number }) ).rejects.toThrow("Request body validation failed"); @@ -174,6 +179,7 @@ describe("TypeFetcher with ~raw Response", () => { const client = fetcher.addEndpoint("GET", "/users"); await expect( + // biome-ignore lint/suspicious/noExplicitAny: Test requires invalid endpoint key client.request("POST /users" as any, {}) ).rejects.toThrow("Endpoint not found: POST /users"); }); @@ -202,6 +208,7 @@ describe("TypeFetcher with ~raw Response", () => { await expect( client.request("GET /users/{id}", { + // biome-ignore lint/suspicious/noExplicitAny: Test requires invalid parameter params: { notId: "value" } as any, // Wrong parameter name }) ).rejects.toThrow("Missing path parameter: id"); @@ -211,6 +218,7 @@ describe("TypeFetcher with ~raw Response", () => { const client = fetcher.addEndpoint("GET", "/users"); await expect( + // biome-ignore lint/suspicious/noExplicitAny: Test requires invalid format client.request("INVALID FORMAT" as any, {}) ).rejects.toThrow("Endpoint not found: INVALID FORMAT"); }); @@ -285,8 +293,8 @@ describe("TypeFetcher with ~raw Response", () => { params: { id: "1" }, }); - expect(result.id).toBe(1); - expect(result.name).toBe("John"); + expect(result.data.id).toBe(1); + expect(result.data.name).toBe("John"); expect(result["~raw"].status).toBe(200); }); @@ -469,11 +477,13 @@ describe("TypeFetcher with ~raw Response", () => { const client = fetcher.addEndpoint("GET", "/test"); // Mock endpoints directly to test parseRequestKey edge case + // biome-ignore lint/suspicious/noExplicitAny: Test requires accessing private property (client as any).endpoints = { "INVALID": { method: "GET", path: "/test" } }; await expect( + // biome-ignore lint/suspicious/noExplicitAny: Test requires accessing private method (client as any).request("INVALID", {}) ).rejects.toThrow("Invalid request key format: INVALID"); }); diff --git a/src/client.ts b/src/client.ts index c27bb3b..e11917d 100644 --- a/src/client.ts +++ b/src/client.ts @@ -62,27 +62,33 @@ type RequestOptionsForEndpoint< }; /** - * Base response type with raw response access + * Structured response type with additional metadata */ -type BaseResponseWithRaw = T & { readonly "~raw": Response }; +type StructuredResponse = { + readonly data: T; + readonly headers: Headers; + readonly status: number; + readonly url: string; + readonly "~raw": Response; +}; /** - * Generate response type from endpoint map with raw response access + * Generate response type from endpoint map with structured response */ type ResponseForEndpoint< T extends EndpointMap, K extends keyof T, > = T[K] extends EndpointDefinition ? Schema extends EndpointSchema - ? BaseResponseWithRaw> - : BaseResponseWithRaw - : BaseResponseWithRaw; + ? StructuredResponse> + : StructuredResponse + : StructuredResponse; /** * TypeScript-first API client with Standard Schema support * Provides type-safe HTTP requests with runtime validation */ -export class TypeFetcher { +export class TypeFetcher> { private endpoints: T; private config: TypeFetcherConfig; private fetch: typeof globalThis.fetch; @@ -242,15 +248,22 @@ export class TypeFetcher { } // Validate response data against schema + let finalData: unknown = responseData; if (endpoint.schema?.response) { const validation = validateSync(endpoint.schema.response, responseData); if (!validation.success) { throw new ValidationError(validation.issues || [], "Response validation failed"); } - return Object.assign(validation.data as any, { "~raw": responseClone }) as ResponseForEndpoint; + finalData = validation.data; } - return Object.assign(responseData as any, { "~raw": responseClone }) as ResponseForEndpoint; + return { + data: finalData, + headers: response.headers, + status: response.status, + url: response.url, + "~raw": responseClone, + } as ResponseForEndpoint; } /** diff --git a/src/raw-response.test.ts b/src/raw-response.test.ts index 259595a..86f8527 100644 --- a/src/raw-response.test.ts +++ b/src/raw-response.test.ts @@ -7,11 +7,12 @@ const mockFetch = vi.fn(); global.fetch = mockFetch; // Helper to create mock response with clone method -const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean } = {}) => { +const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean; url?: string } = {}) => { const response = { ok: options.ok ?? (options.status === undefined || options.status < 400), status: options.status ?? 200, statusText: options.statusText ?? "OK", + url: options.url ?? "https://api.example.com/test", headers: new Headers({ "content-type": "application/json", ...options.headers }), json: vi.fn().mockResolvedValue(data), text: vi.fn().mockResolvedValue(typeof data === "string" ? data : JSON.stringify(data)), @@ -48,9 +49,9 @@ describe("~raw Response Property", () => { }); // Check parsed data properties - expect(result.id).toBe(1); - expect(result.name).toBe("John"); - expect(result.email).toBe("john@example.com"); + expect(result.data.id).toBe(1); + expect(result.data.name).toBe("John"); + expect(result.data.email).toBe("john@example.com"); // Check ~raw property expect(result["~raw"]).toBeDefined(); @@ -71,7 +72,7 @@ describe("~raw Response Property", () => { const result = await api.request("GET /anything"); // Check that response includes both data and ~raw - expect(result).toMatchObject(responseData); + expect(result.data).toMatchObject(responseData); expect(result["~raw"]).toBeDefined(); expect(result["~raw"].status).toBe(200); }); @@ -126,7 +127,7 @@ describe("~raw Response Property", () => { ); // Verify we get data with ~raw property - expect(result.message).toBe("success"); + expect(result.data.message).toBe("success"); expect(result["~raw"].status).toBe(200); }); From 0e3d6dfa5fe8f3ad4dff5f2f93c72403fbac2a56 Mon Sep 17 00:00:00 2001 From: mast1ff Date: Thu, 19 Jun 2025 03:09:30 +0900 Subject: [PATCH 5/5] file format --- src/client.test.ts | 79 ++++++++++++++++++++++------------------ src/client.ts | 10 ++--- src/index.ts | 23 ++++++------ src/raw-response.test.ts | 53 +++++++++++++++++---------- src/types.ts | 2 +- 5 files changed, 95 insertions(+), 72 deletions(-) diff --git a/src/client.test.ts b/src/client.test.ts index 9e8ff43..a613c98 100644 --- a/src/client.test.ts +++ b/src/client.test.ts @@ -1,14 +1,23 @@ -import { describe, test, expect, vi, beforeEach } from "vitest"; +import { beforeEach, describe, expect, test, vi } from "vitest"; +import { z } from "zod"; import { TypeFetcher } from "./client"; import { TypeFetcherError } from "./types"; -import { z } from "zod"; // Mock fetch const mockFetch = vi.fn(); global.fetch = mockFetch; // Helper to create mock response with clone method -const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean; url?: string } = {}) => { +const createMockResponse = ( + data: unknown, + options: { + status?: number; + statusText?: string; + headers?: Record; + ok?: boolean; + url?: string; + } = {} +) => { const response = { ok: options.ok ?? (options.status === undefined || options.status < 400), status: options.status ?? 200, @@ -138,11 +147,13 @@ describe("TypeFetcher with ~raw Response", () => { test("should handle HTTP errors", async () => { const errorData = { error: "User not found" }; - mockFetch.mockResolvedValueOnce(createMockResponse(errorData, { - status: 404, - statusText: "Not Found", - ok: false, - })); + mockFetch.mockResolvedValueOnce( + createMockResponse(errorData, { + status: 404, + statusText: "Not Found", + ok: false, + }) + ); const client = fetcher.addEndpoint("GET", "/users/{id}"); @@ -225,9 +236,11 @@ describe("TypeFetcher with ~raw Response", () => { test("should handle non-JSON response", async () => { const textResponse = "Plain text"; - mockFetch.mockResolvedValueOnce(createMockResponse(textResponse, { - headers: { "content-type": "text/plain" }, - })); + mockFetch.mockResolvedValueOnce( + createMockResponse(textResponse, { + headers: { "content-type": "text/plain" }, + }) + ); const client = fetcher.addEndpoint("GET", "/text"); @@ -238,12 +251,14 @@ describe("TypeFetcher with ~raw Response", () => { test("should handle HTTP error with non-JSON response", async () => { const errorText = "Internal Server Error"; - mockFetch.mockResolvedValueOnce(createMockResponse(errorText, { - status: 500, - statusText: "Internal Server Error", - headers: { "content-type": "text/plain" }, - ok: false, - })); + mockFetch.mockResolvedValueOnce( + createMockResponse(errorText, { + status: 500, + statusText: "Internal Server Error", + headers: { "content-type": "text/plain" }, + ok: false, + }) + ); const client = fetcher.addEndpoint("GET", "/error"); @@ -366,10 +381,7 @@ describe("TypeFetcher with ~raw Response", () => { params: { id: "123" }, }); - expect(mockFetch).toHaveBeenCalledWith( - "https://api.example.com/users/123", - expect.any(Object) - ); + expect(mockFetch).toHaveBeenCalledWith("https://api.example.com/users/123", expect.any(Object)); }); test("should validate and use query parameters with schema", async () => { @@ -433,7 +445,7 @@ describe("TypeFetcher with ~raw Response", () => { test("should use custom fetch implementation", async () => { const customFetch = vi.fn().mockResolvedValue(createMockResponse({ data: "custom" })); - + const client = new TypeFetcher({ baseURL: "https://api.example.com", fetch: customFetch, @@ -442,30 +454,27 @@ describe("TypeFetcher with ~raw Response", () => { const api = client.addEndpoint("GET", "/custom"); await api.request("GET /custom"); - expect(customFetch).toHaveBeenCalledWith( - "https://api.example.com/custom", - expect.any(Object) - ); + expect(customFetch).toHaveBeenCalledWith("https://api.example.com/custom", expect.any(Object)); }); test("should handle GET and DELETE methods without body", async () => { mockFetch.mockResolvedValue(createMockResponse({ success: true })); - const client = fetcher - .addEndpoint("GET", "/get-test") - .addEndpoint("DELETE", "/delete-test"); + const client = fetcher.addEndpoint("GET", "/get-test").addEndpoint("DELETE", "/delete-test"); await client.request("GET /get-test"); await client.request("DELETE /delete-test"); // Both calls should not include body in request - expect(mockFetch).toHaveBeenNthCalledWith(1, + expect(mockFetch).toHaveBeenNthCalledWith( + 1, "https://api.example.com/get-test", expect.not.objectContaining({ body: expect.anything(), }) ); - expect(mockFetch).toHaveBeenNthCalledWith(2, + expect(mockFetch).toHaveBeenNthCalledWith( + 2, "https://api.example.com/delete-test", expect.not.objectContaining({ body: expect.anything(), @@ -475,11 +484,11 @@ describe("TypeFetcher with ~raw Response", () => { test("should handle invalid request key format that passes initial check", async () => { const client = fetcher.addEndpoint("GET", "/test"); - + // Mock endpoints directly to test parseRequestKey edge case // biome-ignore lint/suspicious/noExplicitAny: Test requires accessing private property (client as any).endpoints = { - "INVALID": { method: "GET", path: "/test" } + INVALID: { method: "GET", path: "/test" }, }; await expect( @@ -496,7 +505,7 @@ describe("TypeFetcher with ~raw Response", () => { headers: { "content-type": "text/plain" }, ok: false, }); - + mockFetch.mockResolvedValueOnce(mockResponse); const client = fetcher.addEndpoint("GET", "/error"); @@ -535,4 +544,4 @@ describe("TypeFetcher with ~raw Response", () => { }) ); }); -}); \ No newline at end of file +}); diff --git a/src/client.ts b/src/client.ts index e11917d..48521d9 100644 --- a/src/client.ts +++ b/src/client.ts @@ -19,21 +19,21 @@ function getFetchImplementation(customFetch?: typeof globalThis.fetch): typeof g if (customFetch) { return customFetch; } - + // Check for globalThis.fetch (modern browsers and Node.js 18+) if (typeof globalThis !== "undefined" && globalThis.fetch) { return globalThis.fetch.bind(globalThis); } - + // Check for global.fetch (Node.js) if (typeof global !== "undefined" && global.fetch) { return global.fetch.bind(global); } - + // No fetch available throw new Error( "fetch is not available. Please provide a fetch implementation in the config, " + - "upgrade to Node.js 18+, or install a fetch polyfill." + "upgrade to Node.js 18+, or install a fetch polyfill." ); } @@ -221,7 +221,7 @@ export class TypeFetcher> { } const response = await this.fetch(url.toString(), requestInit); - + // Clone response immediately before consuming body const responseClone = response.clone(); diff --git a/src/index.ts b/src/index.ts index 7f17db8..9f40e1a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,23 +1,22 @@ // Main TypeFetcher API exports export { TypeFetcher } from "./client"; +// Standard Schema integration exports +export type { + InferInput, + InferOutput, + StandardSchemaIssue, + StandardSchemaResult, + StandardSchemaV1, +} from "./schema"; +export { validate, validateSync } from "./schema"; export type { - HttpMethod, EndpointDefinition, EndpointMap, EndpointSchema, + ExtractPathParams, + HttpMethod, RequestOptions, ResponseType, TypeFetcherConfig, - ExtractPathParams, } from "./types"; export { TypeFetcherError, ValidationError } from "./types"; - -// Standard Schema integration exports -export type { - StandardSchemaV1, - StandardSchemaResult, - StandardSchemaIssue, - InferInput, - InferOutput, -} from "./schema"; -export { validate, validateSync } from "./schema"; diff --git a/src/raw-response.test.ts b/src/raw-response.test.ts index 86f8527..18d83ec 100644 --- a/src/raw-response.test.ts +++ b/src/raw-response.test.ts @@ -1,13 +1,22 @@ -import { describe, test, expect, vi, beforeEach } from "vitest"; -import { TypeFetcher } from "./client"; +import { beforeEach, describe, expect, test, vi } from "vitest"; import { z } from "zod"; +import { TypeFetcher } from "./client"; // Mock fetch for testing const mockFetch = vi.fn(); global.fetch = mockFetch; // Helper to create mock response with clone method -const createMockResponse = (data: unknown, options: { status?: number; statusText?: string; headers?: Record; ok?: boolean; url?: string } = {}) => { +const createMockResponse = ( + data: unknown, + options: { + status?: number; + statusText?: string; + headers?: Record; + ok?: boolean; + url?: string; + } = {} +) => { const response = { ok: options.ok ?? (options.status === undefined || options.status < 400), status: options.status ?? 200, @@ -79,9 +88,11 @@ describe("~raw Response Property", () => { test("should work with non-JSON response", async () => { const textResponse = "Plain text response"; - mockFetch.mockResolvedValue(createMockResponse(textResponse, { - headers: { "content-type": "text/plain" }, - })); + mockFetch.mockResolvedValue( + createMockResponse(textResponse, { + headers: { "content-type": "text/plain" }, + }) + ); const client = new TypeFetcher({ baseURL: "https://api.example.com", @@ -133,9 +144,11 @@ describe("~raw Response Property", () => { test("should work with custom headers", async () => { const responseData = { data: "test" }; - mockFetch.mockResolvedValue(createMockResponse(responseData, { - headers: { "x-custom-header": "custom-value" }, - })); + mockFetch.mockResolvedValue( + createMockResponse(responseData, { + headers: { "x-custom-header": "custom-value" }, + }) + ); const client = new TypeFetcher({ baseURL: "https://api.example.com", @@ -145,7 +158,7 @@ describe("~raw Response Property", () => { const result = await api.request("GET /test", { headers: { - "Accept": "application/json", + Accept: "application/json", }, }); @@ -154,14 +167,16 @@ describe("~raw Response Property", () => { test("should preserve response headers and metadata", async () => { const responseData = { id: 1 }; - mockFetch.mockResolvedValue(createMockResponse(responseData, { - status: 201, - statusText: "Created", - headers: { - "location": "/users/1", - "x-ratelimit-remaining": "999", - }, - })); + mockFetch.mockResolvedValue( + createMockResponse(responseData, { + status: 201, + statusText: "Created", + headers: { + location: "/users/1", + "x-ratelimit-remaining": "999", + }, + }) + ); const client = new TypeFetcher({ baseURL: "https://api.example.com", @@ -179,4 +194,4 @@ describe("~raw Response Property", () => { expect(result["~raw"].headers.get("location")).toBe("/users/1"); expect(result["~raw"].headers.get("x-ratelimit-remaining")).toBe("999"); }); -}); \ No newline at end of file +}); diff --git a/src/types.ts b/src/types.ts index 88f9c32..70c8943 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,4 +1,4 @@ -import type { StandardSchemaV1, InferInput, InferOutput } from "./schema"; +import type { InferInput, InferOutput, StandardSchemaV1 } from "./schema"; /** * Supported HTTP methods for API requests