(
url: string,
options: RequestInit = {}
)
| 1 | export default function safeFetch( |
| 2 | url: string, |
| 3 | options: RequestInit = {} |
| 4 | ): Promise<Response> { |
| 5 | return fetch(url, { |
| 6 | ...options, |
| 7 | headers: { |
| 8 | "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36", |
| 9 | ...options.headers, |
| 10 | }, |
| 11 | }); |
| 12 | } |
no outgoing calls
no test coverage detected