MCPcopy Create free account
hub / github.com/dmno-dev/bumpy / compareVersions

Function compareVersions

packages/bumpy/src/core/semver.ts:42–44  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

40
41/** Compare two versions: -1 if a < b, 0 if equal, 1 if a > b */
42export function compareVersions(a: string, b: string): number {
43 return compare(a, b);
44}
45
46export function isValidVersion(version: string): boolean {
47 return isValid(version);

Callers 1

semver.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…