MCPcopy Index your code
hub / github.com/MALSync/MALSync / getCurrentVersion

Function getCurrentVersion

src/utils/version.ts:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2import semverGt from 'semver/functions/gt';
3
4export function getCurrentVersion(): string {
5 return api.storage.version();
6}
7
8export function greaterOrEqualCurrentVersion(version: string): boolean {
9 return semverGte(version, getCurrentVersion());

Callers 2

greaterCurrentVersionFunction · 0.85

Calls 1

versionMethod · 0.80

Tested by

no test coverage detected