diff --git a/package-lock.json b/package-lock.json index 67914e7f7b..9a175b9458 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "docx", - "version": "7.8.1", + "version": "7.8.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "docx", - "version": "7.8.1", + "version": "7.8.2", "license": "MIT", "dependencies": { "@types/node": "^18.0.0", diff --git a/package.json b/package.json index 624927d190..1197acdf80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "docx", - "version": "7.8.1", + "version": "7.8.2", "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.", "main": "build/index.js", "scripts": { diff --git a/src/file/document/body/section-properties/properties/page-borders.ts b/src/file/document/body/section-properties/properties/page-borders.ts index 9477315838..894a805316 100644 --- a/src/file/document/body/section-properties/properties/page-borders.ts +++ b/src/file/document/body/section-properties/properties/page-borders.ts @@ -75,7 +75,7 @@ export class PageBorders extends IgnoreIfEmptyXmlComponent { super("w:pgBorders"); if (!options) { - return; + return this; } if (options.pageBorders) { diff --git a/src/file/paragraph/run/symbol-run.ts b/src/file/paragraph/run/symbol-run.ts index 336e878719..5848016ecc 100644 --- a/src/file/paragraph/run/symbol-run.ts +++ b/src/file/paragraph/run/symbol-run.ts @@ -11,7 +11,7 @@ export class SymbolRun extends Run { if (typeof options === "string") { super({}); this.root.push(new Symbol(options)); - return; + return this; } super(options);