(requestInit?: RequestInit)
| 310 | } |
| 311 | |
| 312 | function requestInitWithCache(requestInit?: RequestInit): RequestInit { |
| 313 | try { |
| 314 | const withCache: RequestInit = { |
| 315 | ...requestInit, |
| 316 | cache: "no-cache", |
| 317 | }; |
| 318 | |
| 319 | const _ = new Request("http://localhost", withCache); |
| 320 | |
| 321 | return withCache; |
| 322 | } catch (error) { |
| 323 | return requestInit ?? {}; |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | const addFormValue = async (form: FormData, key: string, value: unknown): Promise<void> => { |
| 328 | if (value === undefined) return; |
no outgoing calls
no test coverage detected
searching dependent graphs…