Skip to content

Commit 8bc4111

Browse files
committed
Fixed error on new added param
1 parent c13733a commit 8bc4111

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

methods/inflater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const version = +(process.versions ? process.versions.node : "").split(".")[0] |
22

33
module.exports = function (/*Buffer*/ inbuf, /*number*/ expectedLength) {
44
var zlib = require("zlib");
5-
const option = version >= 15 ? { maxOutputLength: expectedLength } : {};
5+
const option = version >= 15 && expectedLength > 0 ? { maxOutputLength: expectedLength } : {};
66

77
return {
88
inflate: function () {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "adm-zip",
3-
"version": "0.5.13",
3+
"version": "0.5.14",
44
"description": "Javascript implementation of zip for nodejs with support for electron original-fs. Allows user to create or extract zip files both in memory or to/from disk",
55
"scripts": {
66
"test": "mocha -R spec",

0 commit comments

Comments
 (0)