MCPcopy Create free account
hub / github.com/ProtonDriveApps/sdk / isUpdateNeeded

Function isUpdateNeeded

cli/src/api/apiRequirements.ts:90–100  ·  view source on GitHub ↗
(clientVersion: string, minVersion: string)

Source from the content-addressed store, hash-verified

88}
89
90function isUpdateNeeded(clientVersion: string, minVersion: string): boolean {
91 if (!clientVersion || !minVersion) {
92 return false;
93 }
94
95 const cmp = compareSemverLoose(clientVersion, minVersion);
96 if (cmp === null) {
97 return false;
98 }
99 return cmp < 0;
100}
101
102function parseKeyValuePairs(raw: string): Map<string, string> {
103 const out = new Map<string, string>();

Callers 1

Calls 1

compareSemverLooseFunction · 0.85

Tested by

no test coverage detected