From 7327bf1bd0d93cd5503d686cf3c6e53b25821648 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 17 Mar 2024 00:35:17 +0100 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/classes.smartarchive.ts | 6 +++--- ts/classes.ziptools.ts | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index f92ad3d..5991568 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartarchive', - version: '4.0.20', + version: '4.0.21', description: 'work with archives' } diff --git a/ts/classes.smartarchive.ts b/ts/classes.smartarchive.ts index d35cfe4..f4bba4b 100644 --- a/ts/classes.smartarchive.ts +++ b/ts/classes.smartarchive.ts @@ -82,10 +82,10 @@ export class SmartArchive { streamFileStream.pipe( new plugins.smartstream.SmartDuplex({ objectMode: true, - writeFunction: async (chunkArg: plugins.smartfile.StreamFile, streamtools) => { + writeFunction: async (streamFileArg: plugins.smartfile.StreamFile, streamtools) => { const done = plugins.smartpromise.defer(); - console.log(chunkArg.relativeFilePath ? chunkArg.relativeFilePath : 'no relative path'); - const streamFile = chunkArg; + console.log(streamFileArg.relativeFilePath ? streamFileArg.relativeFilePath : 'no relative path'); + const streamFile = streamFileArg; const readStream = await streamFile.createReadStream(); await plugins.smartfile.fs.ensureDir(targetDir); const writePath = plugins.path.join( diff --git a/ts/classes.ziptools.ts b/ts/classes.ziptools.ts index 3185be4..43177cf 100644 --- a/ts/classes.ziptools.ts +++ b/ts/classes.ziptools.ts @@ -11,7 +11,7 @@ class DecompressZipTransform extends plugins.smartstream.SmartDuplex