Skip to content

Commit 1a9db0f

Browse files
committed
1 parent b4ead34 commit 1a9db0f

File tree

3 files changed

+10
-15
lines changed

3 files changed

+10
-15
lines changed

package-lock.json

+8-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"term-size": "4.0.0",
9797
"trash": "8.1.1",
9898
"typescript-memoize": "1.1.1",
99-
"unzipper": "0.12.1",
99+
"unzipper": "0.12.2",
100100
"wrap-ansi": "8.1.0",
101101
"xml2js": "0.6.2",
102102
"yargs": "17.7.2"

src/types/files/archives/zip.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ export default class Zip extends Archive {
4646
const archive = await unzipper.Open.file(this.getFilePath());
4747

4848
return async.mapLimit(
49-
archive.files
50-
.filter((entryFile) => entryFile.type === 'File')
51-
// https://github.com/ZJONSSON/node-unzipper/issues/324
52-
.filter((entryFile) => typeof entryFile.offsetToLocalFileHeader === 'number'),
49+
archive.files.filter((entryFile) => entryFile.type === 'File'),
5350
Defaults.ARCHIVE_ENTRY_SCANNER_THREADS_PER_ARCHIVE,
5451
async (entryFile, callback: AsyncResultCallback<ArchiveEntry<this>, Error>) => {
5552
let checksums: ChecksumProps = {};

0 commit comments

Comments
 (0)