MCPcopy Index your code
hub / github.com/scriptscat/scriptcat / ltever

Function ltever

src/pkg/utils/semver.ts:8–10  ·  view source on GitHub ↗
(newVersion: string, oldVersion: string)

Source from the content-addressed store, hash-verified

6
7// 对比版本大小 (ltever相容旧版用)
8export const ltever = (newVersion: string, oldVersion: string): boolean => {
9 return versionCompare(newVersion, oldVersion) <= 0;
10};
11
12// 参考 https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/version/format
13// 考虑 UserScript 的脚本号设计进行简化及修改

Callers 3

utils.test.tsFile · 0.90
_checkUpdateAvailableMethod · 0.90
_checkUpdateAvailableMethod · 0.90

Calls 1

versionCompareFunction · 0.85

Tested by

no test coverage detected