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

Create packer stream "toStream" #1636

Merged
merged 6 commits into from
Sep 15, 2022
Merged

Conversation

MLD5000
Copy link
Contributor

@MLD5000 MLD5000 commented Aug 22, 2022

This creates a new DOCX export function that returns a readable stream. I created this to help reduce memory needs when generating a document with a log of image files.

I had to update the webpack config file because JSZip was not detecting the NodeJS stream object during testing and threw errors for jszip.generateNodeStream() function.

Without this alias, JSZip throws a "nodestream not supported on this platform" error.  This addition resolves the issue.
New Function returns a NodeJS readable stream that allows piping DOCX document data to stream.
@dolanmiu
Copy link
Owner

dolanmiu commented Aug 24, 2022

This might break browser compatability, but lets see

Edit: Need to fix build issues

@codecov-commenter
Copy link

codecov-commenter commented Sep 15, 2022

Codecov Report

Base: 99.61% // Head: 99.62% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (2b01a60) compared to base (d4d7f92).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1636   +/-   ##
=======================================
  Coverage   99.61%   99.62%           
=======================================
  Files         318      318           
  Lines        3681     3690    +9     
  Branches      396      396           
=======================================
+ Hits         3667     3676    +9     
  Misses         14       14           
Impacted Files Coverage Δ
src/export/packer/packer.ts 100.00% <100.00%> (ø)
src/file/paragraph/links/hyperlink.ts 100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dolanmiu dolanmiu mentioned this pull request Sep 15, 2022
@dolanmiu dolanmiu merged commit af7d275 into dolanmiu:master Sep 15, 2022
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.

3 participants