defaulting compression level

This commit is contained in:
Vallie Joseph
2024-03-28 19:15:10 +00:00
parent 0a0e70d1cd
commit 59593338a6
3 changed files with 11 additions and 12 deletions

View File

@@ -30,7 +30,7 @@ export async function createZipUploadStream(
`Creating Artifact archive with compressionLevel: ${compressionLevel}`
)
const zlibOptions = {
zlib: {level: compressionLevel, bufferSize: getUploadChunkSize()}
zlib: {level: DEFAULT_COMPRESSION_LEVEL, bufferSize: getUploadChunkSize()}
}
const zip = new ZipStream.default(zlibOptions)
// register callbacks for various events during the zip lifecycle