docxmlater 10.1.7 → 10.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docxmlater",
3
- "version": "10.1.7",
3
+ "version": "10.1.8",
4
4
  "description": "A comprehensive DOCX editing framework for creating, reading, and manipulating Microsoft Word documents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -6190,7 +6190,11 @@ export class Document {
6190
6190
  // Direct run
6191
6191
  runs.push(item);
6192
6192
  } else if (item instanceof Revision) {
6193
- // Runs inside revision wrappers
6193
+ // Skip deleted/moved-away content — these runs are inactive
6194
+ const revType = item.getType();
6195
+ if (revType === 'delete' || revType === 'moveFrom') {
6196
+ continue;
6197
+ }
6194
6198
  const revisionRuns = item.getRuns();
6195
6199
  runs.push(...revisionRuns);
6196
6200
  } else if (item instanceof Hyperlink) {