Returns true if `a` is newer than `b` per semver (handles alpha, beta, rc).
(a: string, b: string)
| 9 | |
| 10 | /** Returns true if `a` is newer than `b` per semver (handles alpha, beta, rc). */ |
| 11 | function isNewerSemver(a: string, b: string): boolean { |
| 12 | try { |
| 13 | return compareVersions(a, b) > 0; |
| 14 | } catch { |
| 15 | return a !== b; |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | export interface UpdateCheckResult { |
| 20 | current: string; |
no outgoing calls
no test coverage detected