@zip.js/zip.js 2.6.7 → 2.6.8

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.
@@ -189,7 +189,7 @@ class ZipReader {
189
189
  commentLength: getUint16(directoryView, offset + 32),
190
190
  directory: msDosCompatible && ((getUint8(directoryView, offset + 38) & FILE_ATTR_MSDOS_DIR_MASK) == FILE_ATTR_MSDOS_DIR_MASK),
191
191
  offset: getUint32(directoryView, offset + 42) + prependedDataLength,
192
- internalFileAttribute: getUint32(directoryView, offset + 34),
192
+ internalFileAttribute: getUint16(directoryView, offset + 36),
193
193
  externalFileAttribute: getUint32(directoryView, offset + 38),
194
194
  rawFilename: directoryArray.subarray(filenameOffset, extraFieldOffset),
195
195
  filenameUTF8: languageEncodingFlag,
@@ -699,7 +699,7 @@ async function closeFile(zipWriter, comment, options) {
699
699
  arraySet(directoryArray, headerArray, offset + 6);
700
700
  setUint16(directoryView, offset + 30, extraFieldLength);
701
701
  setUint16(directoryView, offset + 32, rawComment.length);
702
- setUint32(directoryView, offset + 34, internalFileAttribute);
702
+ setUint16(directoryView, offset + 36, internalFileAttribute);
703
703
  if (externalFileAttribute) {
704
704
  setUint32(directoryView, offset + 38, externalFileAttribute);
705
705
  } else if (directory && msDosCompatible) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A JavaScript library to zip and unzip files in the browser and Deno",
4
4
  "author": "Gildas Lormeau",
5
5
  "license": "BSD-3-Clause",
6
- "version": "2.6.7",
6
+ "version": "2.6.8",
7
7
  "type": "module",
8
8
  "keywords": [
9
9
  "zip",
@@ -40,7 +40,8 @@
40
40
  "devDependencies": {
41
41
  "@rollup/plugin-node-resolve": "^13.3.0",
42
42
  "@rollup/plugin-replace": "^4.0.0",
43
- "rollup": "^2.77.0",
44
- "rollup-plugin-terser": "^7.0.2"
43
+ "rollup": "^2.77.2",
44
+ "rollup-plugin-terser": "^7.0.2",
45
+ "typedoc": "^0.23.10"
45
46
  }
46
47
  }
@@ -17,8 +17,8 @@ if (!location.search.startsWith("?keepTests")) {
17
17
  if (!result.error) {
18
18
  Array.from(document.querySelectorAll("tr")).find(row => row.dataset.script == result.script).remove();
19
19
  }
20
- indexTest++;
21
20
  const test = tests[indexTest];
21
+ indexTest++;
22
22
  if (test) {
23
23
  addTest(test);
24
24
  } else if (!document.querySelectorAll("tr").length) {
package/tsconfig.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "typedocOptions": {
3
+ "entryPoints": ["index.d.ts"],
4
+ "out": "../doc/api"
5
+ }
6
+ }