cosmetics plus a slew of little frontend rendering bugs

This commit is contained in:
Matt Hill
2021-08-13 16:16:24 -06:00
committed by Aiden McClelland
parent c18a119c70
commit 7dc53a4e85
44 changed files with 518 additions and 618 deletions

View File

@@ -1,24 +1,21 @@
import { Injectable } from '@angular/core'
import * as emver from '@start9labs/emver'
@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 {
console.log('EMVER', this.e)
const compare = this.e.compare(lhs, rhs)
console.log('EMVER', emver)
const compare = emver.compare(lhs, rhs)
console.log('COMPARE', compare)
return compare
}
satisfies (version: string, range: string): boolean {
return this.e.satisfies(version, range)
return emver.satisfies(version, range)
}
}