Skip to content
Discussion options

You must be logged in to vote

In your example, you have to test if firstEntry.directory is true or false instead of testing if firstEntry.getData is truthy. I'm not strictly following semantic versioning ("minor" updates can introduce small breaking changes) and I confirm that the version 2.8.x introduces subtle breaking changes (zip.js is coded in JS). You can find the changelog here: https://github.com/gildas-lormeau/zip.js/releases/tag/v2.8.2

 private unzipZipBlob = async (zippedBlob: Blob) => {
    const stream = new TransformStream();
    const response = new Response(stream.readable).blob();
    const zipReader = new ZipReader(zippedBlob.stream());
    const firstEntry = (await zipReader.getEntries()).shift();
    

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gildas-lormeau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #601 on September 09, 2025 14:22.