-
Notifications
You must be signed in to change notification settings - Fork 15
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
Can't get to read entries data: [object Object] (Ponyfill issue) #63
Comments
I have found a workaround by actually removing |
If you want to be supportive give this issue a 👍 and maybe even ask if you can help out in some way. I would really like to see proper polyfill using native streams. I don't feel comfortable with TypeScript. It's problematic to work with both polyfilled and native streams at the same time... 😞 |
Thank you ! Packaging is really better now, this fix this issue and another issue I had when running firefox. Usage of optional chaining makes the library a bit more difficult to use with TypeScript, as the javascript dependency must be preprocessed by Babel for TypeScript to load the Javascript dependency. For now, it would be simpler for Typescript users to avoid this es feature.
With Vue CLI, this preprocessing can ben enabled in
|
First of all, thanks for this initiative, as it's my last hope to make some Zip file import work on low end devices after failing badly with JSZip.
So I try to switch to this library, as it seems to be the only one focused on low memory footprint. Generation of the zip file works properly with streamsaver. But I can't get to read entries content from the generated zip file.
In my use case, zip file contains a
manifest.json
entry with some JSON data in it. Content is ok as it can be read with 7-Zip.When I try to read this manifest file, I get
[object Object]
as text instead of the actual JSON content.It also displays the following error in console
Thrown from this line
conflux/src/read.js
Line 186 in 5e53d10
It seems
.stream()
on_fileLike
returns a nativeReadableStream
that is not compatible with the web-stream ponyfill used by this file.For
streamsaver
on writing part, I have told the library to use the ponyfill.Is there a way to make
.stream()
call on_fileLike
return the ponyfillReadableStream
? I'd be happy to open a pull request, but I don't know this Stream API and I can't find how to convert aFile
/Blob
to the ponyfillReadableStream
without invoking this nativestream()
method.The text was updated successfully, but these errors were encountered: