Skip to content

Commit 129763f

Browse files
committed
Add options
1 parent ea8c749 commit 129763f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/functions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ const FORMAT_TO_STREAM = (params) => {
2323
[CONSTANTS.FORMATS.GZIP]:
2424
withZopfli
2525
? (
26-
function createZopfli() {
26+
function createZopfli(options) {
2727
return stream.Duplex.from(async function* (source) {
2828
const chunks = [];
2929
for await (const chunk of source) {
3030
chunks.push(chunk);
3131
}
32-
yield await gzipAsync(Buffer.concat(chunks));
32+
yield await gzipAsync(Buffer.concat(chunks), options);
3333
})
3434
}
3535
)

0 commit comments

Comments
 (0)