docx-plus 0.4.5 → 0.5.0

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/README.md CHANGED
@@ -79,21 +79,21 @@ import { Document, Paragraph, TextRun, Packer } from "docx-plus";
79
79
  import { writeFileSync } from "node:fs";
80
80
 
81
81
  const doc = new Document({
82
- sections: [
83
- {
84
- children: [
85
- new Paragraph({
86
- children: [
87
- new TextRun("Hello World"),
88
- new TextRun({
89
- text: " - Bold text",
90
- bold: true,
91
- }),
92
- ],
93
- }),
94
- ],
95
- },
96
- ],
82
+ sections: [
83
+ {
84
+ children: [
85
+ new Paragraph({
86
+ children: [
87
+ new TextRun("Hello World"),
88
+ new TextRun({
89
+ text: " - Bold text",
90
+ bold: true,
91
+ }),
92
+ ],
93
+ }),
94
+ ],
95
+ },
96
+ ],
97
97
  });
98
98
 
99
99
  const buffer = await Packer.toBuffer(doc);
package/dist/index.cjs CHANGED
@@ -1,9 +1 @@
1
- var _office_open_docx = require("@office-open/docx");
2
- Object.keys(_office_open_docx).forEach(function(k) {
3
- if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
4
- enumerable: true,
5
- get: function() {
6
- return _office_open_docx[k];
7
- }
8
- });
9
- });
1
+ var e=require(`@office-open/docx`);Object.keys(e).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(exports,t)&&Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})});
package/dist/index.mjs CHANGED
@@ -1,2 +1 @@
1
- export * from "@office-open/docx";
2
- export {};
1
+ export*from"@office-open/docx";export{};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docx-plus",
3
- "version": "0.4.5",
3
+ "version": "0.5.0",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "keywords": [
6
6
  "clippy",
@@ -44,10 +44,10 @@
44
44
  }
45
45
  },
46
46
  "dependencies": {
47
- "@office-open/docx": "0.4.5"
47
+ "@office-open/docx": "0.5.0"
48
48
  },
49
49
  "scripts": {
50
50
  "dev": "basis build --stub",
51
- "build": "basis build"
51
+ "build": "vp pack"
52
52
  }
53
53
  }