From 6defe19df1c32d8828489d699f401ca378dad99b Mon Sep 17 00:00:00 2001 From: Vallie Joseph Date: Thu, 28 Mar 2024 15:25:37 +0000 Subject: [PATCH] replacing constructor for zipstream --- packages/artifact/src/internal/upload/zip.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/artifact/src/internal/upload/zip.ts b/packages/artifact/src/internal/upload/zip.ts index cacfdce0..f80778d7 100644 --- a/packages/artifact/src/internal/upload/zip.ts +++ b/packages/artifact/src/internal/upload/zip.ts @@ -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')