(
url: string,
options: RequestInit = {}
)
| 47 | // Helper for unified JSON request/response handling |
| 48 | // --------------------------------------------------------------------------- |
| 49 | async function requestJson( |
| 50 | url: string, |
| 51 | options: RequestInit = {} |
| 52 | ): Promise<any> { |
| 53 | const resp = await fetchWithErrorHandling(url, options); |
| 54 | return resp.json(); |
| 55 | } |
| 56 | |
| 57 | // --------------------------------------------------------------------------- |
| 58 | // Configuration helpers |
no test coverage detected