Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: remove node-fetch
Marc Seitzc17fd03ec985
diff --git a/lib/files/bulk-download.ts b/lib/files/bulk-download.tsindex ba9493d6..59077e74 100644--- a/lib/files/bulk-download.ts+++ b/lib/files/bulk-download.ts@@ -1,8 +1,8 @@import { GetObjectCommand } from "@aws-sdk/client-s3";import type { S3Client } from "@aws-sdk/client-s3";-import fetch from "node-fetch";import { PassThrough } from "stream";-import type { Readable } from "stream";+import { Readable } from "stream";+import { ReadableStream } from "stream/web";export class S3DownloadService {constructor(private s3: S3Client) {}@@ -72,7 +72,9 @@ export class S3DownloadService {);return;}- response.body++ const nodeReadable = Readable.fromWeb(response.body as ReadableStream);+ nodeReadable.on("error", (err: any) => stream.emit("error", err)).pipe(stream);} catch (e) {