js.documents 14.4.6 → 14.4.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.
@@ -458,8 +458,8 @@ function lowerSupsub(node, context) {
458
458
  if (binder.status === "degraded") return unparsed(binder.detail);
459
459
  const detail = spanOfNodes(context, [node]);
460
460
  const base = require_latex_temml.isTemmlNode(node.base) ? node.base : void 0;
461
- const sub = node.sub === void 0 ? void 0 : nodesOfScript(node.sub);
462
- const sup = node.sup === void 0 ? void 0 : nodesOfScript(node.sup);
461
+ const sub = nodesOfScript(node.sub);
462
+ const sup = nodesOfScript(node.sup);
463
463
  if (sub !== void 0) {
464
464
  const subWritten = simpleScriptGlyph(sub);
465
465
  const baseGlyph = base !== void 0 && (base.type === "mathord" || base.type === "textord") ? glyphOfNode(base) : void 0;
@@ -520,8 +520,8 @@ function readBinder(node, context) {
520
520
  if (base.name !== "\\sum" && base.name !== "\\prod") return { status: "not-a-binder" };
521
521
  const kind = base.name === "\\sum" ? "sum" : "prod";
522
522
  const detail = spanOfNodes(context, [node]);
523
- const sub = node.sub === void 0 ? void 0 : nodesOfScript(node.sub);
524
- const sup = node.sup === void 0 ? void 0 : nodesOfScript(node.sup);
523
+ const sub = nodesOfScript(node.sub);
524
+ const sup = nodesOfScript(node.sup);
525
525
  const upper = sup === void 0 ? implicitBound(context) : lowerNodeList(sup, context);
526
526
  if ((sub?.length ?? 0) >= 3) {
527
527
  const first = sub?.[0];
@@ -536,7 +536,7 @@ function readBinder(node, context) {
536
536
  upper
537
537
  };
538
538
  }
539
- if ((sub?.length ?? 0) === 1 && sub !== void 0) {
539
+ if (sub?.length === 1) {
540
540
  const singleGlyph = simpleScriptGlyph(sub);
541
541
  if (singleGlyph !== void 0) {
542
542
  diagnose(context, "latex/binder-bound-implicit", detail);
@@ -457,8 +457,8 @@ function lowerSupsub(node, context) {
457
457
  if (binder.status === "degraded") return unparsed(binder.detail);
458
458
  const detail = spanOfNodes(context, [node]);
459
459
  const base = isTemmlNode(node.base) ? node.base : void 0;
460
- const sub = node.sub === void 0 ? void 0 : nodesOfScript(node.sub);
461
- const sup = node.sup === void 0 ? void 0 : nodesOfScript(node.sup);
460
+ const sub = nodesOfScript(node.sub);
461
+ const sup = nodesOfScript(node.sup);
462
462
  if (sub !== void 0) {
463
463
  const subWritten = simpleScriptGlyph(sub);
464
464
  const baseGlyph = base !== void 0 && (base.type === "mathord" || base.type === "textord") ? glyphOfNode(base) : void 0;
@@ -519,8 +519,8 @@ function readBinder(node, context) {
519
519
  if (base.name !== "\\sum" && base.name !== "\\prod") return { status: "not-a-binder" };
520
520
  const kind = base.name === "\\sum" ? "sum" : "prod";
521
521
  const detail = spanOfNodes(context, [node]);
522
- const sub = node.sub === void 0 ? void 0 : nodesOfScript(node.sub);
523
- const sup = node.sup === void 0 ? void 0 : nodesOfScript(node.sup);
522
+ const sub = nodesOfScript(node.sub);
523
+ const sup = nodesOfScript(node.sup);
524
524
  const upper = sup === void 0 ? implicitBound(context) : lowerNodeList(sup, context);
525
525
  if ((sub?.length ?? 0) >= 3) {
526
526
  const first = sub?.[0];
@@ -535,7 +535,7 @@ function readBinder(node, context) {
535
535
  upper
536
536
  };
537
537
  }
538
- if ((sub?.length ?? 0) === 1 && sub !== void 0) {
538
+ if (sub?.length === 1) {
539
539
  const singleGlyph = simpleScriptGlyph(sub);
540
540
  if (singleGlyph !== void 0) {
541
541
  diagnose(context, "latex/binder-bound-implicit", detail);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "js.documents",
3
- "version": "14.4.6",
3
+ "version": "14.4.8",
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": {
@@ -86,7 +86,7 @@
86
86
  "markdown-codec": "11.1.3",
87
87
  "odf.js": "11.1.3",
88
88
  "ooxml.js": "12.2.8",
89
- "pdf-codec": "5.2.14",
89
+ "pdf-codec": "5.2.15",
90
90
  "ppt-codec": "2.2.3",
91
91
  "rtf-codec": "8.1.3",
92
92
  "temml": "0.13.4",