(ms)
| 1053 | // ---- Rate-limit / retry helpers (ported verbatim) ---- |
| 1054 | |
| 1055 | function sleep(ms) { |
| 1056 | return new Promise((resolve) => setTimeout(resolve, ms)); |
| 1057 | } |
| 1058 | |
| 1059 | // Parse a non-negative integer env value, falling back to defaultVal when the |
| 1060 | // value is missing, NaN, or negative. Unlike `parseInt(...) || default`, this |
no outgoing calls
no test coverage detected