@remit/account-worker 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { once } from "node:events";
|
|
|
2
2
|
import { PassThrough } from "node:stream";
|
|
3
3
|
import type { Logger } from "@remit/logger";
|
|
4
4
|
import type { StorageService } from "@remit/storage-service";
|
|
5
|
-
import { ZipArchive } from "archiver";
|
|
5
|
+
import type { ZipArchive } from "archiver";
|
|
6
6
|
import type { CascadeServices } from "../cascade.js";
|
|
7
7
|
import type { AccountExportEvent } from "../events.js";
|
|
8
8
|
|
|
@@ -97,6 +97,7 @@ export const processAccountExport = async (
|
|
|
97
97
|
);
|
|
98
98
|
|
|
99
99
|
try {
|
|
100
|
+
const { ZipArchive } = await import("archiver");
|
|
100
101
|
const archive = new ZipArchive({ zlib: { level: 6 } });
|
|
101
102
|
const passthrough = new PassThrough();
|
|
102
103
|
archive.pipe(passthrough);
|