(error: unknown)
| 346 | * etc). Used in upload retry loops so aborts short-circuit instead of retrying. |
| 347 | */ |
| 348 | export function isAbortError(error: unknown): boolean { |
| 349 | return ( |
| 350 | typeof error === 'object' && |
| 351 | error !== null && |
| 352 | 'name' in error && |
| 353 | String((error as { name?: unknown }).name) === 'AbortError' |
| 354 | ) |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * Heuristic: whether `error` is a transient network/connection failure that's |
no outgoing calls
no test coverage detected