fix: typecheck

This commit is contained in:
suyao 2026-01-27 15:44:54 +08:00
parent 95e9c8afb5
commit 6977a898ce
No known key found for this signature in database

View File

@ -243,7 +243,7 @@ function normalizeVersion(tag: string): string {
}
function detectChannel(version: string): UpgradeChannel | null {
const parsed = semver.parse(version, { loose: true, includePrerelease: true })
const parsed = semver.parse(version, { loose: true })
if (!parsed) {
return null
}
@ -375,7 +375,7 @@ function resolveVersionKey(existingKey: string | null, segment: SegmentDefinitio
}
function getBaseVersion(version: string): string | null {
const parsed = semver.parse(version, { loose: true, includePrerelease: true })
const parsed = semver.parse(version, { loose: true })
if (!parsed) {
return null
}