File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -243,7 +243,7 @@ const zipped = fflate.zipSync({
243
243
' dir1' : {
244
244
' nested' : {
245
245
// You can use Unicode in filenames
246
- ' 你好.txt' : std (' Hey there!' )
246
+ ' 你好.txt' : strToU8 (' Hey there!' )
247
247
},
248
248
// You can also manually write out a directory path
249
249
' other/tmp.txt' : new Uint8Array ([97 , 98 , 99 , 100 ])
@@ -275,7 +275,7 @@ const zipped = fflate.zipSync({
275
275
// |-> other
276
276
// | |-> tmp.txt
277
277
// myImageData.bmp
278
- // superTinyFile.bin
278
+ // superTinyFile.png
279
279
280
280
// When decompressing, folders are not nested; all filepaths are fully
281
281
// written out in the keys. For example, the return value may be:
Original file line number Diff line number Diff line change @@ -761,7 +761,7 @@ const adler = (): CRCV => {
761
761
p ( d ) {
762
762
// closures have awful performance
763
763
let n = a , m = b ;
764
- const l = d . length ;
764
+ const l = d . length | 0 ;
765
765
for ( let i = 0 ; i != l ; ) {
766
766
const e = Math . min ( i + 2655 , l ) ;
767
767
for ( ; i < e ; ++ i ) m += n += d [ i ] ;
You can’t perform that action at this time.
0 commit comments