( url: string, cacheTtl: number, )
| 83 | `${packageScope(isVariable)}/${id}`; |
| 84 | |
| 85 | export const fetchCachedJson = async <T>( |
| 86 | url: string, |
| 87 | cacheTtl: number, |
| 88 | ): Promise<T> => |
| 89 | (await ( |
| 90 | await fetchWithCache(url, { |
| 91 | cacheEverything: true, |
| 92 | cacheTtl, |
| 93 | }) |
| 94 | ).json()) as T; |
| 95 | |
| 96 | export const fetchPackageVersions = async ( |
| 97 | id: string, |
nothing calls this directly
no test coverage detected