@file-viewer/doc 3.0.0 → 3.0.2

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/dist/msdoc/fkp.js CHANGED
@@ -170,7 +170,8 @@ export function readPapxProperties(wordBytes, offset, dataBytes) {
170
170
  bodyStart = offset + 2;
171
171
  }
172
172
  else {
173
- bodySize = cb - 1;
173
+ // PapxInFkp.cb counts 2-byte words; the payload occupies (2 * cb) - 1 bytes.
174
+ bodySize = cb * 2 - 1;
174
175
  bodyStart = offset + 1;
175
176
  }
176
177
  if (bodySize < 2 || !reader.ensure(bodyStart, Math.max(2, bodySize))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@file-viewer/doc",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Browser-native legacy MS-DOC (.doc) parser and HTML renderer extracted from the public msdoc-viewer 0.2.0 line.",
@@ -27,12 +27,12 @@
27
27
  },
28
28
  "repository": {
29
29
  "type": "git",
30
- "url": "git+https://github.com/flyfish-dev/docjs.git",
30
+ "url": "git+https://github.com/flyfish-dev/file-viewer.git",
31
31
  "directory": "packages/renderers/doc"
32
32
  },
33
33
  "homepage": "https://github.com/flyfish-dev/docjs",
34
34
  "bugs": {
35
- "url": "https://github.com/flyfish-dev/docjs/issues"
35
+ "url": "https://github.com/flyfish-dev/file-viewer/issues"
36
36
  },
37
37
  "funding": {
38
38
  "type": "individual",
@@ -62,7 +62,7 @@
62
62
  "LICENSE"
63
63
  ],
64
64
  "dependencies": {
65
- "dompurify": "^3.4.13"
65
+ "dompurify": "^3.4.14"
66
66
  },
67
67
  "devDependencies": {
68
68
  "typescript": "^6.0.3"
@@ -75,6 +75,7 @@
75
75
  "verify:github-34": "pnpm build && node scripts/verify-github-34.mjs",
76
76
  "verify:github-87": "pnpm build && node scripts/verify-github-87.mjs",
77
77
  "verify:github-171": "pnpm build && node scripts/verify-github-171.mjs",
78
- "verify:github-192": "pnpm build && node scripts/verify-github-192.mjs"
78
+ "verify:github-192": "pnpm build && node scripts/verify-github-192.mjs",
79
+ "verify:github-236": "pnpm build && node scripts/verify-github-236.mjs"
79
80
  }
80
81
  }