docx 8.2.1 → 8.2.3

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/build/index.cjs CHANGED
@@ -19146,7 +19146,7 @@ const patchDocument = async (data, options2) => {
19146
19146
  const binaryContentMap = /* @__PURE__ */ new Map();
19147
19147
  for (const [key, value] of Object.entries(zipContent.files)) {
19148
19148
  if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
19149
- binaryContentMap.set(key, await value.async("nodebuffer"));
19149
+ binaryContentMap.set(key, await value.async("uint8array"));
19150
19150
  continue;
19151
19151
  }
19152
19152
  const json = toJson(await value.async("text"));
@@ -19146,7 +19146,7 @@ var __publicField = (obj, key, value) => {
19146
19146
  const binaryContentMap = /* @__PURE__ */ new Map();
19147
19147
  for (const [key, value] of Object.entries(zipContent.files)) {
19148
19148
  if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
19149
- binaryContentMap.set(key, await value.async("nodebuffer"));
19149
+ binaryContentMap.set(key, await value.async("uint8array"));
19150
19150
  continue;
19151
19151
  }
19152
19152
  const json = toJson(await value.async("text"));
@@ -19144,7 +19144,7 @@ const patchDocument = async (data, options2) => {
19144
19144
  const binaryContentMap = /* @__PURE__ */ new Map();
19145
19145
  for (const [key, value] of Object.entries(zipContent.files)) {
19146
19146
  if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
19147
- binaryContentMap.set(key, await value.async("nodebuffer"));
19147
+ binaryContentMap.set(key, await value.async("uint8array"));
19148
19148
  continue;
19149
19149
  }
19150
19150
  const json = toJson(await value.async("text"));
@@ -19148,7 +19148,7 @@ var __publicField = (obj, key, value) => {
19148
19148
  const binaryContentMap = /* @__PURE__ */ new Map();
19149
19149
  for (const [key, value] of Object.entries(zipContent.files)) {
19150
19150
  if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
19151
- binaryContentMap.set(key, await value.async("nodebuffer"));
19151
+ binaryContentMap.set(key, await value.async("uint8array"));
19152
19152
  continue;
19153
19153
  }
19154
19154
  const json = toJson(await value.async("text"));
package/package.json CHANGED
@@ -1,20 +1,17 @@
1
1
  {
2
2
  "name": "docx",
3
- "version": "8.2.1",
3
+ "version": "8.2.3",
4
4
  "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
5
5
  "type": "module",
6
6
  "main": "build/index.umd.js",
7
- "module": "./build/index.js",
7
+ "module": "./build/index.mjs",
8
8
  "types": "./build/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "browser": {
12
- "default": "./build/index.umd.js"
13
- },
14
11
  "require": "./build/index.cjs",
15
12
  "types": "./build/index.d.ts",
16
- "import": "./build/index.js",
17
- "default": "./build/index.js"
13
+ "import": "./build/index.mjs",
14
+ "default": "./build/index.mjs"
18
15
  }
19
16
  },
20
17
  "files": [
@@ -93,7 +90,7 @@
93
90
  "inquirer": "^9.2.7",
94
91
  "jsdom": "^22.1.0",
95
92
  "pre-commit": "^1.2.2",
96
- "prettier": "^2.3.1",
93
+ "prettier": "^3.0.0",
97
94
  "ts-node": "^10.2.1",
98
95
  "tsconfig-paths": "^4.0.0",
99
96
  "typedoc": "^0.24.8",