(
cachedFetch: CachedFetchFunction,
ref: RepoRef,
options: Parameters<typeof $fetch>[1] = {},
)
| 507 | } |
| 508 | |
| 509 | export async function getRepoMeta( |
| 510 | cachedFetch: CachedFetchFunction, |
| 511 | ref: RepoRef, |
| 512 | options: Parameters<typeof $fetch>[1] = {}, |
| 513 | ): Promise<RepoMeta | null> { |
| 514 | const adapter = getProviderAdapter(ref) |
| 515 | if (!adapter) return null |
| 516 | |
| 517 | const links = adapter.links(ref) |
| 518 | return await adapter.fetchMeta(cachedFetch, ref, links, options) |
| 519 | } |
| 520 | |
| 521 | export async function getRepositoryStars( |
| 522 | cachedFetch: CachedFetchFunction, |
no test coverage detected