( currentVersion: string | undefined, latestVersion: string | null, )
| 140 | * or no published tag for that channel. |
| 141 | */ |
| 142 | export const isUpdateAvailable = ( |
| 143 | currentVersion: string | undefined, |
| 144 | latestVersion: string | null, |
| 145 | ): boolean => { |
| 146 | if (currentVersion === undefined) return false; |
| 147 | if (resolveComparisonChannel(currentVersion) === null) return false; |
| 148 | if (latestVersion === null) return false; |
| 149 | return compareVersions(currentVersion, latestVersion) === -1; |
| 150 | }; |
| 151 | |
| 152 | // ── dist-tags resolution ────────────────────────────────────────────────── |
| 153 |
no test coverage detected