mirror of
https://github.com/Zagrios/bs-manager.git
synced 2026-07-03 14:08:25 +02:00
[chore] added a beat saber version outdated warning in the version view
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { coerce, lt, valid } from "semver";
|
||||
import { tryit } from "./error.helpers";
|
||||
|
||||
export function safeLt(a: string, b: string): boolean {
|
||||
const { result } = tryit(() => lt(valid(coerce(a)), valid(coerce(b))));
|
||||
return result ?? false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user