MCPcopy
hub / github.com/npmx-dev/npmx.dev / [...pkg].get.ts

File [...pkg].get.ts

server/api/registry/compare/[...pkg].get.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import * as v from 'valibot'
2import { PackageCompareQuerySchema } from '#shared/schemas/package'
3
4const CACHE_VERSION = 1

Callers

nothing calls this directly

Calls 6

parsePackageParamsFunction · 0.85
parseVersionRangeFunction · 0.85
getPackageFileTreeFunction · 0.85
buildCompareResponseFunction · 0.85
handleApiErrorFunction · 0.85
fetchPackageJsonFunction · 0.70

Tested by

no test coverage detected