mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 20:43:41 +00:00
feat: enable `noImplicitAny` chore: remove sync data access fix loading package data for affected dependencies chore: properly get alt marketplace data update patchdb client to allow for emit on undefined values
19 lines
398 B
TypeScript
19 lines
398 B
TypeScript
import { Injectable } from '@angular/core'
|
|
import * as emver from '@start9labs/emver'
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class Emver {
|
|
constructor() {}
|
|
|
|
compare(lhs: string, rhs: string): number | null {
|
|
if (!lhs || !rhs) return null
|
|
return emver.compare(lhs, rhs)
|
|
}
|
|
|
|
satisfies(version: string, range: string): boolean {
|
|
return emver.satisfies(version, range)
|
|
}
|
|
}
|