Skip to content

support compression#128

Open
yeshm wants to merge 1 commit into
protobi:masterfrom
yeshm:master
Open

support compression#128
yeshm wants to merge 1 commit into
protobi:masterfrom
yeshm:master

Conversation

@yeshm

@yeshm yeshm commented Jan 18, 2019

Copy link
Copy Markdown

No description provided.

@Zhenyi-Wang

Copy link
Copy Markdown

Can this acutually work?

@Zhenyi-Wang

Zhenyi-Wang commented Apr 22, 2021

Copy link
Copy Markdown

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