(error: unknown)
| 48 | } |
| 49 | |
| 50 | export function isBrokenPipeError(error: unknown): boolean { |
| 51 | if (!error || typeof error !== "object") return false; |
| 52 | const { code } = error as ErrorWithCode; |
| 53 | return typeof code === "string" && BROKEN_PIPE_CODES.has(code); |
| 54 | } |
| 55 | |
| 56 | export function getIdleShutdownMs(value: string | undefined): number { |
| 57 | const normalized = value?.trim().toLowerCase(); |
no outgoing calls
no test coverage detected