Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm committed Jul 17, 2024
1 parent b4ead34 commit 3c3f976
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
18 changes: 8 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"term-size": "4.0.0",
"trash": "8.1.1",
"typescript-memoize": "1.1.1",
"unzipper": "0.12.1",
"unzipper": "0.12.2",
"wrap-ansi": "8.1.0",
"xml2js": "0.6.2",
"yargs": "17.7.2"
Expand Down
5 changes: 1 addition & 4 deletions src/types/files/archives/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ export default class Zip extends Archive {
const archive = await unzipper.Open.file(this.getFilePath());

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

0 comments on commit 3c3f976

Please sign in to comment.