[chore] added a beat saber version outdated warning in the version view

This commit is contained in:
MathieuG-P
2024-11-24 21:26:47 +01:00
parent 229a149f00
commit 7b658de727
17 changed files with 170 additions and 13 deletions
+8
View File
@@ -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;
}