Skip to content

parseTarGzip returns incorrect file paths #38

@ofersadgat

Description

@ofersadgat

Environment

running in the Chrome browser

Reproduction

I have pasted an html file (it wouldnt let me upload .html, so I had to add .txt to the end) which has a full reproduction of the issue.

tar-viewer.html.txt

Describe the bug

The reproduction will download https://registry.npmjs.org/@libsql/client-wasm/-/client-wasm-0.15.1.tgz file, open it using the nanotar interface, and list the files returned by nanotar. You will see that there are quite a few files which arent prefixed by 'package/' if you open that same tar file with winrar you'll see that those files are in different locations. (e.g. sqlite3-bundler-friendly.mjs should be package/node_modules/@libsql/libsql-wasm-experimental/sqlite-wasm/jswasm/sqlite3-bundler-friendly.mjs )

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions