(source: Record<string, unknown>)
| 267 | } |
| 268 | |
| 269 | function formatHostPort(source: Record<string, unknown>): string | undefined { |
| 270 | const address = stringValue(source.address) |
| 271 | const port = numberValue(source.port) |
| 272 | if (!address) |
| 273 | return undefined |
| 274 | return port === undefined ? address : `${address}:${port}` |
| 275 | } |
| 276 | |
| 277 | function formatDetailedRequestError(source: unknown): string | undefined { |
| 278 | const record = asRecord(source) |
no test coverage detected