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