Comparing version 2.1.2 to 2.1.3
@@ -88,3 +88,3 @@ "use strict"; | ||
pageBreak() { | ||
this.properties.push(new page_break_1.PageBreak()); | ||
this.root.push(new page_break_1.PageBreak()); | ||
return this; | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "docx", | ||
"version": "2.1.2", | ||
"version": "2.1.3", | ||
"description": "Generate .docx documents with JavaScript (formerly Office-Clippy)", | ||
@@ -58,4 +58,4 @@ "main": "build/index.js", | ||
"typedoc": "^0.5.10", | ||
"typescript": "^2.4.1" | ||
"typescript": "2.4.1" | ||
} | ||
} |
@@ -106,3 +106,3 @@ import { IData } from "../../media/data"; | ||
public pageBreak(): Paragraph { | ||
this.properties.push(new PageBreak()); | ||
this.root.push(new PageBreak()); | ||
return this; | ||
@@ -109,0 +109,0 @@ } |
@@ -147,8 +147,8 @@ import { assert, expect } from "chai"; | ||
"w:p": [{ | ||
"w:pPr": [{ | ||
"w:r": [ | ||
{"w:rPr": []}, | ||
{"w:br": [{_attr: {"w:type": "page"}}]}, | ||
], | ||
}], | ||
"w:pPr": [], | ||
},{ | ||
"w:r": [ | ||
{"w:rPr": []}, | ||
{"w:br": [{_attr: {"w:type": "page"}}]}, | ||
], | ||
}], | ||
@@ -155,0 +155,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386251