Skip to content

Commit 98e809d

Browse files
committed
Update to to pako v0.2. Fixes browserify#3
1 parent ba6ea61 commit 98e809d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"test": "test"
99
},
1010
"dependencies": {
11-
"pako": "~0.1.1"
11+
"pako": "~0.2.0"
1212
},
1313
"devDependencies": {
1414
"tape": "^2.12.3",

src/binding.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,11 @@ Zlib.prototype._write = function(flush, input, in_off, in_len, out, out_off, out
161161

162162
var strm = this.strm;
163163
strm.avail_in = in_len;
164-
strm.next_in = input;
165-
strm.next_in_index = in_off;
164+
strm.input = input;
165+
strm.next_in = in_off;
166166
strm.avail_out = out_len;
167-
strm.next_out = out;
168-
strm.next_out_index = out_off;
167+
strm.output = out;
168+
strm.next_out = out_off;
169169

170170
switch (this.mode) {
171171
case exports.DEFLATE:

0 commit comments

Comments
 (0)