@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/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.24",
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.2",
159
+ "eslint": "^10.1.0",
160
160
  "http-server": "^14.1.1",
161
- "rollup": "^4.59.0",
162
- "typedoc": "^0.28.17",
163
- "typedoc-plugin-markdown": "^4.10.0"
161
+ "rollup": "^4.60.1",
162
+ "typedoc": "^0.28.18",
163
+ "typedoc-plugin-markdown": "^4.11.0"
164
164
  }
165
165
  }