@shad0wz7/nestjs-pdf 3.2.0 → 5.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/README.md +129 -30
- package/dist/index.cjs +723 -243
- package/dist/index.d.cts +320 -88
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +320 -88
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +702 -201
- package/dist/index.mjs.map +1 -1
- package/package.json +100 -50
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shad0wz7/nestjs-pdf",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.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,19 @@
|
|
|
14
14
|
"pug",
|
|
15
15
|
"eta",
|
|
16
16
|
"mustache",
|
|
17
|
+
"liquid",
|
|
18
|
+
"liquidjs",
|
|
17
19
|
"pdf-lib",
|
|
18
|
-
"pdfjs-dist"
|
|
20
|
+
"pdfjs-dist",
|
|
21
|
+
"gotenberg",
|
|
22
|
+
"api2pdf"
|
|
19
23
|
],
|
|
24
|
+
"homepage": "https://github.com/ShadowZ11/nestjs-pdf#readme",
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/ShadowZ11/nestjs-pdf/issues"
|
|
27
|
+
},
|
|
20
28
|
"repository": {
|
|
29
|
+
"type": "git",
|
|
21
30
|
"url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
|
|
22
31
|
},
|
|
23
32
|
"license": "MIT",
|
|
@@ -25,18 +34,21 @@
|
|
|
25
34
|
"type": "module",
|
|
26
35
|
"exports": {
|
|
27
36
|
".": {
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/index.d.mts",
|
|
39
|
+
"default": "./dist/index.mjs"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/index.d.cts",
|
|
43
|
+
"default": "./dist/index.cjs"
|
|
44
|
+
}
|
|
31
45
|
}
|
|
32
46
|
},
|
|
33
47
|
"main": "./dist/index.cjs",
|
|
34
48
|
"module": "./dist/index.mjs",
|
|
35
49
|
"types": "./dist/index.d.cts",
|
|
36
50
|
"files": [
|
|
37
|
-
"dist"
|
|
38
|
-
"README.md",
|
|
39
|
-
"LICENSE"
|
|
51
|
+
"dist"
|
|
40
52
|
],
|
|
41
53
|
"scripts": {
|
|
42
54
|
"build": "tsdown",
|
|
@@ -57,81 +69,119 @@
|
|
|
57
69
|
"test:watch": "vitest"
|
|
58
70
|
},
|
|
59
71
|
"lint-staged": {
|
|
60
|
-
"
|
|
61
|
-
"eslint
|
|
62
|
-
"
|
|
72
|
+
"{src,test}/**/*.ts": [
|
|
73
|
+
"eslint --fix",
|
|
74
|
+
"prettier --write"
|
|
63
75
|
]
|
|
64
76
|
},
|
|
65
77
|
"dependencies": {
|
|
66
|
-
"@puppeteer/browsers": "^3.2.2",
|
|
67
78
|
"deepmerge-ts": "^8.0.2",
|
|
68
|
-
"p-limit": "^7.3.2",
|
|
69
79
|
"pdf-lib": "^1.17.1",
|
|
70
|
-
"pdfjs-dist": "^6.
|
|
71
|
-
"puppeteer": "^25.10.0"
|
|
80
|
+
"pdfjs-dist": "^6.4.299"
|
|
72
81
|
},
|
|
73
82
|
"devDependencies": {
|
|
74
|
-
"@commitlint/cli": "^21.2.
|
|
75
|
-
"@commitlint/config-conventional": "^21.2.
|
|
83
|
+
"@commitlint/cli": "^21.2.4",
|
|
84
|
+
"@commitlint/config-conventional": "^21.2.4",
|
|
76
85
|
"@eslint/js": "^10.0.1",
|
|
77
|
-
"@
|
|
78
|
-
"@nestjs/
|
|
79
|
-
"@nestjs/schematics": "^12.0.
|
|
80
|
-
"@nestjs/testing": "^12.
|
|
81
|
-
"@
|
|
86
|
+
"@napi-rs/canvas": "^1.0.13",
|
|
87
|
+
"@nestjs/cli": "^12.0.11",
|
|
88
|
+
"@nestjs/schematics": "^12.0.12",
|
|
89
|
+
"@nestjs/testing": "^12.3.2",
|
|
90
|
+
"@puppeteer/browsers": "^3.2.6",
|
|
91
|
+
"@swc/core": "^1.16.20",
|
|
82
92
|
"@types/ejs": "^3.1.5",
|
|
83
|
-
"@types/mjml": "^5.
|
|
84
|
-
"@types/mjml-core": "^5.1.
|
|
93
|
+
"@types/mjml": "^5.4.2",
|
|
94
|
+
"@types/mjml-core": "^5.1.1",
|
|
85
95
|
"@types/mustache": "^4.2.6",
|
|
86
|
-
"@types/node": "^
|
|
96
|
+
"@types/node": "^20.19.43",
|
|
87
97
|
"@types/nunjucks": "^3.2.6",
|
|
88
98
|
"@types/pug": "^2.0.10",
|
|
89
|
-
"@vitest/coverage-v8": "^5.0.
|
|
90
|
-
"
|
|
99
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
100
|
+
"ejs": "^7.0.2",
|
|
101
|
+
"eslint": "^10.13.0",
|
|
91
102
|
"eslint-config-prettier": "^10.1.8",
|
|
92
|
-
"eslint-plugin-prettier": "^5.5.
|
|
103
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
93
104
|
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
94
105
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
95
|
-
"
|
|
106
|
+
"eta": "^4.6.0",
|
|
107
|
+
"globals": "^17.13.0",
|
|
108
|
+
"handlebars": "^4.7.10",
|
|
96
109
|
"husky": "^9.1.7",
|
|
97
110
|
"jiti": "^2.7.0",
|
|
98
|
-
"knip": "^6.
|
|
99
|
-
"lint-staged": "^17.
|
|
100
|
-
"
|
|
111
|
+
"knip": "^6.44.0",
|
|
112
|
+
"lint-staged": "^17.6.0",
|
|
113
|
+
"liquidjs": "^10.30.1",
|
|
114
|
+
"mjml": "^5.4.1",
|
|
115
|
+
"mustache": "^4.2.0",
|
|
116
|
+
"nunjucks": "^3.2.4",
|
|
117
|
+
"p-limit": "^7.3.3",
|
|
118
|
+
"prettier": "^3.9.10",
|
|
119
|
+
"pug": "^3.0.4",
|
|
120
|
+
"puppeteer": "^25.16.0",
|
|
101
121
|
"reflect-metadata": "^0.2.2",
|
|
102
|
-
"sort-package-json": "^4.
|
|
103
|
-
"tsdown": "^0.23.
|
|
122
|
+
"sort-package-json": "^4.1.0",
|
|
123
|
+
"tsdown": "^0.23.4",
|
|
104
124
|
"typescript": "^6.0.3",
|
|
105
|
-
"typescript-eslint": "^8.
|
|
106
|
-
"unplugin-swc": "^
|
|
107
|
-
"vitest": "^5.0.
|
|
125
|
+
"typescript-eslint": "^8.72.1",
|
|
126
|
+
"unplugin-swc": "^2.0.0",
|
|
127
|
+
"vitest": "^5.0.5"
|
|
108
128
|
},
|
|
109
129
|
"peerDependencies": {
|
|
130
|
+
"@napi-rs/canvas": "^1.0.9",
|
|
110
131
|
"@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
111
132
|
"@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
|
|
112
|
-
"
|
|
113
|
-
|
|
114
|
-
"optionalDependencies": {
|
|
115
|
-
"@napi-rs/canvas": "^1.0.9",
|
|
116
|
-
"ejs": "^6.0.1",
|
|
133
|
+
"@puppeteer/browsers": "^3.2.6",
|
|
134
|
+
"ejs": "^6.0.1 || ^7.0.0",
|
|
117
135
|
"eta": "^4.6.0",
|
|
118
136
|
"handlebars": "^4.7.9",
|
|
137
|
+
"liquidjs": "^10.30.1",
|
|
119
138
|
"mjml": "^5.4.1",
|
|
120
|
-
"mjml-core": "^5.4.1",
|
|
121
139
|
"mustache": "^4.2.0",
|
|
122
140
|
"nunjucks": "^3.2.4",
|
|
123
|
-
"pug": "^3.0.4"
|
|
141
|
+
"pug": "^3.0.4",
|
|
142
|
+
"puppeteer": "^25.16.0",
|
|
143
|
+
"rxjs": "^7.8.0"
|
|
144
|
+
},
|
|
145
|
+
"peerDependenciesMeta": {
|
|
146
|
+
"@napi-rs/canvas": {
|
|
147
|
+
"optional": true
|
|
148
|
+
},
|
|
149
|
+
"@puppeteer/browsers": {
|
|
150
|
+
"optional": true
|
|
151
|
+
},
|
|
152
|
+
"ejs": {
|
|
153
|
+
"optional": true
|
|
154
|
+
},
|
|
155
|
+
"eta": {
|
|
156
|
+
"optional": true
|
|
157
|
+
},
|
|
158
|
+
"handlebars": {
|
|
159
|
+
"optional": true
|
|
160
|
+
},
|
|
161
|
+
"liquidjs": {
|
|
162
|
+
"optional": true
|
|
163
|
+
},
|
|
164
|
+
"mjml": {
|
|
165
|
+
"optional": true
|
|
166
|
+
},
|
|
167
|
+
"mustache": {
|
|
168
|
+
"optional": true
|
|
169
|
+
},
|
|
170
|
+
"nunjucks": {
|
|
171
|
+
"optional": true
|
|
172
|
+
},
|
|
173
|
+
"pug": {
|
|
174
|
+
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"puppeteer": {
|
|
177
|
+
"optional": true
|
|
178
|
+
}
|
|
124
179
|
},
|
|
125
180
|
"packageManager": "pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956",
|
|
126
181
|
"engines": {
|
|
127
182
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
128
183
|
},
|
|
129
184
|
"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"
|
|
185
|
+
"access": "public"
|
|
136
186
|
}
|
|
137
187
|
}
|