(body: Record<string, unknown>, status: number)
| 761 | } |
| 762 | |
| 763 | function json(body: Record<string, unknown>, status: number): Response { |
| 764 | return new Response(JSON.stringify(body), { |
| 765 | status, |
| 766 | headers: { 'content-type': `application/json` }, |
| 767 | }) |
| 768 | } |
| 769 | |
| 770 | function formatFetchError(error: unknown): string { |
| 771 | if (error instanceof Error) { |
no outgoing calls
no test coverage detected