MCPcopy Create free account
hub / github.com/alibaba/open-code-review / shouldShowUpdateHint

Function shouldShowUpdateHint

scripts/version.js:33–38  ·  view source on GitHub ↗
(hintVersion, installedVersion)

Source from the content-addressed store, hash-verified

31}
32
33function shouldShowUpdateHint(hintVersion, installedVersion) {
34 if (!SEMVER_RE.test(hintVersion) || !SEMVER_RE.test(installedVersion)) {
35 return false;
36 }
37 return semverGt(hintVersion, installedVersion);
38}
39
40module.exports = {
41 SEMVER_RE,

Callers 2

version.test.jsFile · 0.85
ocr.jsFile · 0.85

Calls 1

semverGtFunction · 0.85

Tested by

no test coverage detected