(input)
| 93 | return Number.isFinite(parsed) && parsed > 0 ? parsed : fallback; |
| 94 | } |
| 95 | function parseNonNegativeInt(value, fallback = 0) { |
| 96 | const parsed = Number.parseInt(String(value || ""), 10); |
| 97 | return Number.isFinite(parsed) && parsed >= 0 ? parsed : fallback; |
| 98 | } |
| 99 | function parseCompactEvery(value) { |
| 100 | const duration = parseDuration(value); |
| 101 | if (duration !== null) |
| 102 | return { compactEveryMs: duration }; |
no outgoing calls
no test coverage detected