import { npmRegistryDownloadsAPI } from '../data/registries'; import { fetchFromRegistry } from './fetch-from-registry'; export async function fetchDownloadsFromRegistry({ endpoint, registryDownloadsAPI = npmRegistryDownloadsAPI, cached, }: { endpoint: string; registryDownloadsAPI?: string; cached?: boolean; }): Promise { return fetchFromRegistry({ endpoint, registry: registryDownloadsAPI, mirrors: [], cached, }); }