Commit graph

167 commits

Author SHA1 Message Date
Vitaly Puzrin
23c773e31c Update comments in tree.js for Babel compatibility
- Closes #261, #263, #262
2022-11-07 01:34:34 +02:00
Alex Kocharin
174a1d12b6 Ensure backward compatibility for headers.extra 2022-06-10 21:05:42 +03:00
Alex Kocharin
77f1c17c6d Don't bother computing check value after successful inflateSync().
0d36ec47f3
2022-06-10 20:10:56 +03:00
Alex Kocharin
a194382b3c Fix a bug that can crash deflate on some input when using Z_FIXED.
5c44459c3b
2022-06-10 20:10:56 +03:00
Alex Kocharin
8a1cdad62b Fix deflateEnd() to not report an error at start of raw deflate.
c376a417a7
2022-06-10 20:10:56 +03:00
Alex Kocharin
4dd6658edc Fix bug when window full in deflate_stored().
8ba393e70d
2022-06-10 20:10:56 +03:00
Alex Kocharin
b579434679 Limit hash table inserts after switch from stored deflate.
2d80d3f6b5
2022-06-10 20:10:56 +03:00
Alex Kocharin
2326b42e45 Permit a deflateParams() parameter change as soon as possible.
f9694097dd
2022-06-10 20:10:56 +03:00
Alex Kocharin
25a8b18c5d Update high water mark in deflate_stored.
7d9c9d410a
2022-06-10 20:10:56 +03:00
Alex Kocharin
91a1be15c2 Fix deflate stored bug when pulling last block from window.
4c7c907683
2022-06-10 20:10:56 +03:00
Alex Kocharin
14eb66909b Fix bug in deflate_stored() for zero-length input.
bc5503b224
2022-06-10 20:10:56 +03:00
Alex Kocharin
49d5060e87 Speed up deflation for level 0 (storing).
9dc5a8585f
2022-06-10 20:10:56 +03:00
Alex Kocharin
bee5019c40 Fix bugs in creating a very large gzip header.
9674807c82
2022-06-10 20:10:56 +03:00
Alex Kocharin
1154023108 Fix bug when level 0 used with Z_HUFFMAN or Z_RLE.
94575859cf
2022-06-10 20:10:56 +03:00
Alex Kocharin
9709958d84 Do a more thorough check of the state for every stream call.
b516b4bdd7
2022-06-10 20:10:56 +03:00
Alex Kocharin
d53e75c309 Reject a window size of 256 bytes if not using the zlib wrapper.
049578f0a1
2022-06-10 20:10:56 +03:00
Alex Kocharin
f1c987cc5f Remove offset pointer optimization in inftrees.c.
6a043145ca
2022-06-10 20:10:56 +03:00
Alex Kocharin
024d11ee5f Add option to not compute or check check values.
9852c209ac

+ added macro renaming in
53ce271311
2022-06-10 20:10:34 +03:00
Alex Kocharin
8f630ba374 Fix bug that accepted invalid zlib header when windowBits is zero.
6cef1de740
2022-06-10 20:05:26 +03:00
Alex Kocharin
a98f90806e Fix inflateInit2() bug when windowBits is 16 or 32.
0db8fd3714
2022-06-10 20:05:26 +03:00
Alex Kocharin
b07a436d39 Sync code with madler/zlib, cosmetic changes only
5370d99a2a
8a979f6c79
c901a34c92
7096424f23
a456d898bb
21c66cd5ac
ee7d7b5dda
37ed2112a1
723e928b84
8678871f18
2022-06-10 20:05:06 +03:00
OrIOg
8a3fa92fd1
Fixing documentation on direct functions (#253) 2022-05-11 17:48:34 +03:00
Alex Kocharin
26dff4fb34 Use TextEncoder and TextDecoder if available
fix https://github.com/nodeca/pako/issues/228
2021-07-27 19:18:32 +03:00
oldshensheep
b967322bef
Typo fix (#225) 2021-05-03 11:07:47 +03:00
Vitaly Puzrin
d0382badcc Fix esm build named exports 2020-11-19 02:37:53 +03:00
Vitaly Puzrin
677ba487ed Move hasher to separate function 2020-11-12 22:45:21 +03:00
Vitaly Puzrin
5638105893 Moved exported constants to .constants. 2020-11-12 15:49:20 +03:00
Vitaly Puzrin
cb6d67d157 Rewrite top level wrappers 2020-11-11 18:28:18 +03:00
Vitaly Puzrin
ec116f6f40 Inflate: use max window size by default, #174 2020-11-09 19:24:26 +03:00
Vitaly Puzrin
4e8ff8e74a Revert #57, close #196 2020-11-09 00:49:24 +03:00
Vitaly Puzrin
505e36d9f0 Move to es6 2020-11-08 22:23:56 +03:00
Vitaly Puzrin
f5c3c29848 Removed Array support 2020-11-07 19:52:58 +03:00
Vitaly Puzrin
23563dfae9 Removed binary strings support 2020-11-07 17:42:50 +03:00
Vitaly Puzrin
9c91d1b852 Removed support of Inflate & Deflate instance create without new 2020-11-07 16:08:10 +03:00
Vitaly Puzrin
5b28b9ad26 browserify => rollup.js 2020-11-07 14:38:44 +03:00
Ľubor Illek
a28d0181cb Check return code of inflateSetDictionary() 2019-01-14 17:54:51 +01:00
Ľubor Illek
919ad7f228 Fix for raw inflate with directory 2019-01-09 23:57:19 +01:00
Vitaly Puzrin
f1872b3459 eslint bump + CS tweaks 2018-11-29 20:13:39 +03:00
Jake
0e865a5cea fix RangeError on chrome71 (#150)
Fixes the following error: RangeError: Too many arguments in function call (only 65534 allowed)
The argument limit seems to have become lower in chrome 72...
2018-11-29 19:24:02 +03:00
Vitaly Puzrin
7238a449fb Improve @std/esm compatibility, close #115 2017-09-14 14:28:52 +03:00
Josh Soref
f2bcd09d95 Spelling (#114) 2017-09-04 06:42:18 +03:00
coldcoff
7abdb13eec Comments cleanup (#111) 2017-08-08 16:25:29 +03:00
Vitaly Puzrin
3555e3bf88 eslint: use native indent checker + indents update 2017-03-26 20:13:58 +03:00
Vitaly Puzrin
eaead04de3 More formal zlib attribution and related changes 2017-03-26 18:29:30 +03:00
Vitaly Puzrin
3550aa653b deps bump + remove unused vars 2016-12-15 02:40:17 +03:00
Vitaly Puzrin
bd0879c1cd Always fill err.message on throw 2016-12-15 02:35:12 +03:00
Kirill Efimov
4a07e05823 Fixed wrong offset for d_buf (closes #78) 2016-07-21 14:45:54 +03:00
Vitaly Puzrin
d884686332 minor code cleanup 2016-03-31 06:26:10 +03:00
dignifiedquire
ffaf7c8252 Implement dictionary handling.
This adds the methods

- `deflateSetDictionary`
- `inflateSetDictionary`

as well as calling `setDictionary` at the right point when passing
the a `dictionary` option to one of

- `pako.deflate`
- `new pako.Deflate`
- `pako.inflate`
- `new pako.Inflate`
2016-03-30 15:44:16 -04:00
Vitaly Puzrin
50cd07afc4 Remove .js extention in require() use. Close #71 2016-02-17 10:48:46 +03:00