MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / lte

Function lte

restored-src/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 2

getNpmSemverFunction · 0.85
lteMethod · 0.45

Tested by

no test coverage detected