@russ-b/nestjs-common-tools 2.1.0 → 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 +259 -0
- package/dist/common/util/error.util.d.ts +1 -0
- package/dist/common/util/error.util.js +10 -0
- package/dist/common/util/error.util.js.map +1 -0
- package/dist/common/util/index.d.ts +1 -0
- package/dist/common/util/index.js +1 -0
- package/dist/common/util/index.js.map +1 -1
- package/dist/errors/api-error-code.enum.d.ts +11 -0
- package/dist/errors/api-error-code.enum.js +16 -0
- package/dist/errors/api-error-code.enum.js.map +1 -0
- package/dist/errors/api-error-response.type.d.ts +11 -0
- package/dist/errors/api-error-response.type.js +3 -0
- package/dist/errors/api-error-response.type.js.map +1 -0
- package/dist/errors/api-error-root-field.constant.d.ts +1 -0
- package/dist/errors/api-error-root-field.constant.js +5 -0
- package/dist/errors/api-error-root-field.constant.js.map +1 -0
- package/dist/errors/class-validator-exception.factory.d.ts +6 -0
- package/dist/errors/class-validator-exception.factory.js +38 -0
- package/dist/errors/class-validator-exception.factory.js.map +1 -0
- package/dist/errors/error-response.factory.d.ts +10 -0
- package/dist/errors/error-response.factory.js +46 -0
- package/dist/errors/error-response.factory.js.map +1 -0
- package/dist/errors/index.d.ts +5 -0
- package/dist/errors/index.js +22 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/logger/pino/index.d.ts +1 -0
- package/dist/{common/filters → logger/pino}/index.js +1 -1
- package/dist/logger/pino/index.js.map +1 -0
- package/dist/logger/pino-logger.d.ts +13 -0
- package/dist/logger/pino-logger.js +62 -0
- package/dist/logger/pino-logger.js.map +1 -0
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/index.js +1 -0
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/outbox/entities/index.d.ts +1 -0
- package/dist/modules/outbox/entities/index.js +18 -0
- package/dist/modules/outbox/entities/index.js.map +1 -0
- package/dist/modules/outbox/entities/outbox-event.entity.d.ts +12 -0
- package/dist/modules/outbox/entities/outbox-event.entity.js +67 -0
- package/dist/modules/outbox/entities/outbox-event.entity.js.map +1 -0
- package/dist/modules/outbox/enums/index.d.ts +1 -0
- package/dist/modules/outbox/enums/index.js +18 -0
- package/dist/modules/outbox/enums/index.js.map +1 -0
- package/dist/modules/outbox/enums/outbox-event-status.enum.d.ts +6 -0
- package/dist/modules/outbox/enums/outbox-event-status.enum.js +11 -0
- package/dist/modules/outbox/enums/outbox-event-status.enum.js.map +1 -0
- package/dist/modules/outbox/index.d.ts +6 -0
- package/dist/modules/outbox/index.js +23 -0
- package/dist/modules/outbox/index.js.map +1 -0
- package/dist/modules/outbox/outbox-options.util.d.ts +3 -0
- package/dist/modules/outbox/outbox-options.util.js +34 -0
- package/dist/modules/outbox/outbox-options.util.js.map +1 -0
- package/dist/modules/outbox/outbox.constants.d.ts +2 -0
- package/dist/modules/outbox/outbox.constants.js +6 -0
- package/dist/modules/outbox/outbox.constants.js.map +1 -0
- package/dist/modules/outbox/outbox.module.d.ts +6 -0
- package/dist/modules/outbox/outbox.module.js +74 -0
- package/dist/modules/outbox/outbox.module.js.map +1 -0
- package/dist/modules/outbox/services/base-worker.d.ts +14 -0
- package/dist/modules/outbox/services/base-worker.js +91 -0
- package/dist/modules/outbox/services/base-worker.js.map +1 -0
- package/dist/modules/outbox/services/index.d.ts +3 -0
- package/dist/modules/outbox/services/index.js +20 -0
- package/dist/modules/outbox/services/index.js.map +1 -0
- package/dist/modules/outbox/services/outbox-cleanup.worker.d.ts +9 -0
- package/dist/modules/outbox/services/outbox-cleanup.worker.js +59 -0
- package/dist/modules/outbox/services/outbox-cleanup.worker.js.map +1 -0
- package/dist/modules/outbox/services/outbox.service.d.ts +22 -0
- package/dist/modules/outbox/services/outbox.service.js +235 -0
- package/dist/modules/outbox/services/outbox.service.js.map +1 -0
- package/dist/modules/outbox/types/index.d.ts +1 -0
- package/dist/modules/outbox/types/index.js +18 -0
- package/dist/modules/outbox/types/index.js.map +1 -0
- package/dist/modules/outbox/types/outbox-module-options.interface.d.ts +35 -0
- package/dist/modules/outbox/types/outbox-module-options.interface.js +3 -0
- package/dist/modules/outbox/types/outbox-module-options.interface.js.map +1 -0
- package/dist/typeorm/config/postgres-typeorm-options.factory.d.ts +12 -2
- package/dist/typeorm/config/postgres-typeorm-options.factory.js +37 -2
- package/dist/typeorm/config/postgres-typeorm-options.factory.js.map +1 -1
- package/dist/zod/filters/index.d.ts +3 -0
- package/dist/zod/filters/index.js +20 -0
- package/dist/zod/filters/index.js.map +1 -0
- package/dist/zod/filters/zod-express-exception.filter.d.ts +8 -0
- package/dist/zod/filters/zod-express-exception.filter.js +35 -0
- package/dist/zod/filters/zod-express-exception.filter.js.map +1 -0
- package/dist/zod/filters/zod-fastify-exception.filter.d.ts +8 -0
- package/dist/zod/filters/zod-fastify-exception.filter.js +35 -0
- package/dist/zod/filters/zod-fastify-exception.filter.js.map +1 -0
- package/dist/zod/filters/zod-validation-error-response.d.ts +6 -0
- package/dist/zod/filters/zod-validation-error-response.js +24 -0
- package/dist/zod/filters/zod-validation-error-response.js.map +1 -0
- package/dist/zod/index.d.ts +1 -0
- package/dist/zod/index.js +18 -0
- package/dist/zod/index.js.map +1 -0
- package/package.json +63 -3
- package/dist/common/filters/index.d.ts +0 -1
- package/dist/common/filters/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@russ-b/nestjs-common-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "NestJS utility tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -64,10 +64,26 @@
|
|
|
64
64
|
"types": "./dist/modules/index.d.ts",
|
|
65
65
|
"default": "./dist/modules/index.js"
|
|
66
66
|
},
|
|
67
|
+
"./modules/outbox": {
|
|
68
|
+
"types": "./dist/modules/outbox/index.d.ts",
|
|
69
|
+
"default": "./dist/modules/outbox/index.js"
|
|
70
|
+
},
|
|
67
71
|
"./logger": {
|
|
68
72
|
"types": "./dist/logger/index.d.ts",
|
|
69
73
|
"default": "./dist/logger/index.js"
|
|
70
74
|
},
|
|
75
|
+
"./logger/pino": {
|
|
76
|
+
"types": "./dist/logger/pino/index.d.ts",
|
|
77
|
+
"default": "./dist/logger/pino/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./errors": {
|
|
80
|
+
"types": "./dist/errors/index.d.ts",
|
|
81
|
+
"default": "./dist/errors/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./zod": {
|
|
84
|
+
"types": "./dist/zod/index.d.ts",
|
|
85
|
+
"default": "./dist/zod/index.js"
|
|
86
|
+
},
|
|
71
87
|
"./package.json": "./package.json"
|
|
72
88
|
},
|
|
73
89
|
"typesVersions": {
|
|
@@ -93,8 +109,20 @@
|
|
|
93
109
|
"modules": [
|
|
94
110
|
"dist/modules/index.d.ts"
|
|
95
111
|
],
|
|
112
|
+
"modules/outbox": [
|
|
113
|
+
"dist/modules/outbox/index.d.ts"
|
|
114
|
+
],
|
|
96
115
|
"logger": [
|
|
97
116
|
"dist/logger/index.d.ts"
|
|
117
|
+
],
|
|
118
|
+
"logger/pino": [
|
|
119
|
+
"dist/logger/pino/index.d.ts"
|
|
120
|
+
],
|
|
121
|
+
"errors": [
|
|
122
|
+
"dist/errors/index.d.ts"
|
|
123
|
+
],
|
|
124
|
+
"zod": [
|
|
125
|
+
"dist/zod/index.d.ts"
|
|
98
126
|
]
|
|
99
127
|
}
|
|
100
128
|
},
|
|
@@ -110,11 +138,37 @@
|
|
|
110
138
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
111
139
|
"@nestjs/config": "^3.0.0 || ^4.0.0",
|
|
112
140
|
"@nestjs/typeorm": "^10.0.0 || ^11.0.0",
|
|
141
|
+
"fastify": "^4.0.0 || ^5.0.0",
|
|
113
142
|
"nest-winston": "^1.10.2",
|
|
143
|
+
"nestjs-pino": "^4.6.1",
|
|
144
|
+
"pino": "^10.3.1",
|
|
145
|
+
"pino-http": "^11.0.0",
|
|
146
|
+
"pino-pretty": "^13.1.3",
|
|
114
147
|
"typeorm": "^0.3.20",
|
|
115
148
|
"winston": "^3.17.0",
|
|
149
|
+
"winston-loki": "^6.1.3",
|
|
116
150
|
"winston-transport": "^4.9.0",
|
|
117
|
-
"
|
|
151
|
+
"zod": "^3.0.0 || ^4.0.0"
|
|
152
|
+
},
|
|
153
|
+
"peerDependenciesMeta": {
|
|
154
|
+
"fastify": {
|
|
155
|
+
"optional": true
|
|
156
|
+
},
|
|
157
|
+
"nestjs-pino": {
|
|
158
|
+
"optional": true
|
|
159
|
+
},
|
|
160
|
+
"pino": {
|
|
161
|
+
"optional": true
|
|
162
|
+
},
|
|
163
|
+
"pino-http": {
|
|
164
|
+
"optional": true
|
|
165
|
+
},
|
|
166
|
+
"pino-pretty": {
|
|
167
|
+
"optional": true
|
|
168
|
+
},
|
|
169
|
+
"zod": {
|
|
170
|
+
"optional": true
|
|
171
|
+
}
|
|
118
172
|
},
|
|
119
173
|
"devDependencies": {
|
|
120
174
|
"@eslint/eslintrc": "^3.2.0",
|
|
@@ -126,12 +180,18 @@
|
|
|
126
180
|
"eslint": "^9.18.0",
|
|
127
181
|
"eslint-config-prettier": "^10.0.1",
|
|
128
182
|
"eslint-plugin-prettier": "^5.2.2",
|
|
183
|
+
"fastify": "^5.8.5",
|
|
129
184
|
"jest": "^29.7.0",
|
|
185
|
+
"nestjs-pino": "^4.6.1",
|
|
186
|
+
"pino": "^10.3.1",
|
|
187
|
+
"pino-http": "^11.0.0",
|
|
188
|
+
"pino-pretty": "^13.1.3",
|
|
130
189
|
"prettier": "^3.4.2",
|
|
131
190
|
"ts-jest": "^29.2.5",
|
|
132
191
|
"tsconfig-paths": "^4.2.0",
|
|
133
192
|
"typescript": "^5.7.3",
|
|
134
|
-
"typescript-eslint": "^8.20.0"
|
|
193
|
+
"typescript-eslint": "^8.20.0",
|
|
194
|
+
"zod": "^4.0.0"
|
|
135
195
|
},
|
|
136
196
|
"jest": {
|
|
137
197
|
"moduleFileExtensions": [
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../typeorm/filters';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/filters/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|