(a: string, b: string)
| 38 | } |
| 39 | |
| 40 | export 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 | |
| 47 | export function satisfies(version: string, range: string): boolean { |
| 48 | if (typeof Bun !== 'undefined') { |
nothing calls this directly
no test coverage detected