Skip to content

Commit

Permalink
Add Buffer | ReadableStream to determinsticArchive arg type
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lencioni committed Feb 18, 2025
1 parent 2423f2e commit 69c80c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deterministicArchive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 69c80c0

Please sign in to comment.