From fe8a5713f03bbb055441ca275b441486dc4130cc Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sat, 8 Jun 2024 12:46:43 +0200 Subject: [PATCH] fix(core): update --- dist_ts/index.d.ts | 1 + dist_ts/index.js | 3 ++- ts/00_commitinfo_data.ts | 2 +- ts/classes.gziptools.ts | 5 +---- ts/classes.smartarchive.ts | 6 +++--- ts/classes.ziptools.ts | 5 +---- ts/index.ts | 1 + 7 files changed, 10 insertions(+), 13 deletions(-) diff --git a/dist_ts/index.d.ts b/dist_ts/index.d.ts index 6c3bece..baf4ed9 100644 --- a/dist_ts/index.d.ts +++ b/dist_ts/index.d.ts @@ -1,3 +1,4 @@ export * from './classes.smartarchive.js'; export * from './classes.tartools.js'; export * from './classes.ziptools.js'; +export * from './classes.gziptools.js'; diff --git a/dist_ts/index.js b/dist_ts/index.js index 277ea44..1b5c24f 100644 --- a/dist_ts/index.js +++ b/dist_ts/index.js @@ -1,4 +1,5 @@ export * from './classes.smartarchive.js'; export * from './classes.tartools.js'; export * from './classes.ziptools.js'; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyx1QkFBdUIsQ0FBQyJ9 \ No newline at end of file +export * from './classes.gziptools.js'; +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDJCQUEyQixDQUFDO0FBQzFDLGNBQWMsdUJBQXVCLENBQUM7QUFDdEMsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLHdCQUF3QixDQUFDIn0= \ No newline at end of file diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 35b0e87..3945733 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.31', + version: '4.0.32', description: 'A library for working with archive files, providing utilities for compressing and decompressing data.' } diff --git a/ts/classes.gziptools.ts b/ts/classes.gziptools.ts index 773d2a2..448d4bd 100644 --- a/ts/classes.gziptools.ts +++ b/ts/classes.gziptools.ts @@ -43,10 +43,7 @@ export class DecompressGunzipTransform extends plugins.stream.Transform { export class GzipTools { - smartArchiveRef: SmartArchive; - - constructor(smartArchiveRefArg: SmartArchive) { - this.smartArchiveRef = smartArchiveRefArg; + constructor() { } public getCompressionStream() { diff --git a/ts/classes.smartarchive.ts b/ts/classes.smartarchive.ts index f3865e6..94793d5 100644 --- a/ts/classes.smartarchive.ts +++ b/ts/classes.smartarchive.ts @@ -33,10 +33,10 @@ export class SmartArchive { } // INSTANCE - public gzipTools = new GzipTools(this); - public bzip2Tools = new Bzip2Tools(this); public tarTools = new TarTools(); - public zipTools = new ZipTools(this); + public zipTools = new ZipTools(); + public gzipTools = new GzipTools(); + public bzip2Tools = new Bzip2Tools(this); public archiveAnalyzer = new ArchiveAnalyzer(this); public sourceUrl: string; diff --git a/ts/classes.ziptools.ts b/ts/classes.ziptools.ts index e363adf..1d4c326 100644 --- a/ts/classes.ziptools.ts +++ b/ts/classes.ziptools.ts @@ -61,10 +61,7 @@ export class CompressZipTransform extends plugins.stream.Transform { } export class ZipTools { - smartArchiveRef: SmartArchive; - - constructor(smartArchiveRefArg: SmartArchive) { - this.smartArchiveRef = smartArchiveRefArg; + constructor() { } public getCompressionStream() { diff --git a/ts/index.ts b/ts/index.ts index 6c3bece..baf4ed9 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -1,3 +1,4 @@ export * from './classes.smartarchive.js'; export * from './classes.tartools.js'; export * from './classes.ziptools.js'; +export * from './classes.gziptools.js';