()
| 141 | } |
| 142 | |
| 143 | function getUploadTimeoutMs(): number { |
| 144 | const value = (settings.store as { uploadTimeoutMs?: number; }).uploadTimeoutMs; |
| 145 | if (!Number.isFinite(value) || !value) { |
| 146 | return 60000; |
| 147 | } |
| 148 | |
| 149 | return Math.max(5000, value); |
| 150 | } |
| 151 | |
| 152 | async function fetchWithTimeout(url: string, options: RequestInit): Promise<Response> { |
| 153 | const controller = new AbortController(); |
no outgoing calls
no test coverage detected