We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea8c749 commit 129763fCopy full SHA for 129763f
lib/functions.js
@@ -23,13 +23,13 @@ const FORMAT_TO_STREAM = (params) => {
23
[CONSTANTS.FORMATS.GZIP]:
24
withZopfli
25
? (
26
- function createZopfli() {
+ function createZopfli(options) {
27
return stream.Duplex.from(async function* (source) {
28
const chunks = [];
29
for await (const chunk of source) {
30
chunks.push(chunk);
31
}
32
- yield await gzipAsync(Buffer.concat(chunks));
+ yield await gzipAsync(Buffer.concat(chunks), options);
33
})
34
35
)
0 commit comments