1
0
Fork 0

replacing constructor for zipstream

pull/1700/head
Vallie Joseph 2024-03-28 15:25:37 +00:00
parent 6e4aebbd4e
commit 6defe19df1
1 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,5 @@
import * as stream from 'stream'
import * as packer from 'zip-stream'
import {ZipStream} from 'zip-stream'
import * as core from '@actions/core'
import {createReadStream} from 'fs'
import {UploadZipSpecification} from './upload-zip-specification'
@ -33,7 +32,7 @@ export async function createZipUploadStream(
const zlibOptions = {
zlib: {level: compressionLevel, bufferSize: getUploadChunkSize()}
}
const zip = new packer(zlibOptions)
const zip = new ZipStream(zlibOptions)
// register callbacks for various events during the zip lifecycle
zip.on('error', err => {
core.error('An error has occurred while creating the zip file for upload')