@zip.js/zip.js 2.8.24 → 2.8.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deno.json +1 -1
- package/dist/zip-core.js +1 -1
- package/dist/zip-core.min.js +1 -1
- package/dist/zip-fs-core.js +1 -1
- package/dist/zip-fs-core.min.js +1 -1
- package/dist/zip-fs-native.js +1 -1
- package/dist/zip-fs-native.min.js +1 -1
- package/dist/zip-fs.js +1 -1
- package/dist/zip-fs.min.js +1 -1
- package/dist/zip-legacy.js +1 -1
- package/dist/zip-legacy.min.js +1 -1
- package/dist/zip-native.js +1 -1
- package/dist/zip-native.min.js +1 -1
- package/dist/zip.js +1 -1
- package/dist/zip.min.js +1 -1
- package/index-native.cjs +1 -1
- package/index-native.min.js +1 -1
- package/index.cjs +1 -1
- package/index.d.ts +4 -4
- package/index.min.js +1 -1
- package/lib/core/io.js +1 -1
- package/package.json +5 -5
package/lib/core/io.js
CHANGED
|
@@ -383,7 +383,7 @@ async function readUint8ArrayHttpReader(httpReader, index, length, sendRequest,
|
|
|
383
383
|
if (eocdCache && index == size - END_OF_CENTRAL_DIR_LENGTH && length == END_OF_CENTRAL_DIR_LENGTH) {
|
|
384
384
|
return eocdCache;
|
|
385
385
|
}
|
|
386
|
-
if (index >= size) {
|
|
386
|
+
if (index >= size || length === 0) {
|
|
387
387
|
return new Uint8Array();
|
|
388
388
|
} else {
|
|
389
389
|
if (index + length > size) {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "A JavaScript library to zip and unzip files in the browser, Deno and Node.js",
|
|
4
4
|
"author": "Gildas Lormeau",
|
|
5
5
|
"license": "BSD-3-Clause",
|
|
6
|
-
"version": "2.8.
|
|
6
|
+
"version": "2.8.26",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"zip",
|
|
@@ -156,10 +156,10 @@
|
|
|
156
156
|
"devDependencies": {
|
|
157
157
|
"@rollup/plugin-replace": "^6.0.3",
|
|
158
158
|
"@rollup/plugin-terser": "^1.0.0",
|
|
159
|
-
"eslint": "^10.0
|
|
159
|
+
"eslint": "^10.1.0",
|
|
160
160
|
"http-server": "^14.1.1",
|
|
161
|
-
"rollup": "^4.
|
|
162
|
-
"typedoc": "^0.28.
|
|
163
|
-
"typedoc-plugin-markdown": "^4.
|
|
161
|
+
"rollup": "^4.60.1",
|
|
162
|
+
"typedoc": "^0.28.18",
|
|
163
|
+
"typedoc-plugin-markdown": "^4.11.0"
|
|
164
164
|
}
|
|
165
165
|
}
|