MCPcopy Index your code
hub / github.com/codeaashu/claude-code / order

Function order

src/utils/semver.ts:54–59  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

52}
53
54export function order(a: string, b: string): -1 | 0 | 1 {
55 if (typeof Bun !== 'undefined') {
56 return Bun.semver.order(a, b)
57 }
58 return getNpmSemver().compare(a, b, { loose: true })
59}
60

Callers

nothing calls this directly

Calls 1

getNpmSemverFunction · 0.85

Tested by

no test coverage detected