MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / buildWebUpdateCheckResult

Function buildWebUpdateCheckResult

apps/cli/src/http/routes/web/update-check.ts:13–25  ·  view source on GitHub ↗
(options: {
  currentVersion: string
  latestVersion?: string | null
})

Source from the content-addressed store, hash-verified

11}
12
13export function buildWebUpdateCheckResult(options: {
14 currentVersion: string
15 latestVersion?: string | null
16}): WebUpdateCheckResult {
17 const latestVersion = options.latestVersion || options.currentVersion
18 return {
19 hasUpdate:
20 !isDevelopmentPlaceholderVersion(options.currentVersion) &&
21 isNewerStableVersion(latestVersion, options.currentVersion),
22 currentVersion: options.currentVersion,
23 latestVersion,
24 }
25}

Callers 2

registerWebRoutesFunction · 0.90

Calls 2

isNewerStableVersionFunction · 0.90

Tested by

no test coverage detected