Skip to content

Commit

Permalink
Merge pull request #430 from miserylee/master
Browse files Browse the repository at this point in the history
fix the issue: addLocalFolderAsync causes stack overflow when a lot of files are filtered
  • Loading branch information
cthackers authored Dec 20, 2022
2 parents 4a47b85 + 63cb149 commit 08826ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion adm-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,9 @@ module.exports = function (/**String*/ input, /** object */ options) {
}
});
} else {
next();
process.nextTick(() => {
next();
});
}
} else {
callback(true, undefined);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

0 comments on commit 08826ca

Please sign in to comment.