Commit Graph

261 Commits

Author SHA1 Message Date
Andrii Kurdiumov d47f2eeb2b Update image-size to 1.0.2 2023-03-07 23:07:30 +06:00
Andrii Kurdiumov 0e1d14a992 Convert to class and by conincidence fix bug in findMaxFileId which take only last file name (which can lead to problem if XLSX template was generated) 2023-03-07 22:15:27 +06:00
Andrii Kurdiumov 300d4eff27 Update release notes 2023-02-15 15:10:49 +06:00
Andrii Kurdiumov 1f8e41a51d Bump to 1.4.2 2023-02-15 15:02:10 +06:00
Andrii Kurdiumov 1c6a33d2cd Bump version to 1.4.1 2023-02-15 13:40:42 +06:00
Andrii Kurdiumov 26683ef7d9 Switch to fork from @kant2002 with security patch 2023-02-15 13:39:58 +06:00
dependabot[bot] ddefcff0ad Bump json5 from 2.2.0 to 2.2.3 (#175)
Bumps [json5](https://github.com/json5/json5) from 2.2.0 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.0...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 10:40:08 +06:00
Andrii Kurdiumov 7192862734 Bump version to 1.4.0 1.4.0 2022-11-20 18:15:04 +08:00
Andrii Kurdiumov be26d57917 Record changes in the 1.4.0 2022-11-20 18:07:39 +08:00
Andrii Kurdiumov 4fcf6ec3a9 Remove red squiggle 2022-11-20 17:13:40 +08:00
Jonathan Keebler b379121e36 substituteAll: Interpolate values for all the sheets using the given substitutions (#173) 2022-10-04 22:16:19 +06:00
Emmanuel Hadoux 27f5fa8700 Fix some of the types (#169)
`int` and `float` don't exist in Typescript, both are of type `number`. This fixes it. 
Still some bits to fix: the empty non-export namespace on 18 and the export on 126 that just wrong.
2022-09-08 12:40:44 +06:00
dependabot[bot] 1ab9cb18c2 Bump jszip from 2.6.1 to 2.7.0 (#170)
Bumps [jszip](https://github.com/Stuk/jszip) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/commits)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-08 09:56:26 +06:00
Jonathan Durand 740534d7e2 Insert images (#126)
* first version

* can insert image - first version

* fix more than 9 images, with a parseInt on the '10' string. Otherwise, '9' if greater than '10'

* update Buffer() to Buffer.from()

* existing test if now ok, go to make test for insert image

* add first test

* add test for 100 insert images

* update readme.md, but need to be reread :)

* update index.d.ts

* convert tabulation to space

* remove fr - 0.0.1-security from package.json

* remove comment line

* remove condition not nescessary

* add percent ratio for single image

* Update Readme and add imageRatio option

* readd package-lock.json

* readd package-lock.json

* catch error if image does not exists

* change some comment console.log to console.error

* fix formatting

* test if imageToBuffer return a true image buffer, otherwise, throw an error - add handleImageError function : this function handle the image error and throw it by default; developers can override this function

* Move handleImageError function to an option

* remove useless ligne space in this commit
2022-05-30 10:30:57 +06:00
Jonathan Durand c514b3b0d4 add customXml in the order list for rebuild (#154)
* add customXml in the order list for rebuild to prevent error on remove sheet

* Remove the useless customXML type in order list ; in the sort function of rebuild, if the type of Relationship is not in the `order` list, go to the end ; adding test code
2022-05-30 00:22:33 +06:00
Andrii Kurdiumov a4b42e4985 Move source code to src folder (#160)
That's allow compile code using TSC before publish
And all future code can use TypeScript
2022-05-10 18:16:13 +06:00
Andrii Kurdiumov 3a5ad82617 Switch tests to TypeScript (#158)
* Switch tests to TypeScript
* Set default branch for build
2022-05-10 18:01:46 +06:00
Andrii Kurdiumov e993f63cdd Add Github Action for PR validation and CI test (#159)
* Add Github Action for PR validation and CI test
* Specify Node version for tests
2022-05-10 17:56:29 +06:00
Rafael Gomes b2998452ea Fix type definitions for Generate (#156)
Type definitions on typescript for output data
2022-04-21 13:03:24 +06:00
dependabot[bot] 9330d7cd10 Bump minimist from 1.2.5 to 1.2.6 (#155)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-28 09:32:26 +06:00
Jonathan Durand 451eb20a68 Formating (#124)
Adding 2 options affect table substitution :
subsituteAllTableRow : if true, all the cells in the row substitution will be copied in the new row
pushDownPageBreakOnTableSubstitution : if true, pushdown the pageBreak (not the rowBreaks : TODO with option)
2022-02-15 12:00:13 +06:00
Andrii Kurdiumov 3d43b38e01 Fix import statement 1.3.2 2022-02-15 11:29:03 +06:00
Andrii Kurdiumov 763b7e8e04 Bump version to 1.3.2 2022-02-15 11:27:51 +06:00
Andrii Kurdiumov 13df6fdcf1 Fix import 2022-02-15 11:26:49 +06:00
Andrii Kurdiumov 60e629b753 Create contributing guide
This is outline how I handle this project and what's my expectations.
Feel free to discuss and change my opinion.
2022-02-15 09:57:29 +06:00
Andrii Kurdiumov 8919eb5644 Update version to 1.3.1 1.3.1 2022-02-14 23:03:46 +06:00
Andrii Kurdiumov 97dc197c5d Fix audit issues 2022-02-14 23:03:13 +06:00
Andrii Kurdiumov 282924fb26 Update README.md 2022-02-14 22:26:29 +06:00
Jonathan Durand 1e976308e1 Update copySheet function (#130)
* Update copySheet function

Add binary option for copySheet : for header/footer in UTF-8
Copy also rels file for the image
2022-02-14 22:17:33 +06:00
Andrii Kurdiumov 711936dde5 Improve description 2022-02-14 17:08:49 +06:00
Andrii Kurdiumov e55a87b2cc Simplify .gitignore 2022-02-14 17:04:46 +06:00
Andrii Kurdiumov 174bb69066 Update readme with planned changes 2022-02-14 17:04:45 +06:00
Ade Pangestu da61b0d5e5 Fixing Defined Range Name with Sheet Name (#150)
* fixing defined range name with sheetname
* add test for _xlnm.Print_Titles named range

Co-authored-by: Ade Pangestu <ade.pangestu@mitrais.com>
2022-02-14 17:02:38 +06:00
Jonathan Durand 752568a81d Insert images (#121)
Change image ratio to be percent based instead of proportion base
2020-08-13 14:16:32 +06:00
dependabot[bot] 357d23b941 Bump sshpk from 1.10.0 to 1.16.1 (#120)
Bumps [sshpk](https://github.com/joyent/node-sshpk) from 1.10.0 to 1.16.1.
- [Release notes](https://github.com/joyent/node-sshpk/releases)
- [Commits](https://github.com/joyent/node-sshpk/compare/v1.10.0...v1.16.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 16:00:33 +06:00
dependabot[bot] 656a5eb16a Bump debug from 2.2.0 to 2.6.9 (#119)
Bumps [debug](https://github.com/visionmedia/debug) from 2.2.0 to 2.6.9.
- [Release notes](https://github.com/visionmedia/debug/releases)
- [Changelog](https://github.com/visionmedia/debug/blob/2.6.9/CHANGELOG.md)
- [Commits](https://github.com/visionmedia/debug/compare/2.2.0...2.6.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-10 16:00:12 +06:00
Andrii Kurdiumov bf0cdd9087 Replace buster with Jest (#118)
As consequences it require me to make couple of function public
and specify interfaces for resulting data.

Also this work expose that previous typings was incorrectly written.
@RW-DiefBell and @tiholic you seems to be relying on incorrect definitions.
Please check.
2020-08-10 15:53:23 +06:00
dependabot[bot] 87ce03317f Bump websocket-extensions from 0.1.1 to 0.1.4 (#115)
Bumps [websocket-extensions](https://github.com/faye/websocket-extensions-node) from 0.1.1 to 0.1.4.
- [Release notes](https://github.com/faye/websocket-extensions-node/releases)
- [Changelog](https://github.com/faye/websocket-extensions-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/faye/websocket-extensions-node/compare/0.1.1...0.1.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 22:18:12 +06:00
dependabot[bot] f135d8ae8d Bump is-my-json-valid from 2.13.1 to 2.20.5 (#116)
Bumps [is-my-json-valid](https://github.com/mafintosh/is-my-json-valid) from 2.13.1 to 2.20.5.
- [Release notes](https://github.com/mafintosh/is-my-json-valid/releases)
- [Commits](https://github.com/mafintosh/is-my-json-valid/compare/v2.13.1...v2.20.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 22:17:52 +06:00
dependabot[bot] 7e2791b482 Bump stringstream from 0.0.5 to 0.0.6 (#114)
Bumps [stringstream](https://github.com/mhart/StringStream) from 0.0.5 to 0.0.6.
- [Release notes](https://github.com/mhart/StringStream/releases)
- [Commits](https://github.com/mhart/StringStream/compare/v0.0.5...v0.0.6)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 22:17:32 +06:00
dependabot[bot] c585fd7dd8 Bump minimist from 1.2.0 to 1.2.5 (#113)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.0 to 1.2.5.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.0...1.2.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-03 22:17:02 +06:00
Andrii Kurdiumov 52b97a73ca Introduce ability to check source code using TSC (#111)
This does not convert code to TypeScript yet.
Based on initial testing, buster should be abandoned
or typings for it should be written.
2020-08-03 19:19:32 +06:00
Andrii Kurdiumov 41a8d14db9 Remove testing on NodeJS which reach EOL (#112)
This does not mean it would not work on these version, as I hardly imaging which we will use something special
2020-08-01 14:11:06 +06:00
Jonathan Durand 0c564ccb5f Insert images (#110)
Add new substitution for images.
2020-07-31 18:01:01 +06:00
Andrii Kurdiumov e46120d3e9 Update version to 1.3.0 1.3.0 2020-07-27 16:30:36 +06:00
Andrii Kurdiumov 3262f724cd Merge pull request #109 from jdugh/move_images
Add support for moving images down together with substitution process.
2020-07-27 16:15:19 +06:00
JD2701 0e6dd8eef1 update typings file 2020-07-26 19:31:04 +02:00
Jonathan Durand f9cde53721 Adding test : do not move image 2020-07-26 19:16:28 +02:00
Jonathan Durand 43d5430cb1 Update indentation tab with space 2020-07-26 19:11:55 +02:00
JD2701 3f5a219c4f Move image when are below a substitute array 2020-07-26 19:03:26 +02:00