chore: replace task logs output compress

This commit is contained in:
engigu
2025-12-22 17:42:19 +08:00
parent be3527cb61
commit 17c6036893
2 changed files with 30 additions and 25 deletions
+2 -2
View File
@@ -9,8 +9,8 @@ export function decompressFromBase64(compressed: string): string {
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i)
}
// Decompress gzip
const decompressed = pako.ungzip(bytes, { to: 'string' })
// Decompress zlib
const decompressed = pako.inflate(bytes, { to: 'string' })
return decompressed
} catch (e) {
console.error('Decompress error:', e)