(options: {
currentVersion: string
latestVersion?: string | null
})
| 11 | } |
| 12 | |
| 13 | export function buildWebUpdateCheckResult(options: { |
| 14 | currentVersion: string |
| 15 | latestVersion?: string | null |
| 16 | }): WebUpdateCheckResult { |
| 17 | const latestVersion = options.latestVersion || options.currentVersion |
| 18 | return { |
| 19 | hasUpdate: |
| 20 | !isDevelopmentPlaceholderVersion(options.currentVersion) && |
| 21 | isNewerStableVersion(latestVersion, options.currentVersion), |
| 22 | currentVersion: options.currentVersion, |
| 23 | latestVersion, |
| 24 | } |
| 25 | } |
no test coverage detected