release: prepare v2.0.83
This commit is contained in:
+5
-2
@@ -1039,8 +1039,11 @@ export function normalizeLoadedSession(raw: unknown): SessionState {
|
||||
targetPath: asText(item.targetPath),
|
||||
metadataRenameTargetPath: asText(item.metadataRenameTargetPath) || undefined,
|
||||
resumable: item.resumable === undefined ? true : Boolean(item.resumable),
|
||||
attempts: clampNumber(item.attempts, 0, 0, 10_000),
|
||||
lastError: asText(item.lastError),
|
||||
attempts: clampNumber(item.attempts, 0, 0, 10_000),
|
||||
archiveRecoveryRedownloads: item.archiveRecoveryRedownloads === undefined
|
||||
? undefined
|
||||
: clampNumber(item.archiveRecoveryRedownloads, 0, 0, 1),
|
||||
lastError: asText(item.lastError),
|
||||
fullStatus: asText(item.fullStatus),
|
||||
onlineStatus: VALID_ONLINE_STATUSES.has(onlineStatusRaw) ? onlineStatusRaw as "online" | "offline" | "checking" : undefined,
|
||||
createdAt: clampNumber(item.createdAt, now, 0, Number.MAX_SAFE_INTEGER),
|
||||
|
||||
Reference in New Issue
Block a user