@shad0wz7/nestjs-pdf 3.2.0 → 4.0.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": "3.2.0",
3
+ "version": "4.0.0",
4
4
  "description": "A NestJS library for generating PDFs with Puppeteer and multiple engines.",
5
5
  "keywords": [
6
6
  "nestjs",
@@ -14,10 +14,17 @@
14
14
  "pug",
15
15
  "eta",
16
16
  "mustache",
17
+ "liquid",
18
+ "liquidjs",
17
19
  "pdf-lib",
18
20
  "pdfjs-dist"
19
21
  ],
22
+ "homepage": "https://github.com/ShadowZ11/nestjs-pdf#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/ShadowZ11/nestjs-pdf/issues"
25
+ },
20
26
  "repository": {
27
+ "type": "git",
21
28
  "url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
22
29
  },
23
30
  "license": "MIT",
@@ -25,18 +32,21 @@
25
32
  "type": "module",
26
33
  "exports": {
27
34
  ".": {
28
- "types": "./dist/index.d.cts",
29
- "import": "./dist/index.mjs",
30
- "require": "./dist/index.cjs"
35
+ "import": {
36
+ "types": "./dist/index.d.mts",
37
+ "default": "./dist/index.mjs"
38
+ },
39
+ "require": {
40
+ "types": "./dist/index.d.cts",
41
+ "default": "./dist/index.cjs"
42
+ }
31
43
  }
32
44
  },
33
45
  "main": "./dist/index.cjs",
34
46
  "module": "./dist/index.mjs",
35
47
  "types": "./dist/index.d.cts",
36
48
  "files": [
37
- "dist",
38
- "README.md",
39
- "LICENSE"
49
+ "dist"
40
50
  ],
41
51
  "scripts": {
42
52
  "build": "tsdown",
@@ -57,81 +67,111 @@
57
67
  "test:watch": "vitest"
58
68
  },
59
69
  "lint-staged": {
60
- "*.{ts,tsx,md,graphql,json,html,yaml,css}": [
61
- "eslint \"{src,test}/**/*.ts\" --fix",
62
- "pnpm format"
70
+ "{src,test}/**/*.ts": [
71
+ "eslint --fix",
72
+ "prettier --write"
63
73
  ]
64
74
  },
65
75
  "dependencies": {
66
- "@puppeteer/browsers": "^3.2.2",
76
+ "@puppeteer/browsers": "^3.2.4",
67
77
  "deepmerge-ts": "^8.0.2",
68
- "p-limit": "^7.3.2",
69
78
  "pdf-lib": "^1.17.1",
70
- "pdfjs-dist": "^6.3.289",
71
- "puppeteer": "^25.10.0"
79
+ "pdfjs-dist": "^6.4.299",
80
+ "puppeteer": "^25.12.0"
72
81
  },
73
82
  "devDependencies": {
74
83
  "@commitlint/cli": "^21.2.3",
75
84
  "@commitlint/config-conventional": "^21.2.3",
76
85
  "@eslint/js": "^10.0.1",
77
- "@nestjs/cli": "^12.0.0",
78
- "@nestjs/config": "^12.0.0",
79
- "@nestjs/schematics": "^12.0.1",
80
- "@nestjs/testing": "^12.0.1",
81
- "@swc/core": "^1.16.2",
86
+ "@napi-rs/canvas": "^1.0.11",
87
+ "@nestjs/cli": "^12.0.8",
88
+ "@nestjs/schematics": "^12.0.6",
89
+ "@nestjs/testing": "^12.1.2",
90
+ "@swc/core": "^1.16.18",
82
91
  "@types/ejs": "^3.1.5",
83
92
  "@types/mjml": "^5.0.0",
84
93
  "@types/mjml-core": "^5.1.0",
85
94
  "@types/mustache": "^4.2.6",
86
- "@types/node": "^26.5.1",
95
+ "@types/node": "^20.19.43",
87
96
  "@types/nunjucks": "^3.2.6",
88
97
  "@types/pug": "^2.0.10",
89
- "@vitest/coverage-v8": "^5.0.0",
90
- "eslint": "^10.10.0",
98
+ "@vitest/coverage-v8": "^5.0.3",
99
+ "ejs": "^7.0.1",
100
+ "eslint": "^10.12.0",
91
101
  "eslint-config-prettier": "^10.1.8",
92
102
  "eslint-plugin-prettier": "^5.5.6",
93
103
  "eslint-plugin-simple-import-sort": "^14.0.0",
94
104
  "eslint-plugin-unused-imports": "^4.4.1",
95
- "globals": "^17.12.0",
105
+ "eta": "^4.6.0",
106
+ "globals": "^17.13.0",
107
+ "handlebars": "^4.7.10",
96
108
  "husky": "^9.1.7",
97
109
  "jiti": "^2.7.0",
98
- "knip": "^6.35.1",
99
- "lint-staged": "^17.5.1",
100
- "prettier": "^3.9.6",
110
+ "knip": "^6.41.0",
111
+ "lint-staged": "^17.6.0",
112
+ "liquidjs": "^10.30.0",
113
+ "mjml": "^5.4.1",
114
+ "mustache": "^4.2.0",
115
+ "nunjucks": "^3.2.4",
116
+ "p-limit": "^7.3.3",
117
+ "prettier": "^3.9.10",
118
+ "pug": "^3.0.4",
101
119
  "reflect-metadata": "^0.2.2",
102
120
  "sort-package-json": "^4.0.0",
103
- "tsdown": "^0.23.0",
121
+ "tsdown": "^0.23.1",
104
122
  "typescript": "^6.0.3",
105
- "typescript-eslint": "^8.70.0",
106
- "unplugin-swc": "^1.6.0",
107
- "vitest": "^5.0.0"
123
+ "typescript-eslint": "^8.71.1",
124
+ "unplugin-swc": "^2.0.0",
125
+ "vitest": "^5.0.3"
108
126
  },
109
127
  "peerDependencies": {
128
+ "@napi-rs/canvas": "^1.0.9",
110
129
  "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
111
130
  "@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
112
- "rxjs": "^7.8.0"
113
- },
114
- "optionalDependencies": {
115
- "@napi-rs/canvas": "^1.0.9",
116
- "ejs": "^6.0.1",
131
+ "ejs": "^6.0.1 || ^7.0.0",
117
132
  "eta": "^4.6.0",
118
133
  "handlebars": "^4.7.9",
134
+ "liquidjs": "^10.30.0",
119
135
  "mjml": "^5.4.1",
120
- "mjml-core": "^5.4.1",
121
136
  "mustache": "^4.2.0",
122
137
  "nunjucks": "^3.2.4",
123
- "pug": "^3.0.4"
138
+ "pug": "^3.0.4",
139
+ "rxjs": "^7.8.0"
140
+ },
141
+ "peerDependenciesMeta": {
142
+ "@napi-rs/canvas": {
143
+ "optional": true
144
+ },
145
+ "ejs": {
146
+ "optional": true
147
+ },
148
+ "eta": {
149
+ "optional": true
150
+ },
151
+ "handlebars": {
152
+ "optional": true
153
+ },
154
+ "liquidjs": {
155
+ "optional": true
156
+ },
157
+ "mjml": {
158
+ "optional": true
159
+ },
160
+ "mustache": {
161
+ "optional": true
162
+ },
163
+ "nunjucks": {
164
+ "optional": true
165
+ },
166
+ "pug": {
167
+ "optional": true
168
+ }
124
169
  },
125
170
  "packageManager": "pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956",
126
171
  "engines": {
127
172
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
128
173
  },
129
174
  "publishConfig": {
130
- "access": "public",
131
- "registry": "https://registry.npmjs.org/"
132
- },
133
- "inlinedDependencies": {
134
- "p-limit": "7.3.2",
135
- "yocto-queue": "1.2.2"
175
+ "access": "public"
136
176
  }
137
177
  }