Commit Graph

31 Commits

Author SHA1 Message Date
170309a7ed Add Packer.pack and Packer.toArrayBuffer (#2959)
* Add Packer.pack and Packer.toArrayBuffer

To mirror patchDocument's outputType parameter.

See https://github.com/dolanmiu/docx/discussions/2920

* Ignore coverage

---------

Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
2025-02-16 18:24:15 +00:00
05fcf6edd4 Feat: subfile overrides (#2941)
* Adds overrides parameter to Packer methods and compiler

* Adds tests for overrides parameter

* Update Packer usage examples
2025-01-27 10:39:23 +00:00
2381ba8a05 build(deps-dev): bump eslint from 8.57.1 to 9.13.0 (#2792)
* build(deps-dev): bump eslint from 8.57.1 to 9.13.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.57.1 to 9.13.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.13.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Upgrade EsLint

* Fix all new lint errors

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
2024-10-21 03:57:15 +01:00
a756a7697c Change all project enums to objects with as const (#2445)
* feat: change all enums to as const objects

* Add word to dictionary

---------

Co-authored-by: Dolan Miu <dolan_miu@hotmail.com>
2023-12-22 01:25:00 +00:00
eeee01a0e0 Use C8 for coverage 2023-06-12 18:43:29 +01:00
e69b063687 Porting tests over to vitest 2023-06-05 00:33:43 +01:00
0cbb5fb0a3 Convert to vite and clean up build 2023-06-01 02:05:35 +01:00
a26292a0fd Trying to upgrade docx to use Vite 2023-05-01 20:37:39 +01:00
5950055cca Fix linting and add new lint rules 2022-09-19 20:48:50 +01:00
e90d97b813 Use new eslint-plugin-functional instead of tslint-immutable 2022-09-15 20:00:50 +01:00
af7d275c27 Merge pull request #1636 from MLD5000/create-packer-stream
Create packer stream "toStream"
2022-09-15 13:04:15 +01:00
c982e64996 formatting 2022-08-24 13:01:15 -05:00
1a630bcb4d Added toStream export function
New Function returns a NodeJS readable stream that allows piping DOCX document data to stream.
2022-08-22 13:25:59 -07:00
21f7662a77 Add toString to Packer 2022-08-17 18:52:19 +02:00
6d447033c9 Fix more spelling rules 2022-07-05 05:06:32 +01:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
233a29bfef Fix tests and linting 2022-06-19 00:31:36 +01:00
b81086ab7a feat: transfer comments property to File CoreProperties like numbering. 2022-03-07 20:02:14 +08:00
b2a09b512f implement sample version of Comment feature. 2022-03-03 09:59:09 +08:00
5ecdb48d43 Stop unnecessary casting 2019-08-15 00:48:36 +01:00
b609a17362 Update packer.ts 2019-08-09 09:41:58 +02:00
4b49fdbf8e Update packer.ts 2019-08-09 00:19:44 +01:00
fd52c8cf47 Enable zip compression 2019-08-08 16:40:16 +02:00
d8b60d82f3 Turn Packer static 2019-08-07 22:12:14 +01:00
72c32378c5 Make prettified XML a Packer-wide configurable option
The xml() function was being passed a flag for pretty printing the XML in word/document.xml. This was causing some parsers (not Word itself) to break when they didn't expect whitepsace. It was also causing some files to be prettified and others to be ugly. This ensures consistent prettification.
2019-06-21 13:53:01 -07:00
765a9686d8 Remove async await for Compiler.compile 2018-11-12 13:17:53 +00:00
083f121683 Add correct docx mime type 2018-11-12 12:32:07 +00:00
a38abeb4c2 Huge refactoring to use new compiler and deprecate all other Packers
Add new PdfPacker
2018-08-14 01:46:48 +01:00
ad356d2759 Add ignores so it doesnt get generated in documentation 2018-08-09 23:40:11 +01:00
320cb1c418 Add workaround for files which only have an interface 2018-01-31 20:08:36 +00:00
01950ed443 Move ts to src folder for standards 2017-12-15 00:01:59 +00:00