(currentCount)
| 26 | } |
| 27 | |
| 28 | export async function starCount(currentCount) { |
| 29 | const ttl = 3600 // 1 hour |
| 30 | return localStorageCache('starCount', ttl, async () => { |
| 31 | return await fetchStarCount(currentCount) |
| 32 | }) |
| 33 | } |
| 34 | |
| 35 | export async function fetchStarCount(currentCount) { |
| 36 | const resp = await fetch('https://api.github.com/repos/electric-sql/pglite') |
nothing calls this directly
no test coverage detected