fix(core): update
This commit is contained in:
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartarchive',
|
||||
version: '4.0.1',
|
||||
version: '4.0.2',
|
||||
description: 'work with archives'
|
||||
}
|
||||
|
@ -107,7 +107,8 @@ export class SmartArchive {
|
||||
plugins.smartstream.createTransformFunction<IAnalyzedResult, any>(
|
||||
async (analyzedResultChunk) => {
|
||||
if (analyzedResultChunk.fileType.mime === 'application/x-tar') {
|
||||
(analyzedResultChunk.decompressionStream as plugins.tarStream.Extract).on(
|
||||
const tarStream = analyzedResultChunk.decompressionStream as plugins.tarStream.Extract;
|
||||
tarStream.on(
|
||||
'entry',
|
||||
async (header, stream, next) => {
|
||||
const streamfile = plugins.smartfile.StreamFile.fromStream(stream, header.name);
|
||||
@ -117,6 +118,9 @@ export class SmartArchive {
|
||||
});
|
||||
}
|
||||
);
|
||||
tarStream.on('finish', function () {
|
||||
streamFileIntake.signalEnd();
|
||||
})
|
||||
analyzedResultChunk.resultStream.pipe(analyzedResultChunk.decompressionStream);
|
||||
} else if (analyzedResultChunk.isArchive && analyzedResultChunk.decompressionStream) {
|
||||
analyzedResultChunk.resultStream
|
||||
|
Reference in New Issue
Block a user