Closed pablonete closed 6 years ago
Hold on, I'm suspicious this is not the right fix.
We need to support both "\" and "/" from Windows.
This is a sample file failing on Windows currently: no-deps-1.0.0.tar.gz
I'm going to use path.join
and path.parse
instead.
I've updated my proposal so tar files with backslash separator work on any OS. I've written a test.
Then I've realized the TAR file specification is not required to support backslashes, so I'm closing this PR, anyone seeing value on this feel free to ping me.
Processing a tar file in Windows creates a death loop in
validate
because file name was empty, which was the result ofstrip
converting "package\index.js" into "" instead of expected "index.js".