@shad0wz7/nestjs-pdf 2.5.0 → 2.5.2
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 +3 -1
- package/dist/index.cjs +256 -255
- package/dist/index.d.cts +46 -169
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +53 -176
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +255 -255
- package/dist/index.mjs.map +1 -1
- package/package.json +107 -86
package/package.json
CHANGED
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shad0wz7/nestjs-pdf",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.2",
|
|
4
4
|
"description": "A NestJS library for generating PDFs with Puppeteer and multiple engines.",
|
|
5
|
-
"
|
|
6
|
-
|
|
5
|
+
"keywords": [
|
|
6
|
+
"nestjs",
|
|
7
|
+
"pdf",
|
|
8
|
+
"puppeteer",
|
|
9
|
+
"handlebars",
|
|
10
|
+
"hbs",
|
|
11
|
+
"nunjucks",
|
|
12
|
+
"ejs",
|
|
13
|
+
"mjml",
|
|
14
|
+
"pug",
|
|
15
|
+
"eta",
|
|
16
|
+
"mustache",
|
|
17
|
+
"pdf-lib",
|
|
18
|
+
"pdfjs-dist"
|
|
19
|
+
],
|
|
20
|
+
"repository": {
|
|
21
|
+
"url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
|
|
22
|
+
},
|
|
7
23
|
"license": "MIT",
|
|
24
|
+
"author": "Emmanuel Boisset",
|
|
8
25
|
"type": "commonjs",
|
|
9
|
-
"main": "./dist/index.cjs",
|
|
10
|
-
"module": "./dist/index.mjs",
|
|
11
|
-
"types": "./dist/index.d.cts",
|
|
12
26
|
"exports": {
|
|
13
27
|
".": {
|
|
14
28
|
"types": "./dist/index.d.cts",
|
|
@@ -16,141 +30,148 @@
|
|
|
16
30
|
"require": "./dist/index.cjs"
|
|
17
31
|
}
|
|
18
32
|
},
|
|
33
|
+
"main": "./dist/index.cjs",
|
|
34
|
+
"module": "./dist/index.mjs",
|
|
35
|
+
"types": "./dist/index.d.cts",
|
|
19
36
|
"files": [
|
|
20
37
|
"dist",
|
|
21
38
|
"README.md",
|
|
22
39
|
"LICENSE"
|
|
23
40
|
],
|
|
24
41
|
"scripts": {
|
|
25
|
-
"build:dev": "tsdown --watch ./src",
|
|
26
42
|
"build": "tsdown",
|
|
27
|
-
"
|
|
43
|
+
"build:dev": "tsdown --watch ./src",
|
|
28
44
|
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
29
|
-
"
|
|
45
|
+
"knip": "knip",
|
|
46
|
+
"lint": "eslint \"{src,test}/**/*.ts\"",
|
|
47
|
+
"lint:all": "pnpm lint && pnpm sort:check",
|
|
48
|
+
"lint:fix": "eslint \"{src,test}/**/*.ts\" --fix",
|
|
49
|
+
"pre-commit": "lint-staged",
|
|
50
|
+
"prepare": "husky",
|
|
51
|
+
"prepublishOnly": "pnpm lint && pnpm test && pnpm build",
|
|
52
|
+
"sort": "sort-package-json",
|
|
53
|
+
"sort:check": "sort-package-json --check",
|
|
30
54
|
"test": "jest",
|
|
31
|
-
"test:watch": "jest --watch",
|
|
32
55
|
"test:cov": "jest --coverage",
|
|
33
56
|
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
34
|
-
"
|
|
57
|
+
"test:watch": "jest --watch"
|
|
35
58
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
|
|
59
|
+
"lint-staged": {
|
|
60
|
+
"*.{ts,tsx,md,graphql,json,html,yaml,css}": [
|
|
61
|
+
"eslint \"{src,test}/**/*.ts\" --fix",
|
|
62
|
+
"pnpm format"
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"jest": {
|
|
66
|
+
"collectCoverageFrom": [
|
|
67
|
+
"src/**/*.(t|j)s",
|
|
68
|
+
"!src/index.ts"
|
|
69
|
+
],
|
|
70
|
+
"coverageDirectory": "./coverage",
|
|
71
|
+
"moduleFileExtensions": [
|
|
72
|
+
"js",
|
|
73
|
+
"json",
|
|
74
|
+
"ts"
|
|
75
|
+
],
|
|
76
|
+
"moduleNameMapper": {
|
|
77
|
+
"@/(.*)$": "<rootDir>/src/$1",
|
|
78
|
+
"^pdfjs-dist/legacy/build/pdf\\.mjs$": "<rootDir>/test/__mocks__/pdfjs-dist.ts",
|
|
79
|
+
"^jwks-rsa$": "<rootDir>/test/__mocks__/jwks-rsa.ts"
|
|
80
|
+
},
|
|
81
|
+
"reporters": [
|
|
82
|
+
"default",
|
|
83
|
+
[
|
|
84
|
+
"jest-junit",
|
|
85
|
+
{
|
|
86
|
+
"outputDirectory": "coverage"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
],
|
|
90
|
+
"rootDir": ".",
|
|
91
|
+
"roots": [
|
|
92
|
+
"<rootDir>/src/"
|
|
93
|
+
],
|
|
94
|
+
"setupFilesAfterEnv": [
|
|
95
|
+
"<rootDir>/test/setup.ts"
|
|
96
|
+
],
|
|
97
|
+
"testEnvironment": "node",
|
|
98
|
+
"testRegex": ".*\\.spec\\.ts$",
|
|
99
|
+
"transform": {
|
|
100
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
101
|
+
},
|
|
102
|
+
"transformIgnorePatterns": [
|
|
103
|
+
"/node_modules/\\.pnpm/(?!(puppeteer[@+]|puppeteer-core[@+]|@puppeteer\\+))"
|
|
104
|
+
]
|
|
55
105
|
},
|
|
56
106
|
"dependencies": {
|
|
57
|
-
"@puppeteer/browsers": "^3.
|
|
58
|
-
"deepmerge-ts": "^
|
|
107
|
+
"@puppeteer/browsers": "^3.2.1",
|
|
108
|
+
"deepmerge-ts": "^8.0.2",
|
|
59
109
|
"p-limit": "^7.3.1",
|
|
60
110
|
"pdf-lib": "^1.17.1",
|
|
61
111
|
"pdfjs-dist": "^6.2.108",
|
|
62
|
-
"puppeteer": "^25.
|
|
112
|
+
"puppeteer": "^25.9.0"
|
|
63
113
|
},
|
|
64
114
|
"devDependencies": {
|
|
65
|
-
"@eslint/eslintrc": "^3.3.6",
|
|
66
115
|
"@eslint/js": "^10.0.1",
|
|
67
|
-
"@nestjs/cli": "^11.0.24",
|
|
68
116
|
"@nestjs/config": "^4.0.4",
|
|
69
117
|
"@nestjs/schematics": "^11.1.0",
|
|
70
|
-
"@nestjs/testing": "^11.
|
|
71
|
-
"@swc/core": "^1.
|
|
118
|
+
"@nestjs/testing": "^11.2.3",
|
|
119
|
+
"@swc/core": "^1.16.1",
|
|
72
120
|
"@types/ejs": "^3.1.5",
|
|
73
121
|
"@types/jest": "^30.0.0",
|
|
74
122
|
"@types/mjml": "^5.0.0",
|
|
75
123
|
"@types/mjml-core": "^5.1.0",
|
|
76
124
|
"@types/mustache": "^4.2.6",
|
|
77
|
-
"@types/node": "^26.
|
|
125
|
+
"@types/node": "^26.3.0",
|
|
78
126
|
"@types/nunjucks": "^3.2.6",
|
|
79
127
|
"@types/pug": "^2.0.10",
|
|
80
|
-
"
|
|
81
|
-
"eslint": "^10.8.0",
|
|
128
|
+
"eslint": "^10.9.1",
|
|
82
129
|
"eslint-config-prettier": "^10.1.8",
|
|
83
130
|
"eslint-plugin-prettier": "^5.5.6",
|
|
84
|
-
"
|
|
131
|
+
"eslint-plugin-simple-import-sort": "^14.0.0",
|
|
132
|
+
"eslint-plugin-unused-imports": "^4.4.1",
|
|
133
|
+
"globals": "^17.11.0",
|
|
85
134
|
"husky": "^9.1.7",
|
|
86
135
|
"jest": "^30.4.2",
|
|
136
|
+
"jest-junit": "^17.0.0",
|
|
137
|
+
"knip": "^6.32.2",
|
|
138
|
+
"lint-staged": "^17.3.0",
|
|
87
139
|
"prettier": "^3.9.6",
|
|
88
140
|
"reflect-metadata": "^0.2.2",
|
|
89
|
-
"
|
|
90
|
-
"supertest": "^7.2.2",
|
|
141
|
+
"sort-package-json": "^4.0.0",
|
|
91
142
|
"ts-jest": "^29.4.12",
|
|
92
|
-
"ts-loader": "^9.6.2",
|
|
93
143
|
"ts-node": "^10.9.2",
|
|
94
144
|
"tsconfig-paths": "^4.2.0",
|
|
95
145
|
"tsdown": "^0.22.14",
|
|
96
|
-
"tsx": "^4.23.1",
|
|
97
146
|
"typescript": "^6.0.3",
|
|
98
|
-
"typescript-eslint": "^8.
|
|
147
|
+
"typescript-eslint": "^8.68.0"
|
|
148
|
+
},
|
|
149
|
+
"peerDependencies": {
|
|
150
|
+
"@nestjs/common": "^11.0.0",
|
|
151
|
+
"@nestjs/core": "^11.0.0",
|
|
152
|
+
"rxjs": "^7.8.0"
|
|
99
153
|
},
|
|
100
154
|
"optionalDependencies": {
|
|
101
155
|
"@gboutte/nestjs-hbs": "^0.2.0",
|
|
102
|
-
"@napi-rs/canvas": "^1.0.
|
|
156
|
+
"@napi-rs/canvas": "^1.0.8",
|
|
103
157
|
"ejs": "^6.0.1",
|
|
104
158
|
"eta": "^4.6.0",
|
|
105
159
|
"mjml": "^5.4.0",
|
|
160
|
+
"mjml-core": "^5.4.0",
|
|
106
161
|
"mustache": "^4.2.0",
|
|
107
162
|
"nunjucks": "^3.2.4",
|
|
108
163
|
"pug": "^3.0.4"
|
|
109
164
|
},
|
|
165
|
+
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621",
|
|
166
|
+
"publishConfig": {
|
|
167
|
+
"access": "public",
|
|
168
|
+
"registry": "https://registry.npmjs.org/"
|
|
169
|
+
},
|
|
110
170
|
"inlinedDependencies": {
|
|
111
171
|
"@nestjs/config": "4.0.4",
|
|
112
172
|
"@types/mjml-core": "5.1.0",
|
|
113
173
|
"dotenv": "17.4.1",
|
|
114
174
|
"dotenv-expand": "12.0.3",
|
|
115
175
|
"lodash": "4.18.1"
|
|
116
|
-
},
|
|
117
|
-
"repository": {
|
|
118
|
-
"url": "git+https://github.com/ShadowZ11/nestjs-pdf.git"
|
|
119
|
-
},
|
|
120
|
-
"publishConfig": {
|
|
121
|
-
"access": "public",
|
|
122
|
-
"registry": "https://registry.npmjs.org/"
|
|
123
|
-
},
|
|
124
|
-
"jest": {
|
|
125
|
-
"moduleNameMapper": {
|
|
126
|
-
"@/(.*)$": "<rootDir>/src/$1",
|
|
127
|
-
"^pdfjs-dist/legacy/build/pdf\\.mjs$": "<rootDir>/test/__mocks__/pdfjs-dist.ts",
|
|
128
|
-
"^jwks-rsa$": "<rootDir>/test/__mocks__/jwks-rsa.ts"
|
|
129
|
-
},
|
|
130
|
-
"moduleFileExtensions": [
|
|
131
|
-
"js",
|
|
132
|
-
"json",
|
|
133
|
-
"ts"
|
|
134
|
-
],
|
|
135
|
-
"rootDir": ".",
|
|
136
|
-
"testRegex": ".*\\.spec\\.ts$",
|
|
137
|
-
"setupFilesAfterEnv": [
|
|
138
|
-
"<rootDir>/test/setup.ts"
|
|
139
|
-
],
|
|
140
|
-
"transform": {
|
|
141
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
142
|
-
},
|
|
143
|
-
"transformIgnorePatterns": [
|
|
144
|
-
"/node_modules/\\.pnpm/(?!(puppeteer[@+]|puppeteer-core[@+]|@puppeteer\\+))"
|
|
145
|
-
],
|
|
146
|
-
"collectCoverageFrom": [
|
|
147
|
-
"src/**/*.(t|j)s",
|
|
148
|
-
"!src/index.ts"
|
|
149
|
-
],
|
|
150
|
-
"coverageDirectory": "./coverage",
|
|
151
|
-
"testEnvironment": "node",
|
|
152
|
-
"roots": [
|
|
153
|
-
"<rootDir>/src/"
|
|
154
|
-
]
|
|
155
176
|
}
|
|
156
177
|
}
|