MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / isNewerSemver

Function isNewerSemver

packages/cli/src/utils/updateCheck.ts:11–17  ·  view source on GitHub ↗

Returns true if `a` is newer than `b` per semver (handles alpha, beta, rc).

(a: string, b: string)

Source from the content-addressed store, hash-verified

9
10/** Returns true if `a` is newer than `b` per semver (handles alpha, beta, rc). */
11function isNewerSemver(a: string, b: string): boolean {
12 try {
13 return compareVersions(a, b) > 0;
14 } catch {
15 return a !== b;
16 }
17}
18
19export interface UpdateCheckResult {
20 current: string;

Callers 3

checkForUpdateFunction · 0.85
fallbackResultFunction · 0.85
getUpdateMetaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected