@office-open/docx
Advanced tools
| //#region \0rolldown/runtime.js | ||
| var __defProp = Object.defineProperty; | ||
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
| var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res); | ||
| var __exportAll = (all, no_symbols) => { | ||
| let target = {}; | ||
| for (var name in all) __defProp(target, name, { | ||
| get: all[name], | ||
| enumerable: true | ||
| }); | ||
| if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); | ||
| return target; | ||
| }; | ||
| var __copyProps = (to, from, except, desc) => { | ||
| if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | ||
| key = keys[i]; | ||
| if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { | ||
| get: ((k) => from[k]).bind(null, key), | ||
| enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | ||
| }); | ||
| } | ||
| return to; | ||
| }; | ||
| var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
| var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
| //#endregion | ||
| export { __toCommonJS as i, __exportAll as n, __reExport as r, __esmMin as t }; |
+3
-3
| { | ||
| "name": "@office-open/docx", | ||
| "version": "0.6.8", | ||
| "version": "0.6.9", | ||
| "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
| "undio": "0.2.0", | ||
| "@office-open/core": "0.6.8", | ||
| "@office-open/xml": "0.6.8" | ||
| "@office-open/core": "0.6.9", | ||
| "@office-open/xml": "0.6.9" | ||
| }, | ||
@@ -49,0 +49,0 @@ "scripts": { |
+12
-12
@@ -87,6 +87,6 @@ # @office-open/docx | ||
| | ------------------------------------------------------- | -----------: | ----------: | ------------: | ----------: | --------: | | ||
| | Simple (2 paragraphs) | 300 ops/s | 2,370 ops/s | 367 ops/s | 2,577 ops/s | 153 ops/s | | ||
| | Styled paragraphs (20) | 449 ops/s | 2,145 ops/s | 520 ops/s | 2,047 ops/s | 208 ops/s | | ||
| | Table (10×5) | 522 ops/s | 1,850 ops/s | 451 ops/s | 1,818 ops/s | 196 ops/s | | ||
| | Full featured (header/footer/headings/table/paragraphs) | 382 ops/s | 1,099 ops/s | 384 ops/s | 1,054 ops/s | 168 ops/s | | ||
| | Simple (2 paragraphs) | 349 ops/s | 2,085 ops/s | 379 ops/s | 2,495 ops/s | 192 ops/s | | ||
| | Styled paragraphs (20) | 477 ops/s | 1,983 ops/s | 511 ops/s | 1,918 ops/s | 236 ops/s | | ||
| | Table (10×5) | 448 ops/s | 1,505 ops/s | 480 ops/s | 1,565 ops/s | 203 ops/s | | ||
| | Full featured (header/footer/headings/table/paragraphs) | 326 ops/s | 992 ops/s | 380 ops/s | 1,100 ops/s | 163 ops/s | | ||
@@ -97,5 +97,5 @@ **Large Files — Create + toBuffer** | ||
| | ---------------------------- | -----------: | ----------: | ------------: | ----------: | ---------: | | ||
| | 2000 paragraphs | 43.3 ops/s | 62.7 ops/s | 19.8 ops/s | 64.9 ops/s | 24.2 ops/s | | ||
| | 200×10 table | 85.5 ops/s | 107.0 ops/s | 23.0 ops/s | 110.7 ops/s | 34.3 ops/s | | ||
| | 20 sections × 100 paragraphs | 47.9 ops/s | 73.7 ops/s | 20.4 ops/s | 76.3 ops/s | 20.4 ops/s | | ||
| | 2000 paragraphs | 43.6 ops/s | 53.4 ops/s | 17.7 ops/s | 53.8 ops/s | 20.0 ops/s | | ||
| | 200×10 table | 78.0 ops/s | 106.6 ops/s | 24.1 ops/s | 109.6 ops/s | 30.0 ops/s | | ||
| | 20 sections × 100 paragraphs | 44.0 ops/s | 70.9 ops/s | 21.6 ops/s | 75.9 ops/s | 22.9 ops/s | | ||
@@ -108,7 +108,7 @@ **Large File (~100MB) — Mixed Content** | ||
| | ------------- | ---------: | -------: | | ||
| | DEFLATE sync | 0.34 ops/s | **1.1x** | | ||
| | STORE sync | 0.34 ops/s | **1.1x** | | ||
| | DEFLATE async | 0.38 ops/s | **1.2x** | | ||
| | STORE async | 0.38 ops/s | **1.2x** | | ||
| | docx | 0.31 ops/s | | | ||
| | DEFLATE sync | 0.37 ops/s | **1.8x** | | ||
| | STORE sync | 0.37 ops/s | **1.7x** | | ||
| | DEFLATE async | 0.41 ops/s | **2.0x** | | ||
| | STORE async | 0.42 ops/s | **2.0x** | | ||
| | docx | 0.21 ops/s | | | ||
@@ -115,0 +115,0 @@ ## License |
| //#region \0rolldown/runtime.js | ||
| var __defProp = Object.defineProperty; | ||
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
| var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res); | ||
| var __exportAll = (all, no_symbols) => { | ||
| let target = {}; | ||
| for (var name in all) __defProp(target, name, { | ||
| get: all[name], | ||
| enumerable: true | ||
| }); | ||
| if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" }); | ||
| return target; | ||
| }; | ||
| var __copyProps = (to, from, except, desc) => { | ||
| if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | ||
| key = keys[i]; | ||
| if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { | ||
| get: ((k) => from[k]).bind(null, key), | ||
| enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | ||
| }); | ||
| } | ||
| return to; | ||
| }; | ||
| var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default")); | ||
| var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
| //#endregion | ||
| export { __toCommonJS as i, __exportAll as n, __reExport as r, __esmMin as t }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2396087
0.23%18051
-0.01%+ Added
+ Added
- Removed
- Removed
Updated
Updated