MCPcopy
hub / github.com/gitify-app/gitify / extractHostVersion

Function extractHostVersion

src/renderer/utils/auth/utils.ts:166–172  ·  view source on GitHub ↗
(version: string | null)

Source from the content-addressed store, hash-verified

164 * @returns A normalized semver string, or `"latest"` if unset.
165 */
166export function extractHostVersion(version: string | null): string | undefined {
167 if (version) {
168 return semver.valid(semver.coerce(version)) ?? undefined;
169 }
170
171 return 'latest';
172}
173
174/**
175 * Build the GitHub authentication base URL for the given hostname.

Callers 1

refreshAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected