@shad0wz7/nestjs-pdf 3.1.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.1.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,82 +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": {
83
+ "@commitlint/cli": "^21.2.3",
84
+ "@commitlint/config-conventional": "^21.2.3",
74
85
  "@eslint/js": "^10.0.1",
75
- "@nestjs/cli": "^12.0.0",
76
- "@nestjs/config": "^12.0.0",
77
- "@nestjs/schematics": "^12.0.1",
78
- "@nestjs/testing": "^12.0.1",
79
- "@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",
80
91
  "@types/ejs": "^3.1.5",
81
92
  "@types/mjml": "^5.0.0",
82
93
  "@types/mjml-core": "^5.1.0",
83
94
  "@types/mustache": "^4.2.6",
84
- "@types/node": "^26.5.1",
95
+ "@types/node": "^20.19.43",
85
96
  "@types/nunjucks": "^3.2.6",
86
97
  "@types/pug": "^2.0.10",
87
- "@vitest/coverage-v8": "^5.0.0",
88
- "eslint": "^10.10.0",
98
+ "@vitest/coverage-v8": "^5.0.3",
99
+ "ejs": "^7.0.1",
100
+ "eslint": "^10.12.0",
89
101
  "eslint-config-prettier": "^10.1.8",
90
102
  "eslint-plugin-prettier": "^5.5.6",
91
103
  "eslint-plugin-simple-import-sort": "^14.0.0",
92
104
  "eslint-plugin-unused-imports": "^4.4.1",
93
- "globals": "^17.12.0",
105
+ "eta": "^4.6.0",
106
+ "globals": "^17.13.0",
107
+ "handlebars": "^4.7.10",
94
108
  "husky": "^9.1.7",
95
109
  "jiti": "^2.7.0",
96
- "knip": "^6.35.1",
97
- "lint-staged": "^17.5.1",
98
- "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",
99
119
  "reflect-metadata": "^0.2.2",
100
120
  "sort-package-json": "^4.0.0",
101
- "tsdown": "^0.23.0",
121
+ "tsdown": "^0.23.1",
102
122
  "typescript": "^6.0.3",
103
- "typescript-eslint": "^8.70.0",
104
- "unplugin-swc": "^1.6.0",
105
- "vitest": "^5.0.0"
123
+ "typescript-eslint": "^8.71.1",
124
+ "unplugin-swc": "^2.0.0",
125
+ "vitest": "^5.0.3"
106
126
  },
107
127
  "peerDependencies": {
108
- "@nestjs/common": "^12.0.0",
109
- "@nestjs/core": "^12.0.0",
110
- "rxjs": "^7.8.0"
111
- },
112
- "optionalDependencies": {
113
128
  "@napi-rs/canvas": "^1.0.9",
114
- "ejs": "^6.0.1",
129
+ "@nestjs/common": "^10.0.0 || ^11.0.0 || ^12.0.0",
130
+ "@nestjs/core": "^10.0.0 || ^11.0.0 || ^12.0.0",
131
+ "ejs": "^6.0.1 || ^7.0.0",
115
132
  "eta": "^4.6.0",
116
133
  "handlebars": "^4.7.9",
134
+ "liquidjs": "^10.30.0",
117
135
  "mjml": "^5.4.1",
118
- "mjml-core": "^5.4.1",
119
136
  "mustache": "^4.2.0",
120
137
  "nunjucks": "^3.2.4",
121
- "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
+ }
122
169
  },
123
170
  "packageManager": "pnpm@11.25.0+sha512.5cde925b4f075f725eb71fbae18a42ffe784524789f19b61c731cb8721ec28aaee160e01a8d5af4fedb2a42cdbf300efe23db356b0d4a17b4d63e11f8ab7c956",
124
171
  "engines": {
125
172
  "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
126
173
  },
127
174
  "publishConfig": {
128
- "access": "public",
129
- "registry": "https://registry.npmjs.org/"
130
- },
131
- "inlinedDependencies": {
132
- "@nestjs/config": "4.0.4",
133
- "@types/mjml-core": "5.1.0",
134
- "dotenv": "17.4.1",
135
- "dotenv-expand": "12.0.3",
136
- "lodash": "4.18.1"
175
+ "access": "public"
137
176
  }
138
177
  }