Skip to content

Commit 88ce654

Browse files
bump up version
1 parent 93de55a commit 88ce654

21 files changed

Lines changed: 22 additions & 22 deletions

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zip-js/zip-js",
3-
"version": "2.8.24",
3+
"version": "2.8.25",
44
"exports": {
55
".": "./index.js"
66
},

dist/zip-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2794,7 +2794,7 @@
27942794
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
27952795
return eocdCache;
27962796
}
2797-
if (index >= size) {
2797+
if (index >= size || length === 0) {
27982798
return new Uint8Array();
27992799
} else {
28002800
if (index + length > size) {

dist/zip-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zip-fs-core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@
544544
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
545545
return eocdCache;
546546
}
547-
if (index >= size) {
547+
if (index >= size || length === 0) {
548548
return new Uint8Array();
549549
} else {
550550
if (index + length > size) {

dist/zip-fs-core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zip-fs-native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2796,7 +2796,7 @@
27962796
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
27972797
return eocdCache;
27982798
}
2799-
if (index >= size) {
2799+
if (index >= size || length === 0) {
28002800
return new Uint8Array();
28012801
} else {
28022802
if (index + length > size) {

dist/zip-fs-native.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zip-fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2800,7 +2800,7 @@
28002800
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
28012801
return eocdCache;
28022802
}
2803-
if (index >= size) {
2803+
if (index >= size || length === 0) {
28042804
return new Uint8Array();
28052805
} else {
28062806
if (index + length > size) {

dist/zip-fs.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/zip-legacy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2796,7 +2796,7 @@
27962796
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
27972797
return eocdCache;
27982798
}
2799-
if (index >= size) {
2799+
if (index >= size || length === 0) {
28002800
return new Uint8Array();
28012801
} else {
28022802
if (index + length > size) {

0 commit comments

Comments
 (0)