From 69c80c0baae5206b99eb186736489dbbd34a6679 Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Tue, 18 Feb 2025 14:47:10 -0600 Subject: [PATCH] Add Buffer | ReadableStream to determinsticArchive arg type We don't use these types for anything yet, so this is just for our own reference purposes. This argument is passed through to archiver, which can accept these types. --- src/deterministicArchive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deterministicArchive.js b/src/deterministicArchive.js index b98ce3f..f32d6d0 100644 --- a/src/deterministicArchive.js +++ b/src/deterministicArchive.js @@ -64,7 +64,7 @@ async function resolveFilesRecursive(...dirsAndFiles) { * Creates a deterministic archive of the given files * * @param {string[]} dirsAndFiles - * @param {{name: string, content: string}[]} contentToArchive + * @param {{name: string, content: string | Buffer | ReadableStream}[]} contentToArchive * @returns {Promise<{buffer: Buffer, hash: string}>} */ export default async function deterministicArchive(