MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isNewerUpdateVersion

Function isNewerUpdateVersion

apps/desktop/src/main/updater-state.ts:51–54  ·  view source on GitHub ↗
(incomingVersion: string, declinedVersion: string)

Source from the content-addressed store, hash-verified

49};
50
51const isNewerUpdateVersion = (incomingVersion: string, declinedVersion: string): boolean => {
52 const comparison = compareUpdateVersions(incomingVersion, declinedVersion);
53 return comparison === null ? incomingVersion !== declinedVersion : comparison > 0;
54};
55
56export const planUpdateCheck = (input: {
57 readonly stagedVersion: string | null;

Callers 1

planDownloadedUpdateFunction · 0.85

Calls 1

compareUpdateVersionsFunction · 0.85

Tested by

no test coverage detected