@anhdhbn/9router 0.5.116 → 0.5.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -47
- package/app/.next-cli-build/BUILD_ID +1 -1
- package/app/.next-cli-build/app-path-routes-manifest.json +15 -15
- package/app/.next-cli-build/build-manifest.json +2 -2
- package/app/.next-cli-build/prerender-manifest.json +6 -6
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/basic-chat/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/[toolId]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/cli-tools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/combos/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/console-log/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/endpoint/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js +12 -12
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/[kind]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/combo/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/media-providers/web/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/mitm/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/profile/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/[id]/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/new/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/providers/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js +3 -3
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/proxy-pools/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/pxpipe/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/quota/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/skills/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/token-saver/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/translator/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/(dashboard)/dashboard/usage/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_global-error.html +1 -1
- package/app/.next-cli-build/server/app/_global-error.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js +1 -1
- package/app/.next-cli-build/server/app/_not-found/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/_not-found.html +1 -1
- package/app/.next-cli-build/server/app/_not-found.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/_not-found.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/api/auth/login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/logout/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/callback/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/oidc/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/reset-password/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/acs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/metadata/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/saml/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/auth/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js +5 -5
- package/app/.next-cli-build/server/app/api/cli-tools/all-statuses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/antigravity-mitm/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/claude-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/cline-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/codewhale-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/codex-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/copilot-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-registry/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-mcp-tools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/cowork-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/crush-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js +3 -3
- package/app/.next-cli-build/server/app/api/cli-tools/deepseek-tui-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/devin-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/droid-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/forge-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/grok-build-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-profiles/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/hermes-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/jcode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/kilo-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/omp-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/openclaw-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js +2 -2
- package/app/.next-cli-build/server/app/api/cli-tools/opencode-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/pi-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/cli-tools/smelt-settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js +1 -1
- package/app/.next-cli-build/server/app/api/combos/presets/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/combos/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/extras/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/proxy/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/headroom/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/init/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/keys/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/locale/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/message/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/mcp/[plugin]/sse/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/deepgram/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/elevenlabs/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/inworld/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/minimax/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/media-providers/tts/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/alias/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/availability/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/catalog-sync/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/custom/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/disabled/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/models/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/[provider]/[action]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/codex/import-token/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/commandcode/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/cursor/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/gitlab/pat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/grok-cli/bulk-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/iflow/cookie/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/import-cli-proxy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-authorize/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/kiro/social-exchange/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/api-key/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/xiaomi-mimo/login/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/auto-import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js +1 -1
- package/app/.next-cli-build/server/app/api/oauth/zed/import/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pricing/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/provider-nodes/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/overrides/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/[id]/test-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/client/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/kilo/free-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/suggested-models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/test-batch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/validate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js +1 -1
- package/app/.next-cli-build/server/app/api/providers/web-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/[id]/test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/cloudflare-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/deno-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/netlify-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/proxy-pools/vercel-deploy/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/health/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/restart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/start/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/pxpipe/stop/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/database/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/proxy-test/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/require-login/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/settings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tags/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/console-logs/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/load/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/save/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/send/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js +1 -1
- package/app/.next-cli-build/server/app/api/translator/translate/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/status/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-check/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-disable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-enable/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js +2 -2
- package/app/.next-cli-build/server/app/api/tunnel/tailscale-install/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/claude-reset/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/codex-reset-credits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/[connectionId]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/chart/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/history/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js +1 -1
- package/app/.next-cli-build/server/app/api/usage/providers/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-details/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/request-logs/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stats/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/usage/stream/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/api/chat/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/speech/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js +4 -4
- package/app/.next-cli-build/server/app/api/v1/audio/transcriptions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/audio/voices/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/chat/completions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/embeddings/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js +3 -3
- package/app/.next-cli-build/server/app/api/v1/images/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/count_tokens/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/messages/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/[...model]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/info/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/compact/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/responses/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/search/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/systemone/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/[id]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/edits/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/extensions/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/videos/generations/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1/web/fetch/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/[...path]/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js +1 -1
- package/app/.next-cli-build/server/app/api/v1beta/models/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/shutdown/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js +1 -1
- package/app/.next-cli-build/server/app/api/version/update/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page.js +1 -1
- package/app/.next-cli-build/server/app/callback/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/callback/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/callback.html +1 -1
- package/app/.next-cli-build/server/app/callback.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/callback.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/callback.segments/callback/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/basic-chat.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/!KGRhc2hib2FyZCk/dashboard/basic-chat/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/basic-chat.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/cli-tools.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/!KGRhc2hib2FyZCk/dashboard/cli-tools/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/cli-tools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/combos.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/!KGRhc2hib2FyZCk/dashboard/combos/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/combos.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/endpoint.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/!KGRhc2hib2FyZCk/dashboard/endpoint/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/endpoint.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/!KGRhc2hib2FyZCk/dashboard/media-providers/web/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/media-providers/web.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/mitm.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/!KGRhc2hib2FyZCk/dashboard/mitm/__PAGE__.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_full.segment.rsc +6 -6
- package/app/.next-cli-build/server/app/dashboard/mitm.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/profile.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/!KGRhc2hib2FyZCk/dashboard/profile/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/profile.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers/new.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/!KGRhc2hib2FyZCk/dashboard/providers/new/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers/new.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/providers.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/!KGRhc2hib2FyZCk/dashboard/providers/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/providers.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/!KGRhc2hib2FyZCk/dashboard/proxy-pools/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/proxy-pools.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/pxpipe.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/!KGRhc2hib2FyZCk/dashboard/pxpipe/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/pxpipe.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/quota.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/!KGRhc2hib2FyZCk/dashboard/quota/__PAGE__.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_full.segment.rsc +4 -4
- package/app/.next-cli-build/server/app/dashboard/quota.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/settings/pricing.segments/dashboard/settings/pricing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/skills.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/!KGRhc2hib2FyZCk/dashboard/skills/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/skills.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/token-saver.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/!KGRhc2hib2FyZCk/dashboard/token-saver/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/token-saver.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/translator.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/!KGRhc2hib2FyZCk/dashboard/translator/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard/translator.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.html +1 -1
- package/app/.next-cli-build/server/app/dashboard/usage.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/!KGRhc2hib2FyZCk/dashboard/usage/__PAGE__.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_full.segment.rsc +5 -5
- package/app/.next-cli-build/server/app/dashboard/usage.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/dashboard.html +1 -1
- package/app/.next-cli-build/server/app/dashboard.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/!KGRhc2hib2FyZCk/dashboard/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/dashboard.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/favicon.ico/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/index.html +1 -1
- package/app/.next-cli-build/server/app/index.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/index.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing/page.js +1 -1
- package/app/.next-cli-build/server/app/landing/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/landing/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/landing.html +1 -1
- package/app/.next-cli-build/server/app/landing.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/landing.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/landing.segments/landing/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login/page.js +1 -1
- package/app/.next-cli-build/server/app/login/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/login/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app/login.html +1 -1
- package/app/.next-cli-build/server/app/login.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_full.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/login.segments/_tree.segment.rsc +1 -1
- package/app/.next-cli-build/server/app/login.segments/login/__PAGE__.segment.rsc +3 -3
- package/app/.next-cli-build/server/app/manifest.webmanifest/route.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page.js +1 -1
- package/app/.next-cli-build/server/app/page.js.nft.json +1 -1
- package/app/.next-cli-build/server/app/page_client-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/app-paths-manifest.json +15 -15
- package/app/.next-cli-build/server/chunks/1051.js +1 -1
- package/app/.next-cli-build/server/chunks/{9999.js → 1297.js} +2 -2
- package/app/.next-cli-build/server/chunks/1350.js +1 -1
- package/app/.next-cli-build/server/chunks/{4597.js → 1568.js} +1 -1
- package/app/.next-cli-build/server/chunks/1757.js +1 -1
- package/app/.next-cli-build/server/chunks/24.js +1 -1
- package/app/.next-cli-build/server/chunks/2840.js +1 -0
- package/app/.next-cli-build/server/chunks/3225.js +1 -1
- package/app/.next-cli-build/server/chunks/3697.js +1 -1
- package/app/.next-cli-build/server/chunks/3885.js +1 -1
- package/app/.next-cli-build/server/chunks/3943.js +1 -1
- package/app/.next-cli-build/server/chunks/412.js +5 -5
- package/app/.next-cli-build/server/chunks/4123.js +1 -1
- package/app/.next-cli-build/server/chunks/4882.js +1 -1
- package/app/.next-cli-build/server/chunks/{3783.js → 5299.js} +4 -4
- package/app/.next-cli-build/server/chunks/5330.js +34 -34
- package/app/.next-cli-build/server/chunks/5485.js +1 -1
- package/app/.next-cli-build/server/chunks/5615.js +1 -1
- package/app/.next-cli-build/server/chunks/5932.js +1 -0
- package/app/.next-cli-build/server/chunks/6054.js +1 -1
- package/app/.next-cli-build/server/chunks/6070.js +1 -1
- package/app/.next-cli-build/server/chunks/615.js +1 -1
- package/app/.next-cli-build/server/chunks/6297.js +1 -0
- package/app/.next-cli-build/server/chunks/6513.js +1 -1
- package/app/.next-cli-build/server/chunks/6576.js +1 -0
- package/app/.next-cli-build/server/chunks/6690.js +1 -1
- package/app/.next-cli-build/server/chunks/6724.js +1 -1
- package/app/.next-cli-build/server/chunks/6763.js +1 -1
- package/app/.next-cli-build/server/chunks/7114.js +1 -1
- package/app/.next-cli-build/server/chunks/7187.js +1 -1
- package/app/.next-cli-build/server/chunks/7247.js +1 -1
- package/app/.next-cli-build/server/chunks/7373.js +1 -1
- package/app/.next-cli-build/server/chunks/7525.js +1 -1
- package/app/.next-cli-build/server/chunks/7552.js +1 -1
- package/app/.next-cli-build/server/chunks/7716.js +1 -1
- package/app/.next-cli-build/server/chunks/778.js +1 -1
- package/app/.next-cli-build/server/chunks/7843.js +51 -0
- package/app/.next-cli-build/server/chunks/8251.js +1 -1
- package/app/.next-cli-build/server/chunks/8402.js +1 -1
- package/app/.next-cli-build/server/chunks/8623.js +1 -1
- package/app/.next-cli-build/server/chunks/866.js +1 -0
- package/app/.next-cli-build/server/chunks/869.js +1 -1
- package/app/.next-cli-build/server/chunks/8895.js +3 -3
- package/app/.next-cli-build/server/chunks/8896.js +1 -1
- package/app/.next-cli-build/server/chunks/8920.js +1 -1
- package/app/.next-cli-build/server/chunks/8994.js +1 -1
- package/app/.next-cli-build/server/chunks/9198.js +1 -0
- package/app/.next-cli-build/server/chunks/9609.js +1 -1
- package/app/.next-cli-build/server/chunks/9927.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js +1 -1
- package/app/.next-cli-build/server/instrumentation.js.nft.json +1 -1
- package/app/.next-cli-build/server/middleware-build-manifest.js +1 -1
- package/app/.next-cli-build/server/middleware.js +3 -3
- package/app/.next-cli-build/server/middleware.js.nft.json +1 -1
- package/app/.next-cli-build/server/pages/404.html +1 -1
- package/app/.next-cli-build/server/pages/500.html +1 -1
- package/app/.next-cli-build/server/preview-props.json +3 -3
- package/app/.next-cli-build/server/server-reference-manifest.js +1 -1
- package/app/.next-cli-build/server/server-reference-manifest.json +1 -1
- package/app/.next-cli-build/static/chunks/1321-2fde166305caeddb.js +1 -0
- package/app/.next-cli-build/static/chunks/5497-832391bf809808e3.js +7 -0
- package/app/.next-cli-build/static/chunks/{9134-dce513bebf49f409.js → 761-32ad2b1ee5ca216d.js} +10 -10
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/[toolId]/{page-a1c51b0c7ad758ad.js → page-6abc904471ca5d9e.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/cli-tools/{page-407f76834b37cd6c.js → page-1f2d3a8531261f5a.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/media-providers/[kind]/[id]/{page-a09d4b437dec0273.js → page-624cd614b7bc1f8c.js} +11 -11
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/mitm/{page-f9f9e895a365e8d3.js → page-9ee6ec1d1ae265b8.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-efdb4d5aacfda8a6.js +27 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-371203e00dbb386a.js +4 -0
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/quota/{page-cb6752cc71bde85f.js → page-98e943d2e0230bb1.js} +1 -1
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-9121f5a9bc6ae4d6.js +1 -0
- package/app/node_modules/undici/README.md +29 -116
- package/app/node_modules/undici/docs/docs/api/Agent.md +42 -249
- package/app/node_modules/undici/docs/docs/api/BalancedPool.md +48 -246
- package/app/node_modules/undici/docs/docs/api/CacheStorage.md +13 -171
- package/app/node_modules/undici/docs/docs/api/CacheStore.md +98 -309
- package/app/node_modules/undici/docs/docs/api/Client.md +164 -412
- package/app/node_modules/undici/docs/docs/api/ClientStats.md +14 -80
- package/app/node_modules/undici/docs/docs/api/Connector.md +35 -118
- package/app/node_modules/undici/docs/docs/api/ContentType.md +25 -65
- package/app/node_modules/undici/docs/docs/api/Cookies.md +71 -122
- package/app/node_modules/undici/docs/docs/api/Debug.md +18 -34
- package/app/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +167 -368
- package/app/node_modules/undici/docs/docs/api/Dispatcher.md +1056 -505
- package/app/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +93 -105
- package/app/node_modules/undici/docs/docs/api/Errors.md +28 -603
- package/app/node_modules/undici/docs/docs/api/EventSource.md +13 -326
- package/app/node_modules/undici/docs/docs/api/Fetch.md +30 -691
- package/app/node_modules/undici/docs/docs/api/GlobalInstallation.md +96 -78
- package/app/node_modules/undici/docs/docs/api/H2CClient.md +176 -299
- package/app/node_modules/undici/docs/docs/api/MockAgent.md +314 -333
- package/app/node_modules/undici/docs/docs/api/MockCallHistory.md +98 -272
- package/app/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +26 -189
- package/app/node_modules/undici/docs/docs/api/MockClient.md +33 -151
- package/app/node_modules/undici/docs/docs/api/MockErrors.md +5 -56
- package/app/node_modules/undici/docs/docs/api/MockPool.md +258 -321
- package/app/node_modules/undici/docs/docs/api/Pool.md +41 -235
- package/app/node_modules/undici/docs/docs/api/PoolStats.md +13 -119
- package/app/node_modules/undici/docs/docs/api/ProxyAgent.md +160 -179
- package/app/node_modules/undici/docs/docs/api/RedirectHandler.md +55 -241
- package/app/node_modules/undici/docs/docs/api/RetryAgent.md +27 -113
- package/app/node_modules/undici/docs/docs/api/RetryHandler.md +79 -161
- package/app/node_modules/undici/docs/docs/api/RoundRobinPool.md +72 -166
- package/app/node_modules/undici/docs/docs/api/SnapshotAgent.md +517 -262
- package/app/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +196 -177
- package/app/node_modules/undici/docs/docs/api/Util.md +11 -68
- package/app/node_modules/undici/docs/docs/api/WebSocket.md +80 -475
- package/app/node_modules/undici/docs/docs/api/api-lifecycle.md +32 -100
- package/app/node_modules/undici/docs/docs/best-practices/client-certificate.md +0 -2
- package/app/node_modules/undici/docs/docs/best-practices/crawling.md +1 -3
- package/app/node_modules/undici/docs/docs/best-practices/mocking-request.md +7 -9
- package/app/node_modules/undici/docs/docs/best-practices/proxy.md +1 -3
- package/app/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +8 -10
- package/app/node_modules/undici/docs/docs/best-practices/writing-tests.md +0 -2
- package/app/node_modules/undici/index.js +2 -4
- package/app/node_modules/undici/lib/api/api-connect.js +11 -13
- package/app/node_modules/undici/lib/api/api-pipeline.js +13 -26
- package/app/node_modules/undici/lib/api/api-request.js +21 -51
- package/app/node_modules/undici/lib/api/api-stream.js +20 -81
- package/app/node_modules/undici/lib/api/api-upgrade.js +11 -21
- package/app/node_modules/undici/lib/api/readable.js +11 -46
- package/app/node_modules/undici/lib/cache/memory-cache-store.js +15 -50
- package/app/node_modules/undici/lib/cache/sqlite-cache-store.js +18 -142
- package/app/node_modules/undici/lib/core/connect.js +7 -46
- package/app/node_modules/undici/lib/core/constants.js +23 -11
- package/app/node_modules/undici/lib/core/errors.js +3 -60
- package/app/node_modules/undici/lib/core/request.js +19 -116
- package/app/node_modules/undici/lib/core/symbols.js +0 -5
- package/app/node_modules/undici/lib/core/util.js +88 -110
- package/app/node_modules/undici/lib/dispatcher/agent.js +32 -51
- package/app/node_modules/undici/lib/dispatcher/balanced-pool.js +27 -23
- package/app/node_modules/undici/lib/dispatcher/client-h1.js +89 -166
- package/app/node_modules/undici/lib/dispatcher/client-h2.js +373 -1306
- package/app/node_modules/undici/lib/dispatcher/client.js +34 -114
- package/app/node_modules/undici/lib/dispatcher/dispatcher-base.js +8 -10
- package/app/node_modules/undici/lib/dispatcher/dispatcher.js +5 -15
- package/app/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +13 -57
- package/app/node_modules/undici/lib/dispatcher/h2c-client.js +4 -4
- package/app/node_modules/undici/lib/dispatcher/pool-base.js +27 -160
- package/app/node_modules/undici/lib/dispatcher/pool.js +16 -127
- package/app/node_modules/undici/lib/dispatcher/proxy-agent.js +29 -128
- package/app/node_modules/undici/lib/dispatcher/retry-agent.js +0 -13
- package/app/node_modules/undici/lib/dispatcher/round-robin-pool.js +15 -47
- package/app/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +63 -153
- package/app/node_modules/undici/lib/global.js +14 -37
- package/app/node_modules/undici/lib/handler/cache-handler.js +60 -101
- package/app/node_modules/undici/lib/handler/cache-revalidation-handler.js +0 -10
- package/app/node_modules/undici/lib/handler/decorator-handler.js +5 -14
- package/app/node_modules/undici/lib/handler/deduplication-handler.js +38 -74
- package/app/node_modules/undici/lib/handler/redirect-handler.js +72 -83
- package/app/node_modules/undici/lib/handler/retry-handler.js +45 -227
- package/app/node_modules/undici/lib/handler/unwrap-handler.js +106 -0
- package/app/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/app/node_modules/undici/lib/interceptor/cache.js +28 -53
- package/app/node_modules/undici/lib/interceptor/decompress.js +5 -12
- package/app/node_modules/undici/lib/interceptor/deduplicate.js +4 -5
- package/app/node_modules/undici/lib/interceptor/dns.js +1 -23
- package/app/node_modules/undici/lib/interceptor/redirect.js +3 -3
- package/app/node_modules/undici/lib/interceptor/response-error.js +28 -72
- package/app/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/app/node_modules/undici/lib/llhttp/llhttp-wasm.js +1 -1
- package/app/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +1 -1
- package/app/node_modules/undici/lib/mock/mock-agent.js +9 -32
- package/app/node_modules/undici/lib/mock/mock-call-history.js +1 -1
- package/app/node_modules/undici/lib/mock/mock-interceptor.js +7 -25
- package/app/node_modules/undici/lib/mock/mock-utils.js +48 -292
- package/app/node_modules/undici/lib/mock/snapshot-agent.js +7 -25
- package/app/node_modules/undici/lib/mock/snapshot-recorder.js +5 -41
- package/app/node_modules/undici/lib/mock/snapshot-utils.js +2 -3
- package/app/node_modules/undici/lib/util/cache.js +14 -69
- package/app/node_modules/undici/lib/util/promise.js +28 -0
- package/app/node_modules/undici/lib/util/runtime-features.js +34 -3
- package/app/node_modules/undici/lib/web/cache/cache.js +16 -23
- package/app/node_modules/undici/lib/web/cache/cachestorage.js +5 -11
- package/app/node_modules/undici/lib/web/cookies/index.js +6 -16
- package/app/node_modules/undici/lib/web/cookies/parse.js +4 -7
- package/app/node_modules/undici/lib/web/cookies/util.js +1 -1
- package/app/node_modules/undici/lib/web/eventsource/eventsource.js +23 -66
- package/app/node_modules/undici/lib/web/eventsource/util.js +1 -32
- package/app/node_modules/undici/lib/web/fetch/body.js +25 -90
- package/app/node_modules/undici/lib/web/fetch/constants.js +1 -1
- package/app/node_modules/undici/lib/web/fetch/data-url.js +6 -6
- package/app/node_modules/undici/lib/web/fetch/formdata-parser.js +4 -12
- package/app/node_modules/undici/lib/web/fetch/formdata.js +26 -39
- package/app/node_modules/undici/lib/web/fetch/headers.js +33 -36
- package/app/node_modules/undici/lib/web/fetch/index.js +259 -297
- package/app/node_modules/undici/lib/web/fetch/request.js +170 -172
- package/app/node_modules/undici/lib/web/fetch/response.js +47 -44
- package/app/node_modules/undici/lib/web/fetch/util.js +9 -17
- package/app/node_modules/undici/lib/web/infra/index.js +14 -15
- package/app/node_modules/undici/lib/web/webidl/index.js +21 -7
- package/app/node_modules/undici/lib/web/websocket/connection.js +5 -16
- package/app/node_modules/undici/lib/web/websocket/events.js +26 -43
- package/app/node_modules/undici/lib/web/websocket/frame.js +7 -1
- package/app/node_modules/undici/lib/web/websocket/receiver.js +3 -13
- package/app/node_modules/undici/lib/web/websocket/stream/websocketerror.js +10 -13
- package/app/node_modules/undici/lib/web/websocket/stream/websocketstream.js +14 -29
- package/app/node_modules/undici/lib/web/websocket/websocket.js +40 -65
- package/app/node_modules/undici/package.json +13 -15
- package/app/node_modules/undici/types/agent.d.ts +2 -0
- package/app/node_modules/undici/types/api.d.ts +1 -1
- package/app/node_modules/undici/types/cache-interceptor.d.ts +0 -10
- package/app/node_modules/undici/types/client.d.ts +27 -64
- package/app/node_modules/undici/types/connector.d.ts +0 -1
- package/app/node_modules/undici/types/cookies.d.ts +1 -1
- package/app/node_modules/undici/types/diagnostics-channel.d.ts +1 -2
- package/app/node_modules/undici/types/dispatcher.d.ts +30 -8
- package/app/node_modules/undici/types/errors.d.ts +1 -26
- package/app/node_modules/undici/types/fetch.d.ts +1 -5
- package/app/node_modules/undici/types/formdata.d.ts +12 -6
- package/app/node_modules/undici/types/h2c-client.d.ts +7 -7
- package/app/node_modules/undici/types/handlers.d.ts +0 -2
- package/app/node_modules/undici/types/header.d.ts +0 -5
- package/app/node_modules/undici/types/index.d.ts +1 -3
- package/app/node_modules/undici/types/interceptors.d.ts +2 -7
- package/app/node_modules/undici/types/mock-agent.d.ts +10 -11
- package/app/node_modules/undici/types/mock-interceptor.d.ts +1 -5
- package/app/node_modules/undici/types/pool.d.ts +2 -0
- package/app/node_modules/undici/types/proxy-agent.d.ts +2 -9
- package/app/node_modules/undici/types/retry-handler.d.ts +3 -3
- package/app/node_modules/undici/types/round-robin-pool.d.ts +2 -0
- package/app/node_modules/undici/types/snapshot-agent.d.ts +0 -4
- package/app/node_modules/undici/types/socks5-proxy-agent.d.ts +2 -4
- package/app/node_modules/undici/types/utility.d.ts +4 -4
- package/app/node_modules/undici/types/webidl.d.ts +8 -13
- package/app/package.json +5 -2
- package/app/public/providers/sensenova-intl.png +0 -0
- package/app/src/shared/services/quotaAutoPing.js +17 -2
- package/package.json +2 -2
- package/app/.next-cli-build/server/chunks/1004.js +0 -1
- package/app/.next-cli-build/server/chunks/4480.js +0 -1
- package/app/.next-cli-build/server/chunks/4811.js +0 -51
- package/app/.next-cli-build/server/chunks/547.js +0 -1
- package/app/.next-cli-build/server/chunks/7573.js +0 -1
- package/app/.next-cli-build/server/chunks/8499.js +0 -1
- package/app/.next-cli-build/server/chunks/9102.js +0 -1
- package/app/.next-cli-build/static/chunks/1321-93eb6ca56f8fcb1e.js +0 -1
- package/app/.next-cli-build/static/chunks/5497-02b05d77d17bcdc3.js +0 -7
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/providers/[id]/page-74ca3f1d4f1ec046.js +0 -27
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/proxy-pools/page-b44167799c6c673a.js +0 -4
- package/app/.next-cli-build/static/chunks/app/(dashboard)/dashboard/usage/page-f16fd9091b7ae81c.js +0 -1
- package/app/node_modules/undici/docs/docs/api/Interceptors.md +0 -439
- package/app/node_modules/undici/docs/docs/best-practices/migrating-from-v7-to-v8.md +0 -233
- package/app/node_modules/undici/docs/docs/getting-started.md +0 -281
- package/app/node_modules/undici/docs/docs/index.md +0 -793
- package/app/node_modules/undici/docs/docs/site.json +0 -125
- package/app/node_modules/undici/docs/docs/type-map.json +0 -79
- package/app/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +0 -127
- package/app/node_modules/undici/lib/dispatcher/parser-h1.js +0 -1065
- package/app/node_modules/undici/lib/milo/LICENSE.md +0 -7
- package/app/node_modules/undici/lib/milo/no-simd.js +0 -1002
- package/app/node_modules/undici/lib/milo/simd.js +0 -1002
- package/app/node_modules/undici/types/dispatcher1-wrapper.d.ts +0 -7
- /package/app/.next-cli-build/static/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_buildManifest.js +0 -0
- /package/app/.next-cli-build/static/{erY6mcU6WqDeuYANqpCwQ → mEL-faV-rpAwzfhUdVe-c}/_ssgManifest.js +0 -0
|
@@ -1,84 +1,40 @@
|
|
|
1
|
-
# MockAgent
|
|
1
|
+
# Class: MockAgent
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
<!--type=module-->
|
|
5
|
-
<!-- source_link=lib/mock/mock-agent.js -->
|
|
3
|
+
Extends: `undici.Dispatcher`
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
A mocked Agent class that implements the Agent API. It allows one to intercept HTTP requests made through undici and return mocked responses instead.
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
undici and replies with programmed mock responses instead of contacting the
|
|
11
|
-
network. It is useful for testing code that performs HTTP requests without
|
|
12
|
-
relying on a live server.
|
|
7
|
+
## `new MockAgent([options])`
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
registered on the {MockClient} or {MockPool} instances returned by
|
|
16
|
-
[`mockAgent.get(origin)`][], and requests are routed through them once the
|
|
17
|
-
`MockAgent` is set as the dispatcher (for example through
|
|
18
|
-
[`setGlobalDispatcher()`][] or a per-request `dispatcher` option).
|
|
9
|
+
Arguments:
|
|
19
10
|
|
|
20
|
-
|
|
21
|
-
> [`setGlobalDispatcher()`][] only affects undici APIs that use the global
|
|
22
|
-
> dispatcher, such as `request()` and `fetch()`. It does not replace or
|
|
23
|
-
> monkeypatch {Pool} or {Client} instances that were created separately. To test
|
|
24
|
-
> code that accepts or creates a pool/client directly, pass the {MockPool} or
|
|
25
|
-
> {MockClient} returned by [`mockAgent.get(origin)`][] into that code.
|
|
11
|
+
* **options** `MockAgentOptions` (optional) - It extends the `Agent` options.
|
|
26
12
|
|
|
27
|
-
|
|
28
|
-
import { MockAgent } from 'undici'
|
|
29
|
-
|
|
30
|
-
const mockAgent = new MockAgent()
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Class: `MockAgent`
|
|
34
|
-
|
|
35
|
-
<!-- YAML
|
|
36
|
-
added: v4.0.0
|
|
37
|
-
-->
|
|
38
|
-
|
|
39
|
-
* Extends: {Dispatcher}
|
|
13
|
+
Returns: `MockAgent`
|
|
40
14
|
|
|
41
|
-
|
|
15
|
+
### Parameter: `MockAgentOptions`
|
|
42
16
|
|
|
43
|
-
|
|
17
|
+
Extends: [`AgentOptions`](/docs/docs/api/Agent.md#parameter-agentoptions)
|
|
44
18
|
|
|
45
|
-
|
|
46
|
-
added: v4.0.0
|
|
47
|
-
changes:
|
|
48
|
-
- version: v7.16.0
|
|
49
|
-
pr-url: https://github.com/nodejs/undici/pull/4479
|
|
50
|
-
description: Mock options are always normalized to an object internally.
|
|
51
|
-
-->
|
|
19
|
+
* **agent** `Agent` (optional) - Default: `new Agent([options])` - a custom agent encapsulated by the MockAgent.
|
|
52
20
|
|
|
53
|
-
* `
|
|
54
|
-
* Returns: {MockAgent}
|
|
21
|
+
* **ignoreTrailingSlash** `boolean` (optional) - Default: `false` - set the default value for `ignoreTrailingSlash` for interceptors.
|
|
55
22
|
|
|
56
|
-
|
|
57
|
-
intercept any request until mock interceptors are registered on the dispatchers
|
|
58
|
-
returned by [`mockAgent.get(origin)`][].
|
|
23
|
+
* **acceptNonStandardSearchParameters** `boolean` (optional) - Default: `false` - set to `true` if the matcher should also accept non standard search parameters such as multi-value items specified with `[]` (e.g. `param[]=1¶m[]=2¶m[]=3`) and multi-value items which values are comma separated (e.g. `param=1,2,3`).
|
|
59
24
|
|
|
60
|
-
|
|
25
|
+
### Example - Basic MockAgent instantiation
|
|
61
26
|
|
|
62
|
-
|
|
63
|
-
* `agent` {Dispatcher} (optional) A custom agent to be encapsulated by the
|
|
64
|
-
`MockAgent`. It must implement the `Agent` API (that is, expose a `dispatch`
|
|
65
|
-
function). **Default:** a new {Agent} constructed from `options`.
|
|
66
|
-
* `ignoreTrailingSlash` {boolean} (optional) Whether trailing slashes in the
|
|
67
|
-
request path are ignored when matching interceptors. **Default:** `false`.
|
|
68
|
-
* `acceptNonStandardSearchParameters` {boolean} (optional) Whether the matcher
|
|
69
|
-
also accepts URLs using non-standard search-parameter syntaxes, such as
|
|
70
|
-
multi-value items written with `[]` (for example `param[]=1¶m[]=2`) or
|
|
71
|
-
comma-separated values (for example `param=1,2,3`). **Default:** `false`.
|
|
72
|
-
* `enableCallHistory` {boolean} (optional) Whether call history recording is
|
|
73
|
-
enabled. See [`mockAgent.getCallHistory()`][]. **Default:** `false`.
|
|
27
|
+
This will instantiate the MockAgent. It will not do anything until registered as the agent to use with requests and mock interceptions are added.
|
|
74
28
|
|
|
75
|
-
```
|
|
29
|
+
```js
|
|
76
30
|
import { MockAgent } from 'undici'
|
|
77
31
|
|
|
78
32
|
const mockAgent = new MockAgent()
|
|
79
33
|
```
|
|
80
34
|
|
|
81
|
-
|
|
35
|
+
### Example - Basic MockAgent instantiation with custom agent
|
|
36
|
+
|
|
37
|
+
```js
|
|
82
38
|
import { Agent, MockAgent } from 'undici'
|
|
83
39
|
|
|
84
40
|
const agent = new Agent()
|
|
@@ -86,30 +42,34 @@ const agent = new Agent()
|
|
|
86
42
|
const mockAgent = new MockAgent({ agent })
|
|
87
43
|
```
|
|
88
44
|
|
|
89
|
-
|
|
45
|
+
## Instance Methods
|
|
46
|
+
|
|
47
|
+
### `MockAgent.get(origin)`
|
|
48
|
+
|
|
49
|
+
This method creates and retrieves MockPool or MockClient instances which can then be used to intercept HTTP requests. If the number of connections on the mock agent is set to 1, a MockClient instance is returned. Otherwise a MockPool instance is returned.
|
|
90
50
|
|
|
91
|
-
|
|
92
|
-
added: v4.0.0
|
|
93
|
-
-->
|
|
51
|
+
For subsequent `MockAgent.get` calls on the same origin, the same mock instance will be returned.
|
|
94
52
|
|
|
95
|
-
|
|
96
|
-
function form has the signature `(origin) => boolean`.
|
|
97
|
-
* Returns: {MockClient|MockPool}
|
|
53
|
+
Arguments:
|
|
98
54
|
|
|
99
|
-
|
|
100
|
-
given origin. When the `connections` option of the `MockAgent` is `1`, a
|
|
101
|
-
{MockClient} is returned; otherwise a {MockPool} is returned. Subsequent calls
|
|
102
|
-
with the same origin return the same instance.
|
|
55
|
+
* **origin** `string | RegExp | (value) => boolean` - a matcher for the pool origin to be retrieved from the MockAgent.
|
|
103
56
|
|
|
104
|
-
|
|
57
|
+
| Matcher type | Condition to pass |
|
|
58
|
+
|:------------:| -------------------------- |
|
|
59
|
+
| `string` | Exact match against string |
|
|
60
|
+
| `RegExp` | Regex must pass |
|
|
61
|
+
| `Function` | Function must return true |
|
|
105
62
|
|
|
106
|
-
|
|
107
|
-
| :----------: | ---------------------------- |
|
|
108
|
-
| `string` | Exact match against the value |
|
|
109
|
-
| `RegExp` | The regular expression matches |
|
|
110
|
-
| `Function` | The function returns `true` |
|
|
63
|
+
Returns: `MockClient | MockPool`.
|
|
111
64
|
|
|
112
|
-
|
|
65
|
+
| `MockAgentOptions` | Mock instance returned |
|
|
66
|
+
| -------------------- | ---------------------- |
|
|
67
|
+
| `connections === 1` | `MockClient` |
|
|
68
|
+
| `connections` > `1` | `MockPool` |
|
|
69
|
+
|
|
70
|
+
#### Example - Basic Mocked Request
|
|
71
|
+
|
|
72
|
+
```js
|
|
113
73
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
114
74
|
|
|
115
75
|
const mockAgent = new MockAgent()
|
|
@@ -127,7 +87,9 @@ for await (const data of body) {
|
|
|
127
87
|
}
|
|
128
88
|
```
|
|
129
89
|
|
|
130
|
-
|
|
90
|
+
#### Example - Basic Mocked Request with local mock agent dispatcher
|
|
91
|
+
|
|
92
|
+
```js
|
|
131
93
|
import { MockAgent, request } from 'undici'
|
|
132
94
|
|
|
133
95
|
const mockAgent = new MockAgent()
|
|
@@ -135,9 +97,10 @@ const mockAgent = new MockAgent()
|
|
|
135
97
|
const mockPool = mockAgent.get('http://localhost:3000')
|
|
136
98
|
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
137
99
|
|
|
138
|
-
const {
|
|
139
|
-
|
|
140
|
-
|
|
100
|
+
const {
|
|
101
|
+
statusCode,
|
|
102
|
+
body
|
|
103
|
+
} = await request('http://localhost:3000/foo', { dispatcher: mockAgent })
|
|
141
104
|
|
|
142
105
|
console.log('response received', statusCode) // response received 200
|
|
143
106
|
|
|
@@ -146,27 +109,31 @@ for await (const data of body) {
|
|
|
146
109
|
}
|
|
147
110
|
```
|
|
148
111
|
|
|
149
|
-
|
|
150
|
-
import { MockAgent } from 'undici'
|
|
151
|
-
|
|
152
|
-
async function getStatus (pool) {
|
|
153
|
-
const { statusCode } = await pool.request({
|
|
154
|
-
path: '/foo',
|
|
155
|
-
method: 'GET'
|
|
156
|
-
})
|
|
112
|
+
#### Example - Basic Mocked Request with local mock pool dispatcher
|
|
157
113
|
|
|
158
|
-
|
|
159
|
-
}
|
|
114
|
+
```js
|
|
115
|
+
import { MockAgent, request } from 'undici'
|
|
160
116
|
|
|
161
117
|
const mockAgent = new MockAgent()
|
|
118
|
+
|
|
162
119
|
const mockPool = mockAgent.get('http://localhost:3000')
|
|
120
|
+
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
121
|
+
|
|
122
|
+
const {
|
|
123
|
+
statusCode,
|
|
124
|
+
body
|
|
125
|
+
} = await request('http://localhost:3000/foo', { dispatcher: mockPool })
|
|
163
126
|
|
|
164
|
-
|
|
127
|
+
console.log('response received', statusCode) // response received 200
|
|
165
128
|
|
|
166
|
-
|
|
129
|
+
for await (const data of body) {
|
|
130
|
+
console.log('data', data.toString('utf8')) // data foo
|
|
131
|
+
}
|
|
167
132
|
```
|
|
168
133
|
|
|
169
|
-
|
|
134
|
+
#### Example - Basic Mocked Request with local mock client dispatcher
|
|
135
|
+
|
|
136
|
+
```js
|
|
170
137
|
import { MockAgent, request } from 'undici'
|
|
171
138
|
|
|
172
139
|
const mockAgent = new MockAgent({ connections: 1 })
|
|
@@ -174,9 +141,10 @@ const mockAgent = new MockAgent({ connections: 1 })
|
|
|
174
141
|
const mockClient = mockAgent.get('http://localhost:3000')
|
|
175
142
|
mockClient.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
176
143
|
|
|
177
|
-
const {
|
|
178
|
-
|
|
179
|
-
|
|
144
|
+
const {
|
|
145
|
+
statusCode,
|
|
146
|
+
body
|
|
147
|
+
} = await request('http://localhost:3000/foo', { dispatcher: mockClient })
|
|
180
148
|
|
|
181
149
|
console.log('response received', statusCode) // response received 200
|
|
182
150
|
|
|
@@ -185,64 +153,131 @@ for await (const data of body) {
|
|
|
185
153
|
}
|
|
186
154
|
```
|
|
187
155
|
|
|
188
|
-
|
|
156
|
+
#### Example - Basic Mocked requests with multiple intercepts
|
|
157
|
+
|
|
158
|
+
```js
|
|
189
159
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
190
160
|
|
|
191
161
|
const mockAgent = new MockAgent()
|
|
192
162
|
setGlobalDispatcher(mockAgent)
|
|
193
163
|
|
|
194
|
-
const mockPool = mockAgent.get(
|
|
164
|
+
const mockPool = mockAgent.get('http://localhost:3000')
|
|
195
165
|
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
166
|
+
mockPool.intercept({ path: '/hello'}).reply(200, 'hello')
|
|
196
167
|
|
|
197
|
-
const
|
|
168
|
+
const result1 = await request('http://localhost:3000/foo')
|
|
198
169
|
|
|
199
|
-
console.log('response received', statusCode) // response received 200
|
|
170
|
+
console.log('response received', result1.statusCode) // response received 200
|
|
171
|
+
|
|
172
|
+
for await (const data of result1.body) {
|
|
173
|
+
console.log('data', data.toString('utf8')) // data foo
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
const result2 = await request('http://localhost:3000/hello')
|
|
177
|
+
|
|
178
|
+
console.log('response received', result2.statusCode) // response received 200
|
|
179
|
+
|
|
180
|
+
for await (const data of result2.body) {
|
|
181
|
+
console.log('data', data.toString('utf8')) // data hello
|
|
182
|
+
}
|
|
200
183
|
```
|
|
201
184
|
|
|
202
|
-
|
|
185
|
+
#### Example - Mock different requests within the same file
|
|
186
|
+
|
|
187
|
+
```js
|
|
188
|
+
const { MockAgent, setGlobalDispatcher } = require('undici');
|
|
189
|
+
const agent = new MockAgent();
|
|
190
|
+
agent.disableNetConnect();
|
|
191
|
+
setGlobalDispatcher(agent);
|
|
192
|
+
describe('Test', () => {
|
|
193
|
+
it('200', async () => {
|
|
194
|
+
const mockAgent = agent.get('http://test.com');
|
|
195
|
+
// your test
|
|
196
|
+
});
|
|
197
|
+
it('200', async () => {
|
|
198
|
+
const mockAgent = agent.get('http://testing.com');
|
|
199
|
+
// your test
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
#### Example - Mocked request with query body, headers and trailers
|
|
205
|
+
|
|
206
|
+
```js
|
|
203
207
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
204
208
|
|
|
205
209
|
const mockAgent = new MockAgent()
|
|
206
210
|
setGlobalDispatcher(mockAgent)
|
|
207
211
|
|
|
208
|
-
const mockPool = mockAgent.get(
|
|
209
|
-
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
212
|
+
const mockPool = mockAgent.get('http://localhost:3000')
|
|
210
213
|
|
|
211
|
-
|
|
214
|
+
mockPool.intercept({
|
|
215
|
+
path: '/foo?hello=there&see=ya',
|
|
216
|
+
method: 'POST',
|
|
217
|
+
body: 'form1=data1&form2=data2'
|
|
218
|
+
}).reply(200, { foo: 'bar' }, {
|
|
219
|
+
headers: { 'content-type': 'application/json' },
|
|
220
|
+
trailers: { 'Content-MD5': 'test' }
|
|
221
|
+
})
|
|
222
|
+
|
|
223
|
+
const {
|
|
224
|
+
statusCode,
|
|
225
|
+
headers,
|
|
226
|
+
trailers,
|
|
227
|
+
body
|
|
228
|
+
} = await request('http://localhost:3000/foo?hello=there&see=ya', {
|
|
229
|
+
method: 'POST',
|
|
230
|
+
body: 'form1=data1&form2=data2'
|
|
231
|
+
})
|
|
212
232
|
|
|
213
233
|
console.log('response received', statusCode) // response received 200
|
|
234
|
+
console.log('headers', headers) // { 'content-type': 'application/json' }
|
|
235
|
+
|
|
236
|
+
for await (const data of body) {
|
|
237
|
+
console.log('data', data.toString('utf8')) // '{"foo":"bar"}'
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
console.log('trailers', trailers) // { 'content-md5': 'test' }
|
|
214
241
|
```
|
|
215
242
|
|
|
216
|
-
|
|
243
|
+
#### Example - Mocked request with origin regex
|
|
217
244
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
-->
|
|
245
|
+
```js
|
|
246
|
+
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
221
247
|
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
* Returns: {boolean}
|
|
248
|
+
const mockAgent = new MockAgent()
|
|
249
|
+
setGlobalDispatcher(mockAgent)
|
|
225
250
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
dispatcher for `options.origin` exists, records the call in the call history
|
|
229
|
-
when enabled, and forwards the request to the underlying agent. It is normally
|
|
230
|
-
invoked indirectly through higher-level methods such as
|
|
231
|
-
[`mockAgent.request()`][].
|
|
251
|
+
const mockPool = mockAgent.get(new RegExp('http://localhost:3000'))
|
|
252
|
+
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
232
253
|
|
|
233
|
-
|
|
234
|
-
|
|
254
|
+
const {
|
|
255
|
+
statusCode,
|
|
256
|
+
body
|
|
257
|
+
} = await request('http://localhost:3000/foo')
|
|
258
|
+
|
|
259
|
+
console.log('response received', statusCode) // response received 200
|
|
260
|
+
|
|
261
|
+
for await (const data of body) {
|
|
262
|
+
console.log('data', data.toString('utf8')) // data foo
|
|
263
|
+
}
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
#### Example - Mocked request with origin function
|
|
267
|
+
|
|
268
|
+
```js
|
|
269
|
+
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
235
270
|
|
|
236
271
|
const mockAgent = new MockAgent()
|
|
272
|
+
setGlobalDispatcher(mockAgent)
|
|
237
273
|
|
|
238
|
-
const mockPool = mockAgent.get('http://localhost:3000')
|
|
274
|
+
const mockPool = mockAgent.get((origin) => origin === 'http://localhost:3000')
|
|
239
275
|
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
240
276
|
|
|
241
|
-
const {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
})
|
|
277
|
+
const {
|
|
278
|
+
statusCode,
|
|
279
|
+
body
|
|
280
|
+
} = await request('http://localhost:3000/foo')
|
|
246
281
|
|
|
247
282
|
console.log('response received', statusCode) // response received 200
|
|
248
283
|
|
|
@@ -251,19 +286,15 @@ for await (const data of body) {
|
|
|
251
286
|
}
|
|
252
287
|
```
|
|
253
288
|
|
|
254
|
-
### `
|
|
289
|
+
### `MockAgent.close()`
|
|
255
290
|
|
|
256
|
-
|
|
257
|
-
added: v4.0.0
|
|
258
|
-
-->
|
|
291
|
+
Closes the mock agent and waits for registered mock pools and clients to also close before resolving.
|
|
259
292
|
|
|
260
|
-
|
|
261
|
-
and clients have closed.
|
|
293
|
+
Returns: `Promise<void>`
|
|
262
294
|
|
|
263
|
-
|
|
264
|
-
registered mock pools and clients to close.
|
|
295
|
+
#### Example - clean up after tests are complete
|
|
265
296
|
|
|
266
|
-
```
|
|
297
|
+
```js
|
|
267
298
|
import { MockAgent, setGlobalDispatcher } from 'undici'
|
|
268
299
|
|
|
269
300
|
const mockAgent = new MockAgent()
|
|
@@ -272,18 +303,49 @@ setGlobalDispatcher(mockAgent)
|
|
|
272
303
|
await mockAgent.close()
|
|
273
304
|
```
|
|
274
305
|
|
|
275
|
-
### `
|
|
306
|
+
### `MockAgent.dispatch(options, handlers)`
|
|
307
|
+
|
|
308
|
+
Implements [`Agent.dispatch(options, handlers)`](/docs/docs/api/Agent.md#parameter-agentdispatchoptions).
|
|
276
309
|
|
|
277
|
-
|
|
278
|
-
added: v4.0.0
|
|
279
|
-
-->
|
|
310
|
+
### `MockAgent.request(options[, callback])`
|
|
280
311
|
|
|
281
|
-
|
|
312
|
+
See [`Dispatcher.request(options [, callback])`](/docs/docs/api/Dispatcher.md#dispatcherrequestoptions-callback).
|
|
282
313
|
|
|
283
|
-
|
|
284
|
-
intercepted.
|
|
314
|
+
#### Example - MockAgent request
|
|
285
315
|
|
|
286
|
-
```
|
|
316
|
+
```js
|
|
317
|
+
import { MockAgent } from 'undici'
|
|
318
|
+
|
|
319
|
+
const mockAgent = new MockAgent()
|
|
320
|
+
|
|
321
|
+
const mockPool = mockAgent.get('http://localhost:3000')
|
|
322
|
+
mockPool.intercept({ path: '/foo' }).reply(200, 'foo')
|
|
323
|
+
|
|
324
|
+
const {
|
|
325
|
+
statusCode,
|
|
326
|
+
body
|
|
327
|
+
} = await mockAgent.request({
|
|
328
|
+
origin: 'http://localhost:3000',
|
|
329
|
+
path: '/foo',
|
|
330
|
+
method: 'GET'
|
|
331
|
+
})
|
|
332
|
+
|
|
333
|
+
console.log('response received', statusCode) // response received 200
|
|
334
|
+
|
|
335
|
+
for await (const data of body) {
|
|
336
|
+
console.log('data', data.toString('utf8')) // data foo
|
|
337
|
+
}
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
### `MockAgent.deactivate()`
|
|
341
|
+
|
|
342
|
+
This method disables mocking in MockAgent.
|
|
343
|
+
|
|
344
|
+
Returns: `void`
|
|
345
|
+
|
|
346
|
+
#### Example - Deactivate Mocking
|
|
347
|
+
|
|
348
|
+
```js
|
|
287
349
|
import { MockAgent, setGlobalDispatcher } from 'undici'
|
|
288
350
|
|
|
289
351
|
const mockAgent = new MockAgent()
|
|
@@ -292,19 +354,15 @@ setGlobalDispatcher(mockAgent)
|
|
|
292
354
|
mockAgent.deactivate()
|
|
293
355
|
```
|
|
294
356
|
|
|
295
|
-
### `
|
|
357
|
+
### `MockAgent.activate()`
|
|
296
358
|
|
|
297
|
-
|
|
298
|
-
added: v4.0.0
|
|
299
|
-
-->
|
|
359
|
+
This method enables mocking in a MockAgent instance. When instantiated, a MockAgent is automatically activated. Therefore, this method is only effective after `MockAgent.deactivate` has been called.
|
|
300
360
|
|
|
301
|
-
|
|
361
|
+
Returns: `void`
|
|
302
362
|
|
|
303
|
-
|
|
304
|
-
when instantiated, so this method is only required after
|
|
305
|
-
[`mockAgent.deactivate()`][] has been called.
|
|
363
|
+
#### Example - Activate Mocking
|
|
306
364
|
|
|
307
|
-
```
|
|
365
|
+
```js
|
|
308
366
|
import { MockAgent, setGlobalDispatcher } from 'undici'
|
|
309
367
|
|
|
310
368
|
const mockAgent = new MockAgent()
|
|
@@ -317,23 +375,21 @@ mockAgent.deactivate()
|
|
|
317
375
|
mockAgent.activate()
|
|
318
376
|
```
|
|
319
377
|
|
|
320
|
-
### `
|
|
378
|
+
### `MockAgent.enableNetConnect([host])`
|
|
379
|
+
|
|
380
|
+
When requests are not matched in a MockAgent intercept, a real HTTP request is attempted. We can control this further through the use of `enableNetConnect`. This is achieved by defining host matchers so only matching requests will be attempted.
|
|
321
381
|
|
|
322
|
-
|
|
323
|
-
added: v4.0.0
|
|
324
|
-
-->
|
|
382
|
+
When using a string, it should only include the **hostname and optionally, the port**. In addition, calling this method multiple times with a string will allow all HTTP requests that match these values.
|
|
325
383
|
|
|
326
|
-
|
|
327
|
-
used it should only contain the hostname and, optionally, the port. The
|
|
328
|
-
function form has the signature `(host) => boolean`. When omitted, all
|
|
329
|
-
non-matching requests are allowed to perform a real request.
|
|
330
|
-
* Returns: {undefined}
|
|
384
|
+
Arguments:
|
|
331
385
|
|
|
332
|
-
|
|
333
|
-
dispatcher are allowed to perform a real HTTP request. Calling this method
|
|
334
|
-
multiple times with a string appends each value to the list of allowed hosts.
|
|
386
|
+
* **host** `string | RegExp | (value) => boolean` - (optional)
|
|
335
387
|
|
|
336
|
-
|
|
388
|
+
Returns: `void`
|
|
389
|
+
|
|
390
|
+
#### Example - Allow all non-matching urls to be dispatched in a real HTTP request
|
|
391
|
+
|
|
392
|
+
```js
|
|
337
393
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
338
394
|
|
|
339
395
|
const mockAgent = new MockAgent()
|
|
@@ -345,7 +401,9 @@ await request('http://example.com')
|
|
|
345
401
|
// A real request is made
|
|
346
402
|
```
|
|
347
403
|
|
|
348
|
-
|
|
404
|
+
#### Example - Allow requests matching a host string to make real requests
|
|
405
|
+
|
|
406
|
+
```js
|
|
349
407
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
350
408
|
|
|
351
409
|
const mockAgent = new MockAgent()
|
|
@@ -364,167 +422,75 @@ await request('http://example-3.com')
|
|
|
364
422
|
// Will throw
|
|
365
423
|
```
|
|
366
424
|
|
|
367
|
-
|
|
425
|
+
#### Example - Allow requests matching a host regex to make real requests
|
|
426
|
+
|
|
427
|
+
```js
|
|
368
428
|
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
369
429
|
|
|
370
430
|
const mockAgent = new MockAgent()
|
|
371
431
|
setGlobalDispatcher(mockAgent)
|
|
372
432
|
|
|
373
433
|
mockAgent.enableNetConnect(new RegExp('example.com'))
|
|
374
|
-
mockAgent.enableNetConnect((host) => host === 'example.org')
|
|
375
434
|
|
|
376
435
|
await request('http://example.com')
|
|
377
436
|
// A real request is made
|
|
378
437
|
```
|
|
379
438
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
<!-- YAML
|
|
383
|
-
added: v4.0.0
|
|
384
|
-
-->
|
|
385
|
-
|
|
386
|
-
* Returns: {undefined}
|
|
387
|
-
|
|
388
|
-
Causes every request that is not matched by a mock interceptor to throw,
|
|
389
|
-
disallowing real HTTP requests.
|
|
439
|
+
#### Example - Allow requests matching a host function to make real requests
|
|
390
440
|
|
|
391
|
-
```
|
|
392
|
-
import { MockAgent, request } from 'undici'
|
|
441
|
+
```js
|
|
442
|
+
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
393
443
|
|
|
394
444
|
const mockAgent = new MockAgent()
|
|
445
|
+
setGlobalDispatcher(mockAgent)
|
|
395
446
|
|
|
396
|
-
mockAgent.
|
|
447
|
+
mockAgent.enableNetConnect((value) => value === 'example.com')
|
|
397
448
|
|
|
398
449
|
await request('http://example.com')
|
|
399
|
-
//
|
|
450
|
+
// A real request is made
|
|
400
451
|
```
|
|
401
452
|
|
|
402
|
-
### `
|
|
453
|
+
### `MockAgent.disableNetConnect()`
|
|
403
454
|
|
|
404
|
-
|
|
405
|
-
added: v7.5.0
|
|
406
|
-
-->
|
|
455
|
+
This method causes all requests to throw when requests are not matched in a MockAgent intercept.
|
|
407
456
|
|
|
408
|
-
|
|
457
|
+
Returns: `void`
|
|
409
458
|
|
|
410
|
-
|
|
411
|
-
and can be retrieved through [`mockAgent.getCallHistory()`][]. Call history can
|
|
412
|
-
also be enabled at construction time with the `enableCallHistory` option.
|
|
459
|
+
#### Example - Disable all non-matching requests by throwing an error for each
|
|
413
460
|
|
|
414
|
-
```
|
|
415
|
-
import { MockAgent } from 'undici'
|
|
461
|
+
```js
|
|
462
|
+
import { MockAgent, request } from 'undici'
|
|
416
463
|
|
|
417
464
|
const mockAgent = new MockAgent()
|
|
418
465
|
|
|
419
|
-
mockAgent.
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
### `mockAgent.disableCallHistory()`
|
|
423
|
-
|
|
424
|
-
<!-- YAML
|
|
425
|
-
added: v7.5.0
|
|
426
|
-
-->
|
|
427
|
-
|
|
428
|
-
* Returns: {MockAgent} The same `MockAgent` instance, for chaining.
|
|
429
|
-
|
|
430
|
-
Disables call history recording. Subsequent calls are no longer registered.
|
|
431
|
-
|
|
432
|
-
```mjs
|
|
433
|
-
import { MockAgent } from 'undici'
|
|
434
|
-
|
|
435
|
-
const mockAgent = new MockAgent({ enableCallHistory: true })
|
|
436
|
-
|
|
437
|
-
mockAgent.disableCallHistory()
|
|
438
|
-
```
|
|
439
|
-
|
|
440
|
-
### `mockAgent.getCallHistory()`
|
|
441
|
-
|
|
442
|
-
<!-- YAML
|
|
443
|
-
added: v7.5.0
|
|
444
|
-
-->
|
|
445
|
-
|
|
446
|
-
* Returns: {MockCallHistory|undefined} The {MockCallHistory} instance, or
|
|
447
|
-
`undefined` when call history is not enabled.
|
|
448
|
-
|
|
449
|
-
Returns the call history instance, which records every request made through the
|
|
450
|
-
`MockAgent` (whether intercepted or not). Call history is not enabled by
|
|
451
|
-
default; enable it with the `enableCallHistory` option or
|
|
452
|
-
[`mockAgent.enableCallHistory()`][].
|
|
453
|
-
|
|
454
|
-
```mjs displayName="Inspect recorded calls"
|
|
455
|
-
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
456
|
-
|
|
457
|
-
const mockAgent = new MockAgent({ enableCallHistory: true })
|
|
458
|
-
setGlobalDispatcher(mockAgent)
|
|
459
|
-
|
|
460
|
-
await request('http://example.com', { query: { item: 1 } })
|
|
461
|
-
|
|
462
|
-
mockAgent.getCallHistory()?.firstCall()
|
|
463
|
-
// Returns
|
|
464
|
-
// MockCallHistoryLog {
|
|
465
|
-
// body: undefined,
|
|
466
|
-
// headers: undefined,
|
|
467
|
-
// method: 'GET',
|
|
468
|
-
// origin: 'http://example.com',
|
|
469
|
-
// fullUrl: 'http://example.com/?item=1',
|
|
470
|
-
// path: '/',
|
|
471
|
-
// searchParams: { item: '1' },
|
|
472
|
-
// protocol: 'http:',
|
|
473
|
-
// host: 'example.com',
|
|
474
|
-
// port: ''
|
|
475
|
-
// }
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
### `mockAgent.clearCallHistory()`
|
|
479
|
-
|
|
480
|
-
<!-- YAML
|
|
481
|
-
added: v7.5.0
|
|
482
|
-
-->
|
|
483
|
-
|
|
484
|
-
* Returns: {undefined}
|
|
485
|
-
|
|
486
|
-
Clears the call history, deleting every recorded {MockCallHistoryLog} on the
|
|
487
|
-
{MockCallHistory} instance. It is a no-op when call history has never been
|
|
488
|
-
enabled.
|
|
489
|
-
|
|
490
|
-
```mjs
|
|
491
|
-
import { MockAgent } from 'undici'
|
|
492
|
-
|
|
493
|
-
const mockAgent = new MockAgent({ enableCallHistory: true })
|
|
466
|
+
mockAgent.disableNetConnect()
|
|
494
467
|
|
|
495
|
-
|
|
468
|
+
await request('http://example.com')
|
|
469
|
+
// Will throw
|
|
496
470
|
```
|
|
497
471
|
|
|
498
|
-
### `
|
|
499
|
-
|
|
500
|
-
<!-- YAML
|
|
501
|
-
added: v5.1.0
|
|
502
|
-
-->
|
|
472
|
+
### `MockAgent.pendingInterceptors()`
|
|
503
473
|
|
|
504
|
-
|
|
505
|
-
with an additional `origin` {string} property.
|
|
474
|
+
This method returns any pending interceptors registered on a mock agent. A pending interceptor meets one of the following criteria:
|
|
506
475
|
|
|
507
|
-
|
|
508
|
-
|
|
476
|
+
- Is registered with neither `.times(<number>)` nor `.persist()`, and has not been invoked;
|
|
477
|
+
- Is persistent (i.e., registered with `.persist()`) and has not been invoked;
|
|
478
|
+
- Is registered with `.times(<number>)` and has not been invoked `<number>` of times.
|
|
509
479
|
|
|
510
|
-
|
|
511
|
-
been invoked.
|
|
512
|
-
* It is persistent (registered with `.persist()`) and has not been invoked.
|
|
513
|
-
* It is registered with `.times(<number>)` and has not been invoked `<number>`
|
|
514
|
-
times.
|
|
480
|
+
Returns: `PendingInterceptor[]` (where `PendingInterceptor` is a `MockDispatch` with an additional `origin: string`)
|
|
515
481
|
|
|
516
|
-
|
|
517
|
-
import { MockAgent } from 'undici'
|
|
482
|
+
#### Example - List all pending interceptors
|
|
518
483
|
|
|
519
|
-
|
|
520
|
-
|
|
484
|
+
```js
|
|
485
|
+
const agent = new MockAgent()
|
|
486
|
+
agent.disableNetConnect()
|
|
521
487
|
|
|
522
|
-
|
|
488
|
+
agent
|
|
523
489
|
.get('https://example.com')
|
|
524
490
|
.intercept({ method: 'GET', path: '/' })
|
|
525
491
|
.reply(200)
|
|
526
492
|
|
|
527
|
-
const pendingInterceptors =
|
|
493
|
+
const pendingInterceptors = agent.pendingInterceptors()
|
|
528
494
|
// Returns [
|
|
529
495
|
// {
|
|
530
496
|
// timesInvoked: 0,
|
|
@@ -548,35 +514,26 @@ const pendingInterceptors = mockAgent.pendingInterceptors()
|
|
|
548
514
|
// ]
|
|
549
515
|
```
|
|
550
516
|
|
|
551
|
-
### `
|
|
552
|
-
|
|
553
|
-
<!-- YAML
|
|
554
|
-
added: v5.1.0
|
|
555
|
-
-->
|
|
517
|
+
### `MockAgent.assertNoPendingInterceptors([options])`
|
|
556
518
|
|
|
557
|
-
|
|
558
|
-
* `pendingInterceptorsFormatter` {Object} An object exposing a
|
|
559
|
-
`format(pendingInterceptors)` method used to render the pending interceptors
|
|
560
|
-
in the thrown error message. **Default:** a built-in formatter that prints a
|
|
561
|
-
table.
|
|
562
|
-
* Returns: {undefined}
|
|
519
|
+
This method throws if the mock agent has any pending interceptors. A pending interceptor meets one of the following criteria:
|
|
563
520
|
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
521
|
+
- Is registered with neither `.times(<number>)` nor `.persist()`, and has not been invoked;
|
|
522
|
+
- Is persistent (i.e., registered with `.persist()`) and has not been invoked;
|
|
523
|
+
- Is registered with `.times(<number>)` and has not been invoked `<number>` of times.
|
|
567
524
|
|
|
568
|
-
|
|
569
|
-
import { MockAgent } from 'undici'
|
|
525
|
+
#### Example - Check that there are no pending interceptors
|
|
570
526
|
|
|
571
|
-
|
|
572
|
-
|
|
527
|
+
```js
|
|
528
|
+
const agent = new MockAgent()
|
|
529
|
+
agent.disableNetConnect()
|
|
573
530
|
|
|
574
|
-
|
|
531
|
+
agent
|
|
575
532
|
.get('https://example.com')
|
|
576
533
|
.intercept({ method: 'GET', path: '/' })
|
|
577
534
|
.reply(200)
|
|
578
535
|
|
|
579
|
-
|
|
536
|
+
agent.assertNoPendingInterceptors()
|
|
580
537
|
// Throws an UndiciError with the following message:
|
|
581
538
|
//
|
|
582
539
|
// 1 interceptor is pending:
|
|
@@ -588,35 +545,59 @@ mockAgent.assertNoPendingInterceptors()
|
|
|
588
545
|
// └─────────┴────────┴───────────────────────┴──────┴─────────────┴────────────┴─────────────┴───────────┘
|
|
589
546
|
```
|
|
590
547
|
|
|
591
|
-
|
|
548
|
+
#### Example - access call history on MockAgent
|
|
592
549
|
|
|
593
|
-
|
|
594
|
-
added: v5.3.0
|
|
595
|
-
-->
|
|
550
|
+
You can register every call made within a MockAgent to be able to retrieve the body, headers and so on.
|
|
596
551
|
|
|
597
|
-
|
|
598
|
-
[`mockAgent.deactivate()`][] has been called.
|
|
552
|
+
This is not enabled by default.
|
|
599
553
|
|
|
600
|
-
|
|
601
|
-
|
|
554
|
+
```js
|
|
555
|
+
import { MockAgent, setGlobalDispatcher, request } from 'undici'
|
|
602
556
|
|
|
603
|
-
|
|
604
|
-
|
|
557
|
+
const mockAgent = new MockAgent({ enableCallHistory: true })
|
|
558
|
+
setGlobalDispatcher(mockAgent)
|
|
605
559
|
|
|
606
|
-
|
|
560
|
+
await request('http://example.com', { query: { item: 1 }})
|
|
561
|
+
|
|
562
|
+
mockAgent.getCallHistory()?.firstCall()
|
|
563
|
+
// Returns
|
|
564
|
+
// MockCallHistoryLog {
|
|
565
|
+
// body: undefined,
|
|
566
|
+
// headers: undefined,
|
|
567
|
+
// method: 'GET',
|
|
568
|
+
// origin: 'http://example.com',
|
|
569
|
+
// fullUrl: 'http://example.com/?item=1',
|
|
570
|
+
// path: '/',
|
|
571
|
+
// searchParams: { item: '1' },
|
|
572
|
+
// protocol: 'http:',
|
|
573
|
+
// host: 'example.com',
|
|
574
|
+
// port: ''
|
|
575
|
+
// }
|
|
576
|
+
```
|
|
607
577
|
|
|
608
|
-
|
|
578
|
+
#### Example - clear call history
|
|
609
579
|
|
|
610
|
-
|
|
580
|
+
```js
|
|
581
|
+
const mockAgent = new MockAgent()
|
|
611
582
|
|
|
612
|
-
|
|
583
|
+
mockAgent.clearAllCallHistory()
|
|
613
584
|
```
|
|
614
585
|
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
586
|
+
#### Example - call history instance class method
|
|
587
|
+
|
|
588
|
+
```js
|
|
589
|
+
const mockAgent = new MockAgent()
|
|
590
|
+
|
|
591
|
+
const mockAgentHistory = mockAgent.getCallHistory()
|
|
592
|
+
|
|
593
|
+
mockAgentHistory?.calls() // returns an array of MockCallHistoryLogs
|
|
594
|
+
mockAgentHistory?.firstCall() // returns the first MockCallHistoryLogs or undefined
|
|
595
|
+
mockAgentHistory?.lastCall() // returns the last MockCallHistoryLogs or undefined
|
|
596
|
+
mockAgentHistory?.nthCall(3) // returns the third MockCallHistoryLogs or undefined
|
|
597
|
+
mockAgentHistory?.filterCalls({ path: '/endpoint', hash: '#hash-value' }) // returns an Array of MockCallHistoryLogs WHERE path === /endpoint OR hash === #hash-value
|
|
598
|
+
mockAgentHistory?.filterCalls({ path: '/endpoint', hash: '#hash-value' }, { operator: 'AND' }) // returns an Array of MockCallHistoryLogs WHERE path === /endpoint AND hash === #hash-value
|
|
599
|
+
mockAgentHistory?.filterCalls(/"data": "{}"/) // returns an Array of MockCallHistoryLogs where any value match regexp
|
|
600
|
+
mockAgentHistory?.filterCalls('application/json') // returns an Array of MockCallHistoryLogs where any value === 'application/json'
|
|
601
|
+
mockAgentHistory?.filterCalls((log) => log.path === '/endpoint') // returns an Array of MockCallHistoryLogs when given function returns true
|
|
602
|
+
mockAgentHistory?.clear() // clear the history
|
|
603
|
+
```
|