MCPcopy
hub / github.com/codeaashu/claude-code / lte

Function lte

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

Source from the content-addressed store, hash-verified

38}
39
40export function lte(a: string, b: string): boolean {
41 if (typeof Bun !== 'undefined') {
42 return Bun.semver.order(a, b) <= 0
43 }
44 return getNpmSemver().lte(a, b, { loose: true })
45}
46
47export function satisfies(version: string, range: string): boolean {
48 if (typeof Bun !== 'undefined') {

Callers

nothing calls this directly

Calls 1

getNpmSemverFunction · 0.85

Tested by

no test coverage detected