| 99 | const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms)); |
| 100 | |
| 101 | interface FetchOptions { |
| 102 | /** Bypass the on-disk cache for this request. */ |
| 103 | noCache?: boolean; |
| 104 | /** 404 is a legitimate answer for "does this tag exist?" style lookups. */ |
| 105 | allow404?: boolean; |
| 106 | } |
| 107 | |
| 108 | /** |
| 109 | * GET a JSON endpoint, with cache, retries and rate-limit awareness. |
nothing calls this directly
no outgoing calls
no test coverage detected