js.documents 14.4.3 → 14.4.4

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/svg/read.cjs CHANGED
@@ -16,8 +16,7 @@ const DEFAULT_WIDTH_PT = 225;
16
16
  const DEFAULT_HEIGHT_PT = 112.5;
17
17
  const KAPPA = 4 / 3 * (Math.SQRT2 - 1);
18
18
  function localName(tag) {
19
- const colon = tag.indexOf(":");
20
- return colon === -1 ? tag : tag.slice(colon + 1);
19
+ return tag.slice(tag.indexOf(":") + 1);
21
20
  }
22
21
  function findAttribute(element, name) {
23
22
  for (const attribute of element.attributes) if (localName(attribute.name) === name) return (0, ooxml_js.decodeEntities)(attribute.value);
@@ -40,7 +39,7 @@ function childPaintState(element, parent) {
40
39
  };
41
40
  }
42
41
  function report(state, code, detail) {
43
- state.sink?.(detail === void 0 ? { code } : {
42
+ state.sink?.({
44
43
  code,
45
44
  detail
46
45
  });
package/dist/svg/read.js CHANGED
@@ -15,8 +15,7 @@ const DEFAULT_WIDTH_PT = 225;
15
15
  const DEFAULT_HEIGHT_PT = 112.5;
16
16
  const KAPPA = 4 / 3 * (Math.SQRT2 - 1);
17
17
  function localName(tag) {
18
- const colon = tag.indexOf(":");
19
- return colon === -1 ? tag : tag.slice(colon + 1);
18
+ return tag.slice(tag.indexOf(":") + 1);
20
19
  }
21
20
  function findAttribute(element, name) {
22
21
  for (const attribute of element.attributes) if (localName(attribute.name) === name) return decodeEntities(attribute.value);
@@ -39,7 +38,7 @@ function childPaintState(element, parent) {
39
38
  };
40
39
  }
41
40
  function report(state, code, detail) {
42
- state.sink?.(detail === void 0 ? { code } : {
41
+ state.sink?.({
43
42
  code,
44
43
  detail
45
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js.documents",
3
- "version": "14.4.3",
3
+ "version": "14.4.4",
4
4
  "description": "Bidirectional docx/pptx <-> PDF conversion and a read+write editable OOXML document model, built on ooxml.js and Zod 4 codecs.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -85,7 +85,7 @@
85
85
  "fflate": "0.8.3",
86
86
  "markdown-codec": "11.1.3",
87
87
  "odf.js": "11.1.3",
88
- "ooxml.js": "12.2.7",
88
+ "ooxml.js": "12.2.8",
89
89
  "pdf-codec": "5.2.12",
90
90
  "ppt-codec": "2.2.3",
91
91
  "rtf-codec": "8.1.3",