fix(core): update
This commit is contained in:
parent
39fb6e8ad1
commit
b860aca103
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartarchive',
|
name: '@push.rocks/smartarchive',
|
||||||
version: '4.0.22',
|
version: '4.0.23',
|
||||||
description: 'work with archives'
|
description: 'A library for working with archive files, providing utilities for compressing and decompressing data.'
|
||||||
}
|
}
|
||||||
|
@ -122,6 +122,7 @@ export class SmartArchive {
|
|||||||
if (analyzedResultChunk.fileType?.mime === 'application/x-tar') {
|
if (analyzedResultChunk.fileType?.mime === 'application/x-tar') {
|
||||||
const tarStream = analyzedResultChunk.decompressionStream as plugins.tarStream.Extract;
|
const tarStream = analyzedResultChunk.decompressionStream as plugins.tarStream.Extract;
|
||||||
tarStream.on('entry', async (header, stream, next) => {
|
tarStream.on('entry', async (header, stream, next) => {
|
||||||
|
console.log(`tar stream file: ${header.name}`);
|
||||||
const streamfile = plugins.smartfile.StreamFile.fromStream(stream, header.name);
|
const streamfile = plugins.smartfile.StreamFile.fromStream(stream, header.name);
|
||||||
streamFileIntake.push(streamfile);
|
streamFileIntake.push(streamfile);
|
||||||
stream.on('end', function () {
|
stream.on('end', function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user