Commit graph

125 commits

Author SHA1 Message Date
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
Vitaly Puzrin
99a2e4efdc Allow create Deflate/Inflate instances without new 2016-02-17 10:37:31 +03:00
Vitaly Puzrin
500bc5d042 Coding Style & eslint rules update 2016-02-17 10:37:31 +03:00
Petr Mikusek
c52b517d92 Fix typo s/alrorythm/algorithm/ 2015-10-03 23:44:37 +02:00
Vitaly Puzrin
5f728b177d code/comments cleanup 2015-09-14 15:01:53 +03:00
nik
2c504a0865 fix inflate wrapper check condition, issue #65 2015-09-14 14:46:53 +03:00
Vitaly Puzrin
2bef4935c7 rename window -> s_window, close #60 2015-09-13 14:23:40 +03:00
Tino Lange
0d64e15c82 - high-level wrapper: add documentation for recently introduced Z_SYNC_FLUSH 2015-06-09 21:07:48 +02:00
Tino Lange
a75010e2cc - high-level wrapper: make {in,de}flate.push(data, Z_SYNC_FLUSH) working
(will fix issue #34)
2015-06-09 20:38:12 +02:00
Vitaly Puzrin
cff11fc91b Replaced jshint with eslint & updated CS 2015-03-24 05:28:20 +03:00
Vitaly Puzrin
c6f03f4522 Allow ArrayBuffer input, closes #49 2015-03-24 03:46:30 +03:00
jesse keane
a809b0bde2 fix reference error issue #30 2014-07-19 02:15:52 -07:00
nik
c449f4ff69 fix inflate wrapper cycle condition issue #29 2014-07-05 21:54:46 -03:00
Vitaly Puzrin
0df06dbb67 inflate speed opts for old v8 2014-06-10 20:54:29 +04:00
Vitaly Puzrin
d726d4fb23 Fixed #26 (iOS 5.1 Safary), closes #26 2014-06-03 20:45:37 +04:00
Vitaly Puzrin
efea8e667d Typo fix. #25 2014-05-17 20:41:40 +04:00
nik
4e16144fad remove codes table variable & add switching between fixed and dynamic tables for inflate, issue #22 2014-05-01 14:51:44 -03:00
Vitaly Puzrin
d71a712e68 Change gzip header extra to native array for convenience 2014-04-18 09:30:59 +04:00
nik
de4c26e3c8 clean useless fields in gzip header 2014-04-17 21:34:38 -03:00
Vitaly Puzrin
a4d7bdef8d docs/comments update 2014-04-18 02:56:41 +04:00
nik
8bea7480aa refactoring: rename input/output buffer indexes to next_in/next_out 2014-04-17 18:47:18 -03:00
nik
83859e524b add deflate coverage tests 2014-04-16 19:22:28 -03:00
Vitaly Puzrin
1bc1ebc5a8 Final utf8 decoder opt (2-3x speed boost) 2014-04-15 06:43:23 +04:00
Vitaly Puzrin
2cd0309b62 Moved utf8 border detect to utils, fixed bugs & added tests 2014-04-15 00:22:37 +04:00
Vitaly Puzrin
4d3acc2961 Fixes & tests for surrogates support in strings encoder/decoder 2014-04-14 23:30:34 +04:00
Vitaly Puzrin
c58bfccd1b More utf8 decoder opts 2014-04-14 01:57:08 +04:00
Vitaly Puzrin
554ffaf908 Optimized utf8 decoder 2014-04-14 00:46:30 +04:00
Vitaly Puzrin
b949c39564 moved utf8tail() to strings utils 2014-04-13 21:39:29 +04:00
Vitaly Puzrin
33c90194d0 Fixed inflate utf8 decoder 2014-04-13 21:30:00 +04:00
Vitaly Puzrin
b165c9c945 Deflate: added custom gzip headers support 2014-04-13 20:45:13 +04:00
Vitaly Puzrin
e4593facbb lint fix 2014-04-13 20:37:36 +04:00
Vitaly Puzrin
aecf1fa6b1 Fixed strings output for inflate (temporary solution) 2014-04-13 19:17:26 +04:00
Vitaly Puzrin
ca1374eb05 Moved utilities to separate folder 2014-04-13 13:45:12 +04:00
Vitaly Puzrin
20b0318601 Cleanup & comments 2014-04-13 13:20:58 +04:00
Vitaly Puzrin
195e40c0df files rename/cleanup (+ dropped inflatePrime method) 2014-04-10 07:06:04 +04:00
nik
8eac503121 remove InfTableOptions wrapper for inflate_table 2014-04-08 19:26:59 -03:00
nik
13bfd6d9bf fix strm.avail_in check in wrappers 2014-04-08 18:47:38 -03:00
Vitaly Puzrin
e555c41214 Added strings support 2014-04-09 00:50:01 +04:00
nik
b7943beb1d add inflate coverage tests 2014-04-04 12:50:40 -03:00
nik
5b7c22f37a inflate/deflate wrappers now call onData only if output buffer is full or input reached end & add tests for small input chunks 2014-04-01 19:29:54 -03:00
nik
144a94e3f8 fix reading gzip headers & add test for inflate gz headers 2014-03-28 18:57:59 -03:00
nik
2fcb571a68 fix inflate: _tr_tally function argument calculation 2014-03-19 23:18:22 -03:00
nik
b525b6dca4 fix inflate state work area length 2014-03-19 13:15:29 -03:00