@office-open/docx 0.4.6 → 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
@@ -49,21 +49,21 @@ import { Document, Paragraph, TextRun, Packer } from "@office-open/docx";
49
49
  import { writeFileSync } from "node:fs";
50
50
 
51
51
  const doc = new Document({
52
- sections: [
53
- {
54
- children: [
55
- new Paragraph({
56
- children: [
57
- new TextRun("Hello World"),
58
- new TextRun({
59
- text: " - Bold text",
60
- bold: true,
61
- }),
62
- ],
63
- }),
64
- ],
65
- },
66
- ],
52
+ sections: [
53
+ {
54
+ children: [
55
+ new Paragraph({
56
+ children: [
57
+ new TextRun("Hello World"),
58
+ new TextRun({
59
+ text: " - Bold text",
60
+ bold: true,
61
+ }),
62
+ ],
63
+ }),
64
+ ],
65
+ },
66
+ ],
67
67
  });
68
68
 
69
69
  const buffer = await Packer.toBuffer(doc);
@@ -0,0 +1 @@
1
+ var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i=(e,t)=>()=>(e&&(t=e(e=0)),t),a=(t,n)=>{let r={};for(var i in t)e(r,i,{get:t[i],enumerable:!0});return n||e(r,Symbol.toStringTag,{value:`Module`}),r},o=(i,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(var c=n(a),l=0,u=c.length,d;l<u;l++)d=c[l],!r.call(i,d)&&d!==o&&e(i,d,{get:(e=>a[e]).bind(null,d),enumerable:!(s=t(a,d))||s.enumerable});return i},s=(e,t,n)=>(o(e,t,`default`),n&&o(n,t,`default`)),c=t=>r.call(t,`module.exports`)?t[`module.exports`]:o(e({},`__esModule`,{value:!0}),t);export{c as i,a as n,s as r,i as t};