@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 }; |
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
+7
-7
| { | ||
| "name": "@office-open/docx", | ||
| "version": "0.6.6", | ||
| "version": "0.6.7", | ||
| "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.", | ||
@@ -35,8 +35,8 @@ "keywords": [ | ||
| "type": "module", | ||
| "main": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "main": "dist/index.mjs", | ||
| "types": "dist/index.d.mts", | ||
| "exports": { | ||
| ".": { | ||
| "types": "./dist/index.d.ts", | ||
| "import": "./dist/index.js" | ||
| "types": "./dist/index.d.mts", | ||
| "import": "./dist/index.mjs" | ||
| } | ||
@@ -46,4 +46,4 @@ }, | ||
| "undio": "0.2.0", | ||
| "@office-open/core": "0.6.6", | ||
| "@office-open/xml": "0.6.6" | ||
| "@office-open/core": "0.6.7", | ||
| "@office-open/xml": "0.6.7" | ||
| }, | ||
@@ -50,0 +50,0 @@ "scripts": { |
+12
-12
@@ -87,6 +87,6 @@ # @office-open/docx | ||
| | ------------------------------------------------------- | -----------: | ----------: | ------------: | ----------: | --------: | | ||
| | Simple (2 paragraphs) | 395 ops/s | 3,024 ops/s | 414 ops/s | 3,078 ops/s | 201 ops/s | | ||
| | Styled paragraphs (20) | 597 ops/s | 2,315 ops/s | 604 ops/s | 2,453 ops/s | 247 ops/s | | ||
| | Table (10×5) | 460 ops/s | 1,984 ops/s | 597 ops/s | 1,961 ops/s | 212 ops/s | | ||
| | Full featured (header/footer/headings/table/paragraphs) | 381 ops/s | 1,294 ops/s | 418 ops/s | 1,324 ops/s | 193 ops/s | | ||
| | 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 | | ||
@@ -97,5 +97,5 @@ **Large Files — Create + toBuffer** | ||
| | ---------------------------- | -----------: | ----------: | ------------: | ----------: | ---------: | | ||
| | 2000 paragraphs | 49.0 ops/s | 67.4 ops/s | 20.8 ops/s | 66.6 ops/s | 26.2 ops/s | | ||
| | 200×10 table | 90.1 ops/s | 129.1 ops/s | 25.5 ops/s | 125.5 ops/s | 37.0 ops/s | | ||
| | 20 sections × 100 paragraphs | 47.4 ops/s | 83.4 ops/s | 23.3 ops/s | 85.7 ops/s | 28.0 ops/s | | ||
| | 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 | | ||
@@ -108,7 +108,7 @@ **Large File (~100MB) — Mixed Content** | ||
| | ------------- | ---------: | -------: | | ||
| | DEFLATE sync | 0.35 ops/s | **1.2x** | | ||
| | STORE sync | 0.36 ops/s | **1.2x** | | ||
| | DEFLATE async | 0.40 ops/s | **1.3x** | | ||
| | STORE async | 0.39 ops/s | **1.3x** | | ||
| | docx | 0.30 ops/s | | | ||
| | 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 | | | ||
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2425321
-0.08%18285
-19.81%+ Added
+ Added
- Removed
- Removed
Updated
Updated