diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/pako/lib/deflate.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/pako/lib/deflate.js')
-rw-r--r-- | node_modules/pako/lib/deflate.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/node_modules/pako/lib/deflate.js b/node_modules/pako/lib/deflate.js index 11040d4ec..efeb00c7b 100644 --- a/node_modules/pako/lib/deflate.js +++ b/node_modules/pako/lib/deflate.js @@ -39,7 +39,7 @@ var Z_DEFLATED = 8; /* internal * Deflate.chunks -> Array * - * Chunks of output data, if [[Deflate#onData]] not overriden. + * Chunks of output data, if [[Deflate#onData]] not overridden. **/ /** @@ -192,7 +192,7 @@ function Deflate(options) { * - data (Uint8Array|Array|ArrayBuffer|String): input data. Strings will be * converted to utf8 byte sequence. * - mode (Number|Boolean): 0..6 for corresponding Z_NO_FLUSH..Z_TREE modes. - * See constants. Skipped or `false` means Z_NO_FLUSH, `true` meansh Z_FINISH. + * See constants. Skipped or `false` means Z_NO_FLUSH, `true` means Z_FINISH. * * Sends input data to deflate pipe, generating [[Deflate#onData]] calls with * new compressed chunks. Returns `true` on success. The last data block must have @@ -281,7 +281,7 @@ Deflate.prototype.push = function (data, mode) { /** * Deflate#onData(chunk) -> Void - * - chunk (Uint8Array|Array|String): ouput data. Type of array depends + * - chunk (Uint8Array|Array|String): output data. Type of array depends * on js engine support. When string output requested, each chunk * will be string. * @@ -358,7 +358,7 @@ function deflate(input, options) { deflator.push(input, true); // That will never happens, if you don't cheat with options :) - if (deflator.err) { throw deflator.msg; } + if (deflator.err) { throw deflator.msg || msg[deflator.err]; } return deflator.result; } |