(url: string, options: RequestInit)
| 429 | } |
| 430 | |
| 431 | async function safeFetch(url: string, options: RequestInit) { |
| 432 | try { |
| 433 | return await fetch(url, addStandardRequestOptions(options)); |
| 434 | } catch (error) { |
| 435 | logger.debug("Error while trying to connect to endpoint", { |
| 436 | url, |
| 437 | error, |
| 438 | }); |
| 439 | } |
| 440 | } |
| 441 | |
| 442 | function addStandardRequestOptions(options: RequestInit) { |
| 443 | return { |
no test coverage detected
searching dependent graphs…