(value, fallback)
| 5496 | })); |
| 5497 | |
| 5498 | function parsePositiveInt(value, fallback) { |
| 5499 | const parsed = Number.parseInt(`${value ?? ''}`, 10); |
| 5500 | return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback; |
| 5501 | } |
| 5502 | |
| 5503 | function concatBytes(chunks) { |
| 5504 | const merged = new Uint8Array(chunks.reduce((sum, { length }) => sum + length, 0)); |
no outgoing calls
no test coverage detected