@shad0wz7/nestjs-pdf 2.0.0 → 2.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shad0wz7/nestjs-pdf",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "A NestJS library for generating PDFs with Puppeteer and Handlebars.",
5
5
  "author": "Emmanuel Boisset",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "scripts": {
24
- "build": "tsup src/index.ts --format cjs,esm --dts --clean --external pdfjs-dist --external pdf-lib --external @napi-rs/canvas",
24
+ "build": "tsup",
25
25
  "prepublishOnly": "pnpm lint && pnpm test && pnpm build",
26
26
  "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
27
27
  "lint": "eslint \"{src,test}/**/*.ts\" --fix",
@@ -35,7 +35,13 @@
35
35
  "pdf",
36
36
  "puppeteer",
37
37
  "handlebars",
38
- "hbs"
38
+ "hbs",
39
+ "nunjucks",
40
+ "ejs",
41
+ "mjml",
42
+ "pug",
43
+ "pdf-lib",
44
+ "pdfjs-dist"
39
45
  ],
40
46
  "peerDependencies": {
41
47
  "@nestjs/common": "^11.0.0",
@@ -43,24 +49,18 @@
43
49
  "rxjs": "^7.8.0"
44
50
  },
45
51
  "dependencies": {
46
- "@gboutte/nestjs-hbs": "^0.2.0",
47
52
  "@puppeteer/browsers": "^2.13.2",
48
53
  "deepmerge-ts": "^7.1.5",
49
- "ejs": "^5.0.2",
50
- "mjml": "^5.2.1",
51
54
  "p-limit": "^7.3.0",
52
55
  "pdf-lib": "^1.17.1",
53
56
  "pdfjs-dist": "^5.7.284",
54
- "pug": "^3.0.3",
55
57
  "puppeteer": "^24.43.1"
56
58
  },
57
59
  "devDependencies": {
58
60
  "@eslint/eslintrc": "^3.3.5",
59
61
  "@eslint/js": "^10.0.1",
60
62
  "@nestjs/cli": "^11.0.21",
61
- "@nestjs/common": "^11.1.19",
62
63
  "@nestjs/config": "^4.0.4",
63
- "@nestjs/core": "^11.1.19",
64
64
  "@nestjs/platform-express": "^11.1.19",
65
65
  "@nestjs/schematics": "^11.1.0",
66
66
  "@nestjs/testing": "^11.1.19",
@@ -71,6 +71,7 @@
71
71
  "@types/mjml": "^5.0.0",
72
72
  "@types/mjml-core": "^5.0.0",
73
73
  "@types/node": "^25.6.2",
74
+ "@types/nunjucks": "^3.2.6",
74
75
  "@types/pug": "^2.0.10",
75
76
  "@types/supertest": "^7.2.0",
76
77
  "eslint": "^10.3.0",
@@ -78,7 +79,6 @@
78
79
  "eslint-plugin-prettier": "^5.5.5",
79
80
  "globals": "^17.6.0",
80
81
  "jest": "^30.4.2",
81
- "mjml-core": "^5.2.0",
82
82
  "prettier": "^3.8.3",
83
83
  "reflect-metadata": "^0.2.2",
84
84
  "source-map-support": "^0.5.21",
@@ -92,10 +92,15 @@
92
92
  "typescript-eslint": "^8.59.3"
93
93
  },
94
94
  "optionalDependencies": {
95
- "@napi-rs/canvas": "^1.0.0"
95
+ "@gboutte/nestjs-hbs": "^0.2.0",
96
+ "@napi-rs/canvas": "^1.0.0",
97
+ "ejs": "^5.0.2",
98
+ "mjml": "^5.2.1",
99
+ "nunjucks": "^3.2.4",
100
+ "pug": "^3.0.3"
96
101
  },
97
102
  "repository": {
98
- "url": "https://github.com/ShadowZ11/nestjs-pdf"
103
+ "url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
99
104
  },
100
105
  "publishConfig": {
101
106
  "access": "public",