Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support compression #128

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

support compression #128

wants to merge 1 commit into from

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