Compare commits

...

4 Commits
9.4.0 ... 9.4.1

Author SHA1 Message Date
44ed2d6943 Fix: Use browser compatable Buffer (#3057)
* Fix: Use browser compatable Buffer

* Update src/patcher/from-docx.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-04-18 00:02:21 +01:00
fe7a75b754 build(deps-dev): bump cspell from 8.18.1 to 8.19.0 (#3055)
Bumps [cspell](https://github.com/streetsidesoftware/cspell/tree/HEAD/packages/cspell) from 8.18.1 to 8.19.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/packages/cspell/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/commits/v8.19.0/packages/cspell)

---
updated-dependencies:
- dependency-name: cspell
  dependency-version: 8.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-17 23:53:40 +01:00
d30cd546ab build(deps-dev): bump vite from 6.3.0 to 6.3.1 (#3054)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.3.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.3.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-17 23:53:30 +01:00
03d47658d6 Fix guidelines 2025-04-17 00:41:04 +01:00
4 changed files with 256 additions and 244 deletions

View File

@ -127,7 +127,7 @@ Using `type` aliases in TypeScript offers several advantages over `interfaces`:
Detailed discussion: https://stackoverflow.com/questions/37233735/typescript-interfaces-vs-types Detailed discussion: https://stackoverflow.com/questions/37233735/typescript-interfaces-vs-types
**Do:** **Do not:**
```ts ```ts
interface IRelationshipFileInfo { interface IRelationshipFileInfo {
@ -136,7 +136,7 @@ interface IRelationshipFileInfo {
} }
``` ```
**Do not:** **Do:**
```ts ```ts
type RelationshipFileInfo = { id: number; target: string }; type RelationshipFileInfo = { id: number; target: string };

476
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "docx", "name": "docx",
"version": "9.4.0", "version": "9.4.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "docx", "name": "docx",
"version": "9.4.0", "version": "9.4.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@types/node": "^22.7.5", "@types/node": "^22.7.5",
@ -178,28 +178,28 @@
} }
}, },
"node_modules/@cspell/cspell-bundled-dicts": { "node_modules/@cspell/cspell-bundled-dicts": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-8.19.0.tgz",
"integrity": "sha512-gxciVVfQqCVXYH0p2Q5D7x7/SgaW3Wv5UjRwO+TCme0P2lVLl/IcfjkujZX+6UQkT7X4QRglXo1QN141UcCRCQ==", "integrity": "sha512-ISPiC8YQr+09aGFK6VPxxygp3BOSvU/Axlvl2eCYhH+vS+3NoYWakn+UZJ6DoveIsfFWp9LpbU9/xLea8qbG4g==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/dict-ada": "^4.1.0", "@cspell/dict-ada": "^4.1.0",
"@cspell/dict-al": "^1.1.0", "@cspell/dict-al": "^1.1.0",
"@cspell/dict-aws": "^4.0.9", "@cspell/dict-aws": "^4.0.10",
"@cspell/dict-bash": "^4.2.0", "@cspell/dict-bash": "^4.2.0",
"@cspell/dict-companies": "^3.1.14", "@cspell/dict-companies": "^3.1.15",
"@cspell/dict-cpp": "^6.0.6", "@cspell/dict-cpp": "^6.0.8",
"@cspell/dict-cryptocurrencies": "^5.0.4", "@cspell/dict-cryptocurrencies": "^5.0.4",
"@cspell/dict-csharp": "^4.0.6", "@cspell/dict-csharp": "^4.0.6",
"@cspell/dict-css": "^4.0.17", "@cspell/dict-css": "^4.0.17",
"@cspell/dict-dart": "^2.3.0", "@cspell/dict-dart": "^2.3.0",
"@cspell/dict-data-science": "^2.0.7", "@cspell/dict-data-science": "^2.0.8",
"@cspell/dict-django": "^4.1.4", "@cspell/dict-django": "^4.1.4",
"@cspell/dict-docker": "^1.1.12", "@cspell/dict-docker": "^1.1.13",
"@cspell/dict-dotnet": "^5.0.9", "@cspell/dict-dotnet": "^5.0.9",
"@cspell/dict-elixir": "^4.0.7", "@cspell/dict-elixir": "^4.0.7",
"@cspell/dict-en_us": "^4.3.35", "@cspell/dict-en_us": "^4.4.1",
"@cspell/dict-en-common-misspellings": "^2.0.10", "@cspell/dict-en-common-misspellings": "^2.0.10",
"@cspell/dict-en-gb": "1.1.33", "@cspell/dict-en-gb": "1.1.33",
"@cspell/dict-filetypes": "^3.0.11", "@cspell/dict-filetypes": "^3.0.11",
@ -207,9 +207,9 @@
"@cspell/dict-fonts": "^4.0.4", "@cspell/dict-fonts": "^4.0.4",
"@cspell/dict-fsharp": "^1.1.0", "@cspell/dict-fsharp": "^1.1.0",
"@cspell/dict-fullstack": "^3.2.6", "@cspell/dict-fullstack": "^3.2.6",
"@cspell/dict-gaming-terms": "^1.1.0", "@cspell/dict-gaming-terms": "^1.1.1",
"@cspell/dict-git": "^3.0.4", "@cspell/dict-git": "^3.0.4",
"@cspell/dict-golang": "^6.0.19", "@cspell/dict-golang": "^6.0.20",
"@cspell/dict-google": "^1.0.8", "@cspell/dict-google": "^1.0.8",
"@cspell/dict-haskell": "^4.0.5", "@cspell/dict-haskell": "^4.0.5",
"@cspell/dict-html": "^4.0.11", "@cspell/dict-html": "^4.0.11",
@ -222,25 +222,25 @@
"@cspell/dict-lorem-ipsum": "^4.0.4", "@cspell/dict-lorem-ipsum": "^4.0.4",
"@cspell/dict-lua": "^4.0.7", "@cspell/dict-lua": "^4.0.7",
"@cspell/dict-makefile": "^1.0.4", "@cspell/dict-makefile": "^1.0.4",
"@cspell/dict-markdown": "^2.0.9", "@cspell/dict-markdown": "^2.0.10",
"@cspell/dict-monkeyc": "^1.0.10", "@cspell/dict-monkeyc": "^1.0.10",
"@cspell/dict-node": "^5.0.6", "@cspell/dict-node": "^5.0.7",
"@cspell/dict-npm": "^5.1.31", "@cspell/dict-npm": "^5.2.0",
"@cspell/dict-php": "^4.0.14", "@cspell/dict-php": "^4.0.14",
"@cspell/dict-powershell": "^5.0.14", "@cspell/dict-powershell": "^5.0.14",
"@cspell/dict-public-licenses": "^2.0.13", "@cspell/dict-public-licenses": "^2.0.13",
"@cspell/dict-python": "^4.2.16", "@cspell/dict-python": "^4.2.17",
"@cspell/dict-r": "^2.1.0", "@cspell/dict-r": "^2.1.0",
"@cspell/dict-ruby": "^5.0.8", "@cspell/dict-ruby": "^5.0.8",
"@cspell/dict-rust": "^4.0.11", "@cspell/dict-rust": "^4.0.11",
"@cspell/dict-scala": "^5.0.7", "@cspell/dict-scala": "^5.0.7",
"@cspell/dict-shell": "^1.1.0", "@cspell/dict-shell": "^1.1.0",
"@cspell/dict-software-terms": "^5.0.2", "@cspell/dict-software-terms": "^5.0.5",
"@cspell/dict-sql": "^2.2.0", "@cspell/dict-sql": "^2.2.0",
"@cspell/dict-svelte": "^1.0.6", "@cspell/dict-svelte": "^1.0.6",
"@cspell/dict-swift": "^2.0.5", "@cspell/dict-swift": "^2.0.5",
"@cspell/dict-terraform": "^1.1.1", "@cspell/dict-terraform": "^1.1.1",
"@cspell/dict-typescript": "^3.2.0", "@cspell/dict-typescript": "^3.2.1",
"@cspell/dict-vue": "^3.0.4" "@cspell/dict-vue": "^3.0.4"
}, },
"engines": { "engines": {
@ -248,22 +248,22 @@
} }
}, },
"node_modules/@cspell/cspell-json-reporter": { "node_modules/@cspell/cspell-json-reporter": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-8.19.0.tgz",
"integrity": "sha512-/U3/8bcOL5O35fI9F7nN7Mhic0K01ZRxRV/+5jj7atltBbqgFSxViHCZBX0lDZJM96gUHn+3r6q6/8VEJahpDA==", "integrity": "sha512-MkpBlQizR9UxwrYhzJgz02yzgrmfyPpb+QctwKNJthscymhjufkBFnBj5cHK5fbmp+/y4jXxaX+Ew6QUFiJsNw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-types": "8.18.1" "@cspell/cspell-types": "8.19.0"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/@cspell/cspell-pipe": { "node_modules/@cspell/cspell-pipe": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-8.19.0.tgz",
"integrity": "sha512-QHndTQPkR1c02pvvQ7UKFtLjCXgY0OcX8zjTLrCkynmcQxJFjAZAh9cJ7NMOAxab+ciSnkaVf4KWaRSEG17z8Q==", "integrity": "sha512-OtgF/oQ3n6T/qM+fIWLfhOhW0fLSPnpZGOZi7uKSCJZxnHKVk0h+7zNPlLkcDHrhxZP4Df76S9z7jU5iEC2oYA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -271,9 +271,9 @@
} }
}, },
"node_modules/@cspell/cspell-resolver": { "node_modules/@cspell/cspell-resolver": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-8.19.0.tgz",
"integrity": "sha512-T2sUBv0p9Hnfyg1xT1u3ESKuIWaaIDo0I8idh5DSlTpHgLjdIeAwasmFjEJ28qZv8OKSGawcSQKgJbStfbZASQ==", "integrity": "sha512-/iA0ALPgnX9bN6Xwt5hfbmh7oTVoXNDS5k0rBZDGz+w0/zKn6T1XxPUIlkz5T2e4nSKOmmlpcNZGdroA7GdUfA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -284,9 +284,9 @@
} }
}, },
"node_modules/@cspell/cspell-service-bus": { "node_modules/@cspell/cspell-service-bus": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-8.19.0.tgz",
"integrity": "sha512-PwWl7EyhGIu4wHEhvBJb6xVlqMtFwQk0qLDArBvugL6nA+MX9NfG/w7PTgS7tCkFjVF1ku2sDzDLTDWwEk+MLw==", "integrity": "sha512-L5knViQupeqBMwfP0iQ3+oDQ8s1pzRodcOR/6H2b9cGjuIFPIcsfclzuqVzzMtfptY25WCEpC735pwcfyIRnnQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -294,9 +294,9 @@
} }
}, },
"node_modules/@cspell/cspell-types": { "node_modules/@cspell/cspell-types": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-8.19.0.tgz",
"integrity": "sha512-d/nMG+qnMbI/1JPm+lD0KcKpgtEHMRsHxkdtGyNCDgvHL/JOGaSHc5ERS3IUgBW0Dfya/3z9wPdaMcHEzt7YCQ==", "integrity": "sha512-iWOtHogjZdRbX4zBlXRdh3+NB1DqgBD68+U70yL9+r37szMd8D5tRcm3h98yzhfbXW34zWhvfOiXvRi28SH4ng==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -412,9 +412,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@cspell/dict-en_us": { "node_modules/@cspell/dict-en_us": {
"version": "4.4.1", "version": "4.4.2",
"resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.2.tgz",
"integrity": "sha512-OqIImYIrTAg+lpS+1v/KtjI2kyiw1bD3FqGbuXUxpAc+e+pWluW7rPjsJCxTRlruKQMSCgQeK6N054XnxHdkDQ==", "integrity": "sha512-mvpv2kWayuOExCnDgvhlYDoW7gbGvGVTyuof9aFGy0+8ALYAJ2AtlvYCqzdTTKvvsYBrxAEEWFkUh75kHnHibg==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
@ -722,13 +722,13 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/@cspell/dynamic-import": { "node_modules/@cspell/dynamic-import": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-8.19.0.tgz",
"integrity": "sha512-VJHfS/Iv0Rx7wn1pjPmwgsaw6r72N5Cx2gL0slWk8Cogc8YiK7/6jsGnsvxJZVkHntJoiT8PrkIvhNKb3awD3g==", "integrity": "sha512-VrgcgoSyspbXFalaFZgwQXCZQEUR/iKxyqM0R/gRQOk/cRKUnWOkaV0oRJcHhNXZra48boElWXIOlIDXiGhcJQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"import-meta-resolve": "^4.1.0" "import-meta-resolve": "^4.1.0"
}, },
"engines": { "engines": {
@ -736,9 +736,9 @@
} }
}, },
"node_modules/@cspell/filetypes": { "node_modules/@cspell/filetypes": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-8.19.0.tgz",
"integrity": "sha512-vTOb2itP0pjrccvt8wcKiTGyw0pFMTPI85H12T6n8ZhqXTktPgQH2gEf/SU/5tkPNnBKr4GJ+FdU5hJ27HzgXQ==", "integrity": "sha512-fsSry1JPksv/LOcFryMPWPmudFekH5SD1UY6WJ2GL8CNryILbbSypEJNriE/hA1UtOTDEBY0bTlsj81GzfW0Ww==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -746,9 +746,9 @@
} }
}, },
"node_modules/@cspell/strong-weak-map": { "node_modules/@cspell/strong-weak-map": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-8.19.0.tgz",
"integrity": "sha512-gsgv+5ZQD4aHNHDdfNGoafVYkqRynyYgaodt9Dp/3o0YKYcxGf2jrX8SJ35MfZ61qln0n7P4Djrg+bFV2zNH5w==", "integrity": "sha512-8T/jf/y5cxkizozFJqKuxB+gYhB3JFdjVZjVGKIK8KLT7ebnO1bkEKe9fbZByZxJQxLVvwIdwWE3EKr5oFNptA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -756,9 +756,9 @@
} }
}, },
"node_modules/@cspell/url": { "node_modules/@cspell/url": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/url/-/url-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/url/-/url-8.19.0.tgz",
"integrity": "sha512-FRJbLYDC9ucpTOzbF6MohP2u5X3NU5L0RoVuoYCynqm/QOI38XP6WOEaI4H58CAn857bOIKZk0LZRPTGzi6Qlg==", "integrity": "sha512-zleyW54/TUYzlWd+5fJev17pk+jpploJnE/NwactKFmSg3VQi7AbwYWz3/hwLyRDz6cpfLKPKk4aJB6ay5QpSg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -5302,25 +5302,25 @@
} }
}, },
"node_modules/cspell": { "node_modules/cspell": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell/-/cspell-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell/-/cspell-8.19.0.tgz",
"integrity": "sha512-RE3LIgN9NAVcYBNX2NQVhLergok8EPymOuCUhu1vBR8cjRmioksn3CJeCoQgD8rPjalM+S9thYkMtOZc5Jjv2A==", "integrity": "sha512-3I6Cz2JZ9iJ5+/zqm1Wy5ak5LSebv/dsy8LGjQ/MlVeofsH7GLFkN/c/krCJzY/KxmgskkxzHZT4fl78/LFVdg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-json-reporter": "8.18.1", "@cspell/cspell-json-reporter": "8.19.0",
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"@cspell/dynamic-import": "8.18.1", "@cspell/dynamic-import": "8.19.0",
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"chalk": "^5.4.1", "chalk": "^5.4.1",
"chalk-template": "^1.1.0", "chalk-template": "^1.1.0",
"commander": "^13.1.0", "commander": "^13.1.0",
"cspell-dictionary": "8.18.1", "cspell-dictionary": "8.19.0",
"cspell-gitignore": "8.18.1", "cspell-gitignore": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-io": "8.18.1", "cspell-io": "8.19.0",
"cspell-lib": "8.18.1", "cspell-lib": "8.19.0",
"fast-json-stable-stringify": "^2.1.0", "fast-json-stable-stringify": "^2.1.0",
"file-entry-cache": "^9.1.0", "file-entry-cache": "^9.1.0",
"get-stdin": "^9.0.0", "get-stdin": "^9.0.0",
@ -5339,30 +5339,30 @@
} }
}, },
"node_modules/cspell-config-lib": { "node_modules/cspell-config-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-8.19.0.tgz",
"integrity": "sha512-zdJ0uhLROSUrHoibysPw+AkxKPUmiG95hDtiL7s8smewkuaS1hpjqwsDBx981nHYs3xW3qDUfVATrAkSzb0VMw==", "integrity": "sha512-WcLOfdj2ZHXPPL3oAvqBhTQTPt3ZgErzMfR6OWwejO/19UUPe9yfr9oCENfjTTVBvsDhkqz40tawM5Y1Uh3WRQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"comment-json": "^4.2.5", "comment-json": "^4.2.5",
"yaml": "^2.7.0" "yaml": "^2.7.1"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/cspell-dictionary": { "node_modules/cspell-dictionary": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-8.19.0.tgz",
"integrity": "sha512-vKHEPSfkMKMR4S4tk6K2vHC+f3kdJK8Kdh/C0jDh6RRDjDsyAPxshtbremxOgAX6X8GaRUCROoMZ7FhB92+Y9w==", "integrity": "sha512-kbJf5IiJu5l3jnobSvGx0q0PlkK12q9Z2g3bLSvatw/iEleiZ7xsA7Yy1jf3AL+iB1gHxXqCZMEUulFSfT0JZA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"cspell-trie-lib": "8.18.1", "cspell-trie-lib": "8.19.0",
"fast-equals": "^5.2.2" "fast-equals": "^5.2.2"
}, },
"engines": { "engines": {
@ -5370,15 +5370,15 @@
} }
}, },
"node_modules/cspell-gitignore": { "node_modules/cspell-gitignore": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-8.19.0.tgz",
"integrity": "sha512-gp/AdUtW6FqpKY4YyYJ3kz0OsXApwsV1FOUA9Z0VnOYKVZtt2snh4uNlI4Ltq+wh7pDU8mqaPWmX6Xy+HSRDkQ==", "integrity": "sha512-iV/cbVlKeIvnyJ6PGYneQgQK+8L62dhoLbyO+9JIOiW0UBqUgEsehImn8gipfSBlgvydbUFwvN3jW4xfjAsl/Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-io": "8.18.1" "cspell-io": "8.19.0"
}, },
"bin": { "bin": {
"cspell-gitignore": "bin.mjs" "cspell-gitignore": "bin.mjs"
@ -5388,13 +5388,13 @@
} }
}, },
"node_modules/cspell-glob": { "node_modules/cspell-glob": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-8.19.0.tgz",
"integrity": "sha512-tlZXvzsN7dByHo69dz/HbJuQDUtrfhdioZ/LHaW7W9diG9NpaghgEfyX4fmsIXjU/2f66LDpYVY6osjtlOgyrg==", "integrity": "sha512-RejVJrORHV8dbbZ0XQvzFAKlnyrFrOTwekgMapb/+FU8/fnoE9id3JZR8NUNRCjs+d4kwDBP3Jh11iSLO+9JlA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"micromatch": "^4.0.8" "micromatch": "^4.0.8"
}, },
"engines": { "engines": {
@ -5402,14 +5402,14 @@
} }
}, },
"node_modules/cspell-grammar": { "node_modules/cspell-grammar": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-8.19.0.tgz",
"integrity": "sha512-V6XTN1B++7EzJA0H4g4XbNJtqm6Y3/iXdLeZ6sMRDaNFKXXwTbWRtn8gukDQIytyw09AnCUKeqGSzCVqw26Omg==", "integrity": "sha512-uMMJyiu82cxeLGFtZr6ArtIqwyRn2pZzM+O1VAOD3NMoslyx52Lij0/qrJsfCF0eobhZDU8cNdgNy99OPeMtWg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1" "@cspell/cspell-types": "8.19.0"
}, },
"bin": { "bin": {
"cspell-grammar": "bin.mjs" "cspell-grammar": "bin.mjs"
@ -5419,42 +5419,42 @@
} }
}, },
"node_modules/cspell-io": { "node_modules/cspell-io": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-8.19.0.tgz",
"integrity": "sha512-mm9SUEF2yShuTXDSjCbsAqYTEb6jrtgcCnlqIzpsZOJOOe+zj/VyzTy2NJvOrdvR59dikdaqB75VGBMfHi804g==", "integrity": "sha512-F3ciuf2yEH5k1pMdRRI6z6gWyQL/UsTNbHHB5TI0meOduha20CdcgKW3bAPypUbeub6qCoNq5bYUan1LHwfswA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-service-bus": "8.18.1", "@cspell/cspell-service-bus": "8.19.0",
"@cspell/url": "8.18.1" "@cspell/url": "8.19.0"
}, },
"engines": { "engines": {
"node": ">=18" "node": ">=18"
} }
}, },
"node_modules/cspell-lib": { "node_modules/cspell-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-8.19.0.tgz",
"integrity": "sha512-t1j+XB7515yHmrczK6I1N6j0a72vmL/6OxsMJnCucHC6DO0WkOqmHulNRH7LpFacnns0dx15lmrAqPg7gQFcIg==", "integrity": "sha512-TyuSV2onWGwIMx+WxCcLwznYDovAV1cQ2atGhgytfe23JvJo18QEiiNd0u2T3y+WVAJvRal68mhxSdxqXLYL0w==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-bundled-dicts": "8.18.1", "@cspell/cspell-bundled-dicts": "8.19.0",
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-resolver": "8.18.1", "@cspell/cspell-resolver": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"@cspell/dynamic-import": "8.18.1", "@cspell/dynamic-import": "8.19.0",
"@cspell/filetypes": "8.18.1", "@cspell/filetypes": "8.19.0",
"@cspell/strong-weak-map": "8.18.1", "@cspell/strong-weak-map": "8.19.0",
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"clear-module": "^4.1.2", "clear-module": "^4.1.2",
"comment-json": "^4.2.5", "comment-json": "^4.2.5",
"cspell-config-lib": "8.18.1", "cspell-config-lib": "8.19.0",
"cspell-dictionary": "8.18.1", "cspell-dictionary": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-grammar": "8.18.1", "cspell-grammar": "8.19.0",
"cspell-io": "8.18.1", "cspell-io": "8.19.0",
"cspell-trie-lib": "8.18.1", "cspell-trie-lib": "8.19.0",
"env-paths": "^3.0.0", "env-paths": "^3.0.0",
"fast-equals": "^5.2.2", "fast-equals": "^5.2.2",
"gensequence": "^7.0.0", "gensequence": "^7.0.0",
@ -5482,14 +5482,14 @@
} }
}, },
"node_modules/cspell-trie-lib": { "node_modules/cspell-trie-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-8.19.0.tgz",
"integrity": "sha512-UaB36wsyp2eWeMtrbS6Q2t2WFvpedmGXJ879yHn9qKD7ViyUpI4cAbh6v7gWMUu+gjqCulXtke64k1ddmBihPQ==", "integrity": "sha512-ZCC8PaHRpB5c6qIIuPLVW2ZxSvc0ulAVD7MKL8fnFKSTw68asDrs7BVwLmNTi3cUkXfGXK9fdL32WtO3YOPMFw==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"gensequence": "^7.0.0" "gensequence": "^7.0.0"
}, },
"engines": { "engines": {
@ -12951,9 +12951,9 @@
} }
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "6.3.0", "version": "6.3.1",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.3.0.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.1.tgz",
"integrity": "sha512-9aC0n4pr6hIbvi1YOpFjwQ+QOTGssvbJKoeYkuHHGWwlXfdxQlI8L2qNMo9awEEcCPSiS+5mJZk5jH1PAqoDeQ==", "integrity": "sha512-kkzzkqtMESYklo96HKKPE5KKLkC1amlsqt+RjFMlX2AvbRB/0wghap19NdBxxwGZ+h/C6DLCrcEphPIItlGrRQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -13895,27 +13895,27 @@
"dev": true "dev": true
}, },
"@cspell/cspell-bundled-dicts": { "@cspell/cspell-bundled-dicts": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-bundled-dicts/-/cspell-bundled-dicts-8.19.0.tgz",
"integrity": "sha512-gxciVVfQqCVXYH0p2Q5D7x7/SgaW3Wv5UjRwO+TCme0P2lVLl/IcfjkujZX+6UQkT7X4QRglXo1QN141UcCRCQ==", "integrity": "sha512-ISPiC8YQr+09aGFK6VPxxygp3BOSvU/Axlvl2eCYhH+vS+3NoYWakn+UZJ6DoveIsfFWp9LpbU9/xLea8qbG4g==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/dict-ada": "^4.1.0", "@cspell/dict-ada": "^4.1.0",
"@cspell/dict-al": "^1.1.0", "@cspell/dict-al": "^1.1.0",
"@cspell/dict-aws": "^4.0.9", "@cspell/dict-aws": "^4.0.10",
"@cspell/dict-bash": "^4.2.0", "@cspell/dict-bash": "^4.2.0",
"@cspell/dict-companies": "^3.1.14", "@cspell/dict-companies": "^3.1.15",
"@cspell/dict-cpp": "^6.0.6", "@cspell/dict-cpp": "^6.0.8",
"@cspell/dict-cryptocurrencies": "^5.0.4", "@cspell/dict-cryptocurrencies": "^5.0.4",
"@cspell/dict-csharp": "^4.0.6", "@cspell/dict-csharp": "^4.0.6",
"@cspell/dict-css": "^4.0.17", "@cspell/dict-css": "^4.0.17",
"@cspell/dict-dart": "^2.3.0", "@cspell/dict-dart": "^2.3.0",
"@cspell/dict-data-science": "^2.0.7", "@cspell/dict-data-science": "^2.0.8",
"@cspell/dict-django": "^4.1.4", "@cspell/dict-django": "^4.1.4",
"@cspell/dict-docker": "^1.1.12", "@cspell/dict-docker": "^1.1.13",
"@cspell/dict-dotnet": "^5.0.9", "@cspell/dict-dotnet": "^5.0.9",
"@cspell/dict-elixir": "^4.0.7", "@cspell/dict-elixir": "^4.0.7",
"@cspell/dict-en_us": "^4.3.35", "@cspell/dict-en_us": "^4.4.1",
"@cspell/dict-en-common-misspellings": "^2.0.10", "@cspell/dict-en-common-misspellings": "^2.0.10",
"@cspell/dict-en-gb": "1.1.33", "@cspell/dict-en-gb": "1.1.33",
"@cspell/dict-filetypes": "^3.0.11", "@cspell/dict-filetypes": "^3.0.11",
@ -13923,9 +13923,9 @@
"@cspell/dict-fonts": "^4.0.4", "@cspell/dict-fonts": "^4.0.4",
"@cspell/dict-fsharp": "^1.1.0", "@cspell/dict-fsharp": "^1.1.0",
"@cspell/dict-fullstack": "^3.2.6", "@cspell/dict-fullstack": "^3.2.6",
"@cspell/dict-gaming-terms": "^1.1.0", "@cspell/dict-gaming-terms": "^1.1.1",
"@cspell/dict-git": "^3.0.4", "@cspell/dict-git": "^3.0.4",
"@cspell/dict-golang": "^6.0.19", "@cspell/dict-golang": "^6.0.20",
"@cspell/dict-google": "^1.0.8", "@cspell/dict-google": "^1.0.8",
"@cspell/dict-haskell": "^4.0.5", "@cspell/dict-haskell": "^4.0.5",
"@cspell/dict-html": "^4.0.11", "@cspell/dict-html": "^4.0.11",
@ -13938,62 +13938,62 @@
"@cspell/dict-lorem-ipsum": "^4.0.4", "@cspell/dict-lorem-ipsum": "^4.0.4",
"@cspell/dict-lua": "^4.0.7", "@cspell/dict-lua": "^4.0.7",
"@cspell/dict-makefile": "^1.0.4", "@cspell/dict-makefile": "^1.0.4",
"@cspell/dict-markdown": "^2.0.9", "@cspell/dict-markdown": "^2.0.10",
"@cspell/dict-monkeyc": "^1.0.10", "@cspell/dict-monkeyc": "^1.0.10",
"@cspell/dict-node": "^5.0.6", "@cspell/dict-node": "^5.0.7",
"@cspell/dict-npm": "^5.1.31", "@cspell/dict-npm": "^5.2.0",
"@cspell/dict-php": "^4.0.14", "@cspell/dict-php": "^4.0.14",
"@cspell/dict-powershell": "^5.0.14", "@cspell/dict-powershell": "^5.0.14",
"@cspell/dict-public-licenses": "^2.0.13", "@cspell/dict-public-licenses": "^2.0.13",
"@cspell/dict-python": "^4.2.16", "@cspell/dict-python": "^4.2.17",
"@cspell/dict-r": "^2.1.0", "@cspell/dict-r": "^2.1.0",
"@cspell/dict-ruby": "^5.0.8", "@cspell/dict-ruby": "^5.0.8",
"@cspell/dict-rust": "^4.0.11", "@cspell/dict-rust": "^4.0.11",
"@cspell/dict-scala": "^5.0.7", "@cspell/dict-scala": "^5.0.7",
"@cspell/dict-shell": "^1.1.0", "@cspell/dict-shell": "^1.1.0",
"@cspell/dict-software-terms": "^5.0.2", "@cspell/dict-software-terms": "^5.0.5",
"@cspell/dict-sql": "^2.2.0", "@cspell/dict-sql": "^2.2.0",
"@cspell/dict-svelte": "^1.0.6", "@cspell/dict-svelte": "^1.0.6",
"@cspell/dict-swift": "^2.0.5", "@cspell/dict-swift": "^2.0.5",
"@cspell/dict-terraform": "^1.1.1", "@cspell/dict-terraform": "^1.1.1",
"@cspell/dict-typescript": "^3.2.0", "@cspell/dict-typescript": "^3.2.1",
"@cspell/dict-vue": "^3.0.4" "@cspell/dict-vue": "^3.0.4"
} }
}, },
"@cspell/cspell-json-reporter": { "@cspell/cspell-json-reporter": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-json-reporter/-/cspell-json-reporter-8.19.0.tgz",
"integrity": "sha512-/U3/8bcOL5O35fI9F7nN7Mhic0K01ZRxRV/+5jj7atltBbqgFSxViHCZBX0lDZJM96gUHn+3r6q6/8VEJahpDA==", "integrity": "sha512-MkpBlQizR9UxwrYhzJgz02yzgrmfyPpb+QctwKNJthscymhjufkBFnBj5cHK5fbmp+/y4jXxaX+Ew6QUFiJsNw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-types": "8.18.1" "@cspell/cspell-types": "8.19.0"
} }
}, },
"@cspell/cspell-pipe": { "@cspell/cspell-pipe": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-pipe/-/cspell-pipe-8.19.0.tgz",
"integrity": "sha512-QHndTQPkR1c02pvvQ7UKFtLjCXgY0OcX8zjTLrCkynmcQxJFjAZAh9cJ7NMOAxab+ciSnkaVf4KWaRSEG17z8Q==", "integrity": "sha512-OtgF/oQ3n6T/qM+fIWLfhOhW0fLSPnpZGOZi7uKSCJZxnHKVk0h+7zNPlLkcDHrhxZP4Df76S9z7jU5iEC2oYA==",
"dev": true "dev": true
}, },
"@cspell/cspell-resolver": { "@cspell/cspell-resolver": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-resolver/-/cspell-resolver-8.19.0.tgz",
"integrity": "sha512-T2sUBv0p9Hnfyg1xT1u3ESKuIWaaIDo0I8idh5DSlTpHgLjdIeAwasmFjEJ28qZv8OKSGawcSQKgJbStfbZASQ==", "integrity": "sha512-/iA0ALPgnX9bN6Xwt5hfbmh7oTVoXNDS5k0rBZDGz+w0/zKn6T1XxPUIlkz5T2e4nSKOmmlpcNZGdroA7GdUfA==",
"dev": true, "dev": true,
"requires": { "requires": {
"global-directory": "^4.0.1" "global-directory": "^4.0.1"
} }
}, },
"@cspell/cspell-service-bus": { "@cspell/cspell-service-bus": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-service-bus/-/cspell-service-bus-8.19.0.tgz",
"integrity": "sha512-PwWl7EyhGIu4wHEhvBJb6xVlqMtFwQk0qLDArBvugL6nA+MX9NfG/w7PTgS7tCkFjVF1ku2sDzDLTDWwEk+MLw==", "integrity": "sha512-L5knViQupeqBMwfP0iQ3+oDQ8s1pzRodcOR/6H2b9cGjuIFPIcsfclzuqVzzMtfptY25WCEpC735pwcfyIRnnQ==",
"dev": true "dev": true
}, },
"@cspell/cspell-types": { "@cspell/cspell-types": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/cspell-types/-/cspell-types-8.19.0.tgz",
"integrity": "sha512-d/nMG+qnMbI/1JPm+lD0KcKpgtEHMRsHxkdtGyNCDgvHL/JOGaSHc5ERS3IUgBW0Dfya/3z9wPdaMcHEzt7YCQ==", "integrity": "sha512-iWOtHogjZdRbX4zBlXRdh3+NB1DqgBD68+U70yL9+r37szMd8D5tRcm3h98yzhfbXW34zWhvfOiXvRi28SH4ng==",
"dev": true "dev": true
}, },
"@cspell/dict-ada": { "@cspell/dict-ada": {
@ -14090,9 +14090,9 @@
"dev": true "dev": true
}, },
"@cspell/dict-en_us": { "@cspell/dict-en_us": {
"version": "4.4.1", "version": "4.4.2",
"resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/dict-en_us/-/dict-en_us-4.4.2.tgz",
"integrity": "sha512-OqIImYIrTAg+lpS+1v/KtjI2kyiw1bD3FqGbuXUxpAc+e+pWluW7rPjsJCxTRlruKQMSCgQeK6N054XnxHdkDQ==", "integrity": "sha512-mvpv2kWayuOExCnDgvhlYDoW7gbGvGVTyuof9aFGy0+8ALYAJ2AtlvYCqzdTTKvvsYBrxAEEWFkUh75kHnHibg==",
"dev": true "dev": true
}, },
"@cspell/dict-en-common-misspellings": { "@cspell/dict-en-common-misspellings": {
@ -14352,31 +14352,31 @@
"dev": true "dev": true
}, },
"@cspell/dynamic-import": { "@cspell/dynamic-import": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/dynamic-import/-/dynamic-import-8.19.0.tgz",
"integrity": "sha512-VJHfS/Iv0Rx7wn1pjPmwgsaw6r72N5Cx2gL0slWk8Cogc8YiK7/6jsGnsvxJZVkHntJoiT8PrkIvhNKb3awD3g==", "integrity": "sha512-VrgcgoSyspbXFalaFZgwQXCZQEUR/iKxyqM0R/gRQOk/cRKUnWOkaV0oRJcHhNXZra48boElWXIOlIDXiGhcJQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"import-meta-resolve": "^4.1.0" "import-meta-resolve": "^4.1.0"
} }
}, },
"@cspell/filetypes": { "@cspell/filetypes": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/filetypes/-/filetypes-8.19.0.tgz",
"integrity": "sha512-vTOb2itP0pjrccvt8wcKiTGyw0pFMTPI85H12T6n8ZhqXTktPgQH2gEf/SU/5tkPNnBKr4GJ+FdU5hJ27HzgXQ==", "integrity": "sha512-fsSry1JPksv/LOcFryMPWPmudFekH5SD1UY6WJ2GL8CNryILbbSypEJNriE/hA1UtOTDEBY0bTlsj81GzfW0Ww==",
"dev": true "dev": true
}, },
"@cspell/strong-weak-map": { "@cspell/strong-weak-map": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/strong-weak-map/-/strong-weak-map-8.19.0.tgz",
"integrity": "sha512-gsgv+5ZQD4aHNHDdfNGoafVYkqRynyYgaodt9Dp/3o0YKYcxGf2jrX8SJ35MfZ61qln0n7P4Djrg+bFV2zNH5w==", "integrity": "sha512-8T/jf/y5cxkizozFJqKuxB+gYhB3JFdjVZjVGKIK8KLT7ebnO1bkEKe9fbZByZxJQxLVvwIdwWE3EKr5oFNptA==",
"dev": true "dev": true
}, },
"@cspell/url": { "@cspell/url": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/@cspell/url/-/url-8.18.1.tgz", "resolved": "https://registry.npmjs.org/@cspell/url/-/url-8.19.0.tgz",
"integrity": "sha512-FRJbLYDC9ucpTOzbF6MohP2u5X3NU5L0RoVuoYCynqm/QOI38XP6WOEaI4H58CAn857bOIKZk0LZRPTGzi6Qlg==", "integrity": "sha512-zleyW54/TUYzlWd+5fJev17pk+jpploJnE/NwactKFmSg3VQi7AbwYWz3/hwLyRDz6cpfLKPKk4aJB6ay5QpSg==",
"dev": true "dev": true
}, },
"@csstools/color-helpers": { "@csstools/color-helpers": {
@ -17292,24 +17292,24 @@
"dev": true "dev": true
}, },
"cspell": { "cspell": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell/-/cspell-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell/-/cspell-8.19.0.tgz",
"integrity": "sha512-RE3LIgN9NAVcYBNX2NQVhLergok8EPymOuCUhu1vBR8cjRmioksn3CJeCoQgD8rPjalM+S9thYkMtOZc5Jjv2A==", "integrity": "sha512-3I6Cz2JZ9iJ5+/zqm1Wy5ak5LSebv/dsy8LGjQ/MlVeofsH7GLFkN/c/krCJzY/KxmgskkxzHZT4fl78/LFVdg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-json-reporter": "8.18.1", "@cspell/cspell-json-reporter": "8.19.0",
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"@cspell/dynamic-import": "8.18.1", "@cspell/dynamic-import": "8.19.0",
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"chalk": "^5.4.1", "chalk": "^5.4.1",
"chalk-template": "^1.1.0", "chalk-template": "^1.1.0",
"commander": "^13.1.0", "commander": "^13.1.0",
"cspell-dictionary": "8.18.1", "cspell-dictionary": "8.19.0",
"cspell-gitignore": "8.18.1", "cspell-gitignore": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-io": "8.18.1", "cspell-io": "8.19.0",
"cspell-lib": "8.18.1", "cspell-lib": "8.19.0",
"fast-json-stable-stringify": "^2.1.0", "fast-json-stable-stringify": "^2.1.0",
"file-entry-cache": "^9.1.0", "file-entry-cache": "^9.1.0",
"get-stdin": "^9.0.0", "get-stdin": "^9.0.0",
@ -17360,91 +17360,91 @@
} }
}, },
"cspell-config-lib": { "cspell-config-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-config-lib/-/cspell-config-lib-8.19.0.tgz",
"integrity": "sha512-zdJ0uhLROSUrHoibysPw+AkxKPUmiG95hDtiL7s8smewkuaS1hpjqwsDBx981nHYs3xW3qDUfVATrAkSzb0VMw==", "integrity": "sha512-WcLOfdj2ZHXPPL3oAvqBhTQTPt3ZgErzMfR6OWwejO/19UUPe9yfr9oCENfjTTVBvsDhkqz40tawM5Y1Uh3WRQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"comment-json": "^4.2.5", "comment-json": "^4.2.5",
"yaml": "^2.7.0" "yaml": "^2.7.1"
} }
}, },
"cspell-dictionary": { "cspell-dictionary": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-dictionary/-/cspell-dictionary-8.19.0.tgz",
"integrity": "sha512-vKHEPSfkMKMR4S4tk6K2vHC+f3kdJK8Kdh/C0jDh6RRDjDsyAPxshtbremxOgAX6X8GaRUCROoMZ7FhB92+Y9w==", "integrity": "sha512-kbJf5IiJu5l3jnobSvGx0q0PlkK12q9Z2g3bLSvatw/iEleiZ7xsA7Yy1jf3AL+iB1gHxXqCZMEUulFSfT0JZA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"cspell-trie-lib": "8.18.1", "cspell-trie-lib": "8.19.0",
"fast-equals": "^5.2.2" "fast-equals": "^5.2.2"
} }
}, },
"cspell-gitignore": { "cspell-gitignore": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-gitignore/-/cspell-gitignore-8.19.0.tgz",
"integrity": "sha512-gp/AdUtW6FqpKY4YyYJ3kz0OsXApwsV1FOUA9Z0VnOYKVZtt2snh4uNlI4Ltq+wh7pDU8mqaPWmX6Xy+HSRDkQ==", "integrity": "sha512-iV/cbVlKeIvnyJ6PGYneQgQK+8L62dhoLbyO+9JIOiW0UBqUgEsehImn8gipfSBlgvydbUFwvN3jW4xfjAsl/Q==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-io": "8.18.1" "cspell-io": "8.19.0"
} }
}, },
"cspell-glob": { "cspell-glob": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-glob/-/cspell-glob-8.19.0.tgz",
"integrity": "sha512-tlZXvzsN7dByHo69dz/HbJuQDUtrfhdioZ/LHaW7W9diG9NpaghgEfyX4fmsIXjU/2f66LDpYVY6osjtlOgyrg==", "integrity": "sha512-RejVJrORHV8dbbZ0XQvzFAKlnyrFrOTwekgMapb/+FU8/fnoE9id3JZR8NUNRCjs+d4kwDBP3Jh11iSLO+9JlA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"micromatch": "^4.0.8" "micromatch": "^4.0.8"
} }
}, },
"cspell-grammar": { "cspell-grammar": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-grammar/-/cspell-grammar-8.19.0.tgz",
"integrity": "sha512-V6XTN1B++7EzJA0H4g4XbNJtqm6Y3/iXdLeZ6sMRDaNFKXXwTbWRtn8gukDQIytyw09AnCUKeqGSzCVqw26Omg==", "integrity": "sha512-uMMJyiu82cxeLGFtZr6ArtIqwyRn2pZzM+O1VAOD3NMoslyx52Lij0/qrJsfCF0eobhZDU8cNdgNy99OPeMtWg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1" "@cspell/cspell-types": "8.19.0"
} }
}, },
"cspell-io": { "cspell-io": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-io/-/cspell-io-8.19.0.tgz",
"integrity": "sha512-mm9SUEF2yShuTXDSjCbsAqYTEb6jrtgcCnlqIzpsZOJOOe+zj/VyzTy2NJvOrdvR59dikdaqB75VGBMfHi804g==", "integrity": "sha512-F3ciuf2yEH5k1pMdRRI6z6gWyQL/UsTNbHHB5TI0meOduha20CdcgKW3bAPypUbeub6qCoNq5bYUan1LHwfswA==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-service-bus": "8.18.1", "@cspell/cspell-service-bus": "8.19.0",
"@cspell/url": "8.18.1" "@cspell/url": "8.19.0"
} }
}, },
"cspell-lib": { "cspell-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-lib/-/cspell-lib-8.19.0.tgz",
"integrity": "sha512-t1j+XB7515yHmrczK6I1N6j0a72vmL/6OxsMJnCucHC6DO0WkOqmHulNRH7LpFacnns0dx15lmrAqPg7gQFcIg==", "integrity": "sha512-TyuSV2onWGwIMx+WxCcLwznYDovAV1cQ2atGhgytfe23JvJo18QEiiNd0u2T3y+WVAJvRal68mhxSdxqXLYL0w==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-bundled-dicts": "8.18.1", "@cspell/cspell-bundled-dicts": "8.19.0",
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-resolver": "8.18.1", "@cspell/cspell-resolver": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"@cspell/dynamic-import": "8.18.1", "@cspell/dynamic-import": "8.19.0",
"@cspell/filetypes": "8.18.1", "@cspell/filetypes": "8.19.0",
"@cspell/strong-weak-map": "8.18.1", "@cspell/strong-weak-map": "8.19.0",
"@cspell/url": "8.18.1", "@cspell/url": "8.19.0",
"clear-module": "^4.1.2", "clear-module": "^4.1.2",
"comment-json": "^4.2.5", "comment-json": "^4.2.5",
"cspell-config-lib": "8.18.1", "cspell-config-lib": "8.19.0",
"cspell-dictionary": "8.18.1", "cspell-dictionary": "8.19.0",
"cspell-glob": "8.18.1", "cspell-glob": "8.19.0",
"cspell-grammar": "8.18.1", "cspell-grammar": "8.19.0",
"cspell-io": "8.18.1", "cspell-io": "8.19.0",
"cspell-trie-lib": "8.18.1", "cspell-trie-lib": "8.19.0",
"env-paths": "^3.0.0", "env-paths": "^3.0.0",
"fast-equals": "^5.2.2", "fast-equals": "^5.2.2",
"gensequence": "^7.0.0", "gensequence": "^7.0.0",
@ -17464,13 +17464,13 @@
} }
}, },
"cspell-trie-lib": { "cspell-trie-lib": {
"version": "8.18.1", "version": "8.19.0",
"resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-8.18.1.tgz", "resolved": "https://registry.npmjs.org/cspell-trie-lib/-/cspell-trie-lib-8.19.0.tgz",
"integrity": "sha512-UaB36wsyp2eWeMtrbS6Q2t2WFvpedmGXJ879yHn9qKD7ViyUpI4cAbh6v7gWMUu+gjqCulXtke64k1ddmBihPQ==", "integrity": "sha512-ZCC8PaHRpB5c6qIIuPLVW2ZxSvc0ulAVD7MKL8fnFKSTw68asDrs7BVwLmNTi3cUkXfGXK9fdL32WtO3YOPMFw==",
"dev": true, "dev": true,
"requires": { "requires": {
"@cspell/cspell-pipe": "8.18.1", "@cspell/cspell-pipe": "8.19.0",
"@cspell/cspell-types": "8.18.1", "@cspell/cspell-types": "8.19.0",
"gensequence": "^7.0.0" "gensequence": "^7.0.0"
} }
}, },
@ -22836,9 +22836,9 @@
} }
}, },
"vite": { "vite": {
"version": "6.3.0", "version": "6.3.1",
"resolved": "https://registry.npmjs.org/vite/-/vite-6.3.0.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-6.3.1.tgz",
"integrity": "sha512-9aC0n4pr6hIbvi1YOpFjwQ+QOTGssvbJKoeYkuHHGWwlXfdxQlI8L2qNMo9awEEcCPSiS+5mJZk5jH1PAqoDeQ==", "integrity": "sha512-kkzzkqtMESYklo96HKKPE5KKLkC1amlsqt+RjFMlX2AvbRB/0wghap19NdBxxwGZ+h/C6DLCrcEphPIItlGrRQ==",
"dev": true, "dev": true,
"requires": { "requires": {
"esbuild": "^0.25.0", "esbuild": "^0.25.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "docx", "name": "docx",
"version": "9.4.0", "version": "9.4.1",
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.", "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
"type": "module", "type": "module",
"main": "dist/index.umd.cjs", "main": "dist/index.umd.cjs",

View File

@ -63,8 +63,20 @@ export type PatchDocumentOptions<T extends PatchDocumentOutputType = PatchDocume
}; };
const imageReplacer = new ImageReplacer(); const imageReplacer = new ImageReplacer();
const UTF16LE = Buffer.from([0xff, 0xfe]); const UTF16LE = new Uint8Array([0xff, 0xfe]);
const UTF16BE = Buffer.from([0xfe, 0xff]); const UTF16BE = new Uint8Array([0xfe, 0xff]);
const compareByteArrays = (a: Uint8Array, b: Uint8Array): boolean => {
if (a.length !== b.length) {
return false;
}
for (let i = 0; i < a.length; i++) {
if (a[i] !== b[i]) {
return false;
}
}
return true;
};
export const patchDocument = async <T extends PatchDocumentOutputType = PatchDocumentOutputType>({ export const patchDocument = async <T extends PatchDocumentOutputType = PatchDocumentOutputType>({
outputType, outputType,
@ -96,7 +108,7 @@ export const patchDocument = async <T extends PatchDocumentOutputType = PatchDoc
for (const [key, value] of Object.entries(zipContent.files)) { for (const [key, value] of Object.entries(zipContent.files)) {
const binaryValue = await value.async("uint8array"); const binaryValue = await value.async("uint8array");
const startBytes = binaryValue.slice(0, 2); const startBytes = binaryValue.slice(0, 2);
if (UTF16LE.equals(startBytes) || UTF16BE.equals(startBytes)) { if (compareByteArrays(startBytes, UTF16LE) || compareByteArrays(startBytes, UTF16BE)) {
binaryContentMap.set(key, binaryValue); binaryContentMap.set(key, binaryValue);
continue; continue;
} }