Skip to content

Conversation

yeshm
Copy link

@yeshm yeshm commented Jan 18, 2019

No description provided.

@Zhenyi-Wang
Copy link

Can this acutually work?

@Zhenyi-Wang
Copy link

Zhenyi-Wang commented Apr 22, 2021

Friend you forgot to add compression: "DEFLATE" in the first four cases..

 switch (o.type) {
            case "base64":
                return z.generate({ type: "base64", compression: "DEFLATE" });
            case "binary":
                return z.generate({ type: "string", compression: "DEFLATE" });
            case "buffer":
                return z.generate({ type: "nodebuffer", compression: "DEFLATE" });
            case "file":
                return _fs.writeFileSync(o.file, z.generate({ type: "nodebuffer", compression: "DEFLATE" }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants