mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
0.2.5 initial commit
Makefile incomplete
This commit is contained in:
21
ui/src/app/services/emver.service.ts
Normal file
21
ui/src/app/services/emver.service.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class Emver {
|
||||
private e: typeof import('@start9labs/emver')
|
||||
constructor () { }
|
||||
|
||||
async init () {
|
||||
this.e = await import('@start9labs/emver')
|
||||
}
|
||||
|
||||
compare (lhs: string, rhs: string): number {
|
||||
return this.e.compare(lhs, rhs)
|
||||
}
|
||||
|
||||
satisfies (version: string, range: string): boolean {
|
||||
return this.e.satisfies(version, range)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user