@shad0wz7/nestjs-pdf 2.0.1 → 2.2.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 +80 -7
- package/dist/index.d.mts +160 -28
- package/dist/index.d.ts +160 -28
- package/dist/index.js +1521 -178
- package/dist/index.mjs +1503 -163
- package/package.json +19 -12
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shad0wz7/nestjs-pdf",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "A NestJS library for generating PDFs with Puppeteer and Handlebars.",
|
|
5
5
|
"author": "Emmanuel Boisset",
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,14 +21,15 @@
|
|
|
21
21
|
"LICENSE"
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
|
-
"build": "tsup
|
|
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",
|
|
28
28
|
"test": "jest",
|
|
29
29
|
"test:watch": "jest --watch",
|
|
30
30
|
"test:cov": "jest --coverage",
|
|
31
|
-
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand"
|
|
31
|
+
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
32
|
+
"prepare": "husky"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|
|
34
35
|
"nestjs",
|
|
@@ -36,9 +37,12 @@
|
|
|
36
37
|
"puppeteer",
|
|
37
38
|
"handlebars",
|
|
38
39
|
"hbs",
|
|
40
|
+
"nunjucks",
|
|
39
41
|
"ejs",
|
|
40
42
|
"mjml",
|
|
41
43
|
"pug",
|
|
44
|
+
"eta",
|
|
45
|
+
"mustache",
|
|
42
46
|
"pdf-lib",
|
|
43
47
|
"pdfjs-dist"
|
|
44
48
|
],
|
|
@@ -48,24 +52,18 @@
|
|
|
48
52
|
"rxjs": "^7.8.0"
|
|
49
53
|
},
|
|
50
54
|
"dependencies": {
|
|
51
|
-
"@gboutte/nestjs-hbs": "^0.2.0",
|
|
52
55
|
"@puppeteer/browsers": "^2.13.2",
|
|
53
56
|
"deepmerge-ts": "^7.1.5",
|
|
54
|
-
"ejs": "^5.0.2",
|
|
55
|
-
"mjml": "^5.2.1",
|
|
56
57
|
"p-limit": "^7.3.0",
|
|
57
58
|
"pdf-lib": "^1.17.1",
|
|
58
59
|
"pdfjs-dist": "^5.7.284",
|
|
59
|
-
"pug": "^3.0.3",
|
|
60
60
|
"puppeteer": "^24.43.1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/eslintrc": "^3.3.5",
|
|
64
64
|
"@eslint/js": "^10.0.1",
|
|
65
65
|
"@nestjs/cli": "^11.0.21",
|
|
66
|
-
"@nestjs/common": "^11.1.19",
|
|
67
66
|
"@nestjs/config": "^4.0.4",
|
|
68
|
-
"@nestjs/core": "^11.1.19",
|
|
69
67
|
"@nestjs/platform-express": "^11.1.19",
|
|
70
68
|
"@nestjs/schematics": "^11.1.0",
|
|
71
69
|
"@nestjs/testing": "^11.1.19",
|
|
@@ -75,15 +73,17 @@
|
|
|
75
73
|
"@types/jest": "^30.0.0",
|
|
76
74
|
"@types/mjml": "^5.0.0",
|
|
77
75
|
"@types/mjml-core": "^5.0.0",
|
|
76
|
+
"@types/mustache": "^4.2.6",
|
|
78
77
|
"@types/node": "^25.6.2",
|
|
78
|
+
"@types/nunjucks": "^3.2.6",
|
|
79
79
|
"@types/pug": "^2.0.10",
|
|
80
80
|
"@types/supertest": "^7.2.0",
|
|
81
81
|
"eslint": "^10.3.0",
|
|
82
82
|
"eslint-config-prettier": "^10.1.8",
|
|
83
83
|
"eslint-plugin-prettier": "^5.5.5",
|
|
84
84
|
"globals": "^17.6.0",
|
|
85
|
+
"husky": "^9.1.7",
|
|
85
86
|
"jest": "^30.4.2",
|
|
86
|
-
"mjml-core": "^5.2.0",
|
|
87
87
|
"prettier": "^3.8.3",
|
|
88
88
|
"reflect-metadata": "^0.2.2",
|
|
89
89
|
"source-map-support": "^0.5.21",
|
|
@@ -97,10 +97,17 @@
|
|
|
97
97
|
"typescript-eslint": "^8.59.3"
|
|
98
98
|
},
|
|
99
99
|
"optionalDependencies": {
|
|
100
|
-
"@
|
|
100
|
+
"@gboutte/nestjs-hbs": "^0.2.0",
|
|
101
|
+
"@napi-rs/canvas": "^1.0.0",
|
|
102
|
+
"ejs": "^5.0.2",
|
|
103
|
+
"eta": "^4.6.0",
|
|
104
|
+
"mjml": "^5.2.1",
|
|
105
|
+
"mustache": "^4.2.0",
|
|
106
|
+
"nunjucks": "^3.2.4",
|
|
107
|
+
"pug": "^3.0.3"
|
|
101
108
|
},
|
|
102
109
|
"repository": {
|
|
103
|
-
"url": "https://github.com/ShadowZ11/nestjs-pdf"
|
|
110
|
+
"url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
|
|
104
111
|
},
|
|
105
112
|
"publishConfig": {
|
|
106
113
|
"access": "public",
|