MCPcopy Create free account
hub / github.com/47ng/nuqs / resolveChannel

Function resolveChannel

packages/scripts/lib/commit-graph.ts:53–59  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

51// supplies the channel explicitly; this derivation runs only at finalize, on a
52// real tag.
53export function resolveChannel(ref: string): Channel {
54 if (isGA(ref)) return 'stable'
55 if (isBeta(ref)) return 'beta'
56 throw new Error(
57 `resolveChannel: "${ref}" is neither a GA (vX.Y.Z) nor a beta (vX.Y.Z-beta.N) tag`
58 )
59}
60
61// --- Pure core: range resolution ------------------------------------------
62

Callers 2

resolveChannelInfoFunction · 0.90

Calls 2

isGAFunction · 0.90
isBetaFunction · 0.90

Tested by

no test coverage detected