Commit graph

215 commits

Author SHA1 Message Date
4d8a631db4
♻ Read local file header separately 2018-07-08 20:18:04 +02:00
843314e475
🚧 Add debug output 2018-07-08 19:56:50 +02:00
338813223c
🚧 Temporarily skip decompression again 2018-07-08 19:56:19 +02:00
7987581216
🗑 Remove unneeded code 2018-07-08 19:55:26 +02:00
9ab326dfe9
🎨 Enable compression again 2018-07-08 19:50:44 +02:00
04ca2c69a8
🐛 Remove streamSetMaxLength since that is handled by getFileFromDisks 2018-07-08 19:48:48 +02:00
79412cefa0
🐛 Close file stream if end has been reached 2018-07-08 19:45:11 +02:00
03128a2920
🚑 Fix typo 2018-07-08 19:39:14 +02:00
a6de035101
🚧 Only skip decompression for disks 2018-07-08 19:38:25 +02:00
4e41a46006
🚧 Temporarily remove decompression for debugging 2018-07-08 19:34:34 +02:00
228f167711
🎨 Improve debug output 2018-07-08 19:32:04 +02:00
f6eb334602
🐛 End file read stream if EOF is reached 2018-07-08 19:30:27 +02:00
db3b303e6c
🗑 Remove debug output 2018-07-08 19:15:41 +02:00
82693ba3b0
🐎 Improve perf by not storing chunk write status 2018-07-08 19:11:28 +02:00
8b1ad6f7e2
🐛 Fix race condition in file download 2018-07-08 19:09:31 +02:00
662c2d5f43
🎨 Improve error output 2018-07-08 18:33:53 +02:00
6f6f168192
🚑 Fix file name 2018-07-08 18:12:08 +02:00
96ed471afe
Use local cache instead of always downloading files 2018-07-08 18:10:41 +02:00
0b5348e819
🚧 Speed up development by caching downloaded files 2018-07-08 16:07:28 +02:00
50b815f9f2
🗑 Remove debug output 2018-07-06 02:57:35 +02:00
ddbe9f4b36
🎨 Improve waiting for file to be written to disk 2018-07-06 00:33:36 +02:00
253e22b9d6
🚧 Do not read from disk until files have been written 2018-07-06 00:05:19 +02:00
e206280de1
🚧 Ignore length when reading from disk 2018-07-06 00:02:03 +02:00
06809ad8ed
🚧 Add more debug info 2018-07-05 23:51:29 +02:00
f284119bf1
🚧 Add some debugging info 2018-07-05 23:48:25 +02:00
74b312953d
🐛 Fix reading of local file header 2018-07-05 23:42:42 +02:00
e84e5bd3d7
🚑 Fix local file header reading for arraybuffer-based streams 2018-07-05 23:02:08 +02:00
0c8bc4d732
🚑 Wait for local file header reading to be complete 2018-07-05 23:00:10 +02:00
07de050588
🐛 Wait with reading local file header until stream is ready 2018-07-05 22:58:41 +02:00
86ba51731c
🐛 Add error message to getFileFromdisks 2018-07-05 22:18:19 +02:00
099fecce98
🐛 Duplex ➡ PassThrough 2018-07-05 21:39:16 +02:00
1c91b51686
🐛 Fix getFileFromDisks returning null due to not waiting for readable event 2018-07-05 21:36:26 +02:00
89d1b9e644
🐛 Found error why .read() returns null; need to wait for readable event 2018-07-05 21:17:07 +02:00
6d6c673556
Finish getFileFromDisks 2018-07-05 20:57:42 +02:00
f849744ac8
♻ Some refactoring to prepare for patch processing 2018-07-05 20:50:23 +02:00
60fe546d31
🎨 Reliable-id can be 2 2018-07-05 20:27:58 +02:00
bdcb7faabe
🐛 Piece length can also be 1 MiB 2018-07-05 18:43:53 +02:00
68348b3673
🐛 Fix end of file reached error 2018-07-05 18:41:24 +02:00
5c915776aa
Update solidpkg to use streams instead of buffers 2018-07-05 18:36:37 +02:00
28c0fdecf4
🗑 Remove debugging output 2018-07-05 18:24:20 +02:00
9994dffed2
🐛 Fix decrypt chunk 2018-07-05 18:22:20 +02:00
602b4b12d4
🗑 Remove unneeded code 2018-07-05 17:06:02 +02:00
f0cba0e955
🐛 Remove dataview from decryptChunk 2018-07-05 17:03:56 +02:00
c620a9f55e
🚧 Add debugging output 2018-07-05 16:42:04 +02:00
9c7f23ada0
Revert "🐛 Use UTF-16LE encoding for manifest XML files"
This reverts commit 4d3666d4c7.
2018-07-05 16:00:47 +02:00
4d3666d4c7
🐛 Use UTF-16LE encoding for manifest XML files 2018-07-05 15:54:14 +02:00
d03355c61a
👷 Fix sourcemaps to include ts code 2018-07-05 15:32:05 +02:00
7dfe0176ab
🐛 Do not reuse TextDecoder for multiple stream decodes 2018-07-05 13:24:47 +02:00
66d14a1d5b
🎨 Improve streamToString performance 2018-07-05 13:13:05 +02:00
eab9a27fa6
🗑 Don't set max length a 2nd time 2018-07-05 12:41:28 +02:00
7cb458dfc5
♻ Rewrite decrypt transform 2018-07-05 11:39:39 +02:00
8755fda1e3
🐛 Fix decrypt transform 2018-07-05 11:37:23 +02:00
933134eb35
♻ Convert decrypt stream into transform 2018-07-05 11:32:29 +02:00
9688c12797
🎨 Minor function signature change 2018-07-05 03:32:54 +02:00
09de4b663b
♻ Rewrite decryptChunk 2018-07-05 03:30:13 +02:00
1230330ce1
🐛 Fix compressed size (it already includes the encryption header) 2018-07-05 03:13:51 +02:00
02f4d3ecb5
🐛 Do not skip encryption header in decryptChunk 2018-07-05 03:03:26 +02:00
213fcf91f7
🐛 Fix decrypt chunk 2018-07-05 03:01:45 +02:00
dac2e9286c
🐛 Update decryption keys 2018-07-05 02:55:18 +02:00
3e9f4843f8
🐛 Fix compressed size calculation, do not change original decryption keys 2018-07-05 02:50:47 +02:00
5ca48459c1
🐛 Fix compressed length; it must include the encryption header 2018-07-05 02:45:14 +02:00
050f82b382
🐛 Do not read beyond stream in decryptor 2018-07-05 02:39:17 +02:00
26467816f0
🎨 Replace new Buffer() by Buffer.alloc() 2018-07-05 02:37:00 +02:00
1d1b8930cf
🚑 Fix chunk decryption 2018-07-05 02:35:37 +02:00
4f0adf8931
🚑 Fix reading of local file header 2018-07-05 02:33:21 +02:00
520f9c2e39
🚑 Do not decode buffers to string 2018-07-05 02:21:19 +02:00
e952f714df
🚑 Fix reading of local file header 2018-07-05 02:18:47 +02:00
4fb3d1322c
🐛 Do not read beyond arraybuffer bounds 2018-07-05 02:17:28 +02:00
397e1fd172
🐛 Allow for 256kb piece lengths 2018-07-05 02:09:26 +02:00
58963160c2
🚑 Fix utility scripts 2018-07-05 02:06:19 +02:00
d79e7d289c
🚀 Use streams instead of arraybuffers 2018-07-05 01:58:01 +02:00
27afb62d49
🚑 Fix name of import in index.ts 2018-07-05 00:59:42 +02:00
ae2ac6d278
🚧 Partial switch to streams, and add utility endpoints 2018-07-05 00:58:40 +02:00
e14a8db179
♻ Extract patch verification into separate file 2018-07-04 22:24:24 +02:00
6ac41fcc48
🚑 Fix download file name 2018-07-04 22:10:59 +02:00
34a4372183
🚑 Do not throw error if file too large in download module 2018-07-04 22:10:15 +02:00
e4d906e48c
🚧 Write large files to disk instead of to memory 2018-07-04 22:07:23 +02:00
94047006ec
🎨 Fix typos 2018-07-04 20:11:04 +02:00
14e73367c6
🎨 Fix typos 2018-07-04 20:04:16 +02:00
a3bff814ef
🗑 Remove debug message 2018-07-04 19:57:55 +02:00
c821327a6e
♻ Extract response handler 2018-07-04 19:51:20 +02:00
e4c2754493
⚠ Add error message if file too large 2018-07-04 19:36:25 +02:00
d843ce1200
🎨 Minor code quality improvements 2018-07-04 19:25:22 +02:00
2743ccb6e1
📓 Update documentation 2018-07-04 16:29:28 +02:00
e03f28f654
🔐 Fix release path to verify from >= 0 2018-07-04 15:48:34 +02:00
7ce5a177ec
♻ Move files into subdirectories 2018-06-24 10:10:00 +02:00
05d721171a
🎨 Improve debug output 2018-06-24 02:31:06 +02:00
6709315b68
🐛 Allow piece length of 512 KiB 2018-06-24 02:28:04 +02:00
42db8d36a6
🐛 Allow reliable-id to be 1 2018-06-24 02:24:13 +02:00
52157f544c
🐛 Fix length calculation during decryption 2018-06-24 02:15:46 +02:00
589f7fe786
🎨 Do not overwrite buffer during decryption 2018-06-24 02:13:10 +02:00
2456eae91a
♻ Allow 16-bit and 32-bit reads in ByteReader 2018-06-24 02:06:49 +02:00
590dc39f84
🎨 Add debug output to trace zlib error 2018-06-24 01:37:10 +02:00
beb2d351da
🎨 Minor code quality improvement in decryptFile 2018-06-24 00:56:14 +02:00
a2044887e8
♻ Extract updateKeys into separate file 2018-06-24 00:53:03 +02:00
145e2ca2cb
🚨 Allow output to console for now 2018-06-24 00:26:41 +02:00
5fd25d1095
💡 Add reminder to check downloaded patch files for correctness 2018-06-24 00:08:48 +02:00
57d45b942b
💡 Improve comments and code quality 2018-06-23 23:40:22 +02:00
b87236a435
🎨 Improve debug output 2018-06-23 23:32:17 +02:00
e9ba519db3
🎨 Improve error handling 2018-06-23 23:30:45 +02:00