@dofe/infra-prisma 0.1.1
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/dist/db-metrics/index.d.ts +2 -0
- package/dist/db-metrics/index.d.ts.map +1 -0
- package/dist/db-metrics/index.js +18 -0
- package/dist/db-metrics/index.js.map +1 -0
- package/dist/db-metrics/src/db-metrics.module.d.ts +22 -0
- package/dist/db-metrics/src/db-metrics.module.d.ts.map +1 -0
- package/dist/db-metrics/src/db-metrics.module.js +140 -0
- package/dist/db-metrics/src/db-metrics.module.js.map +1 -0
- package/dist/db-metrics/src/db-metrics.service.d.ts +183 -0
- package/dist/db-metrics/src/db-metrics.service.d.ts.map +1 -0
- package/dist/db-metrics/src/db-metrics.service.js +334 -0
- package/dist/db-metrics/src/db-metrics.service.js.map +1 -0
- package/dist/db-metrics/src/index.d.ts +6 -0
- package/dist/db-metrics/src/index.d.ts.map +1 -0
- package/dist/db-metrics/src/index.js +24 -0
- package/dist/db-metrics/src/index.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/soft-delete.middleware.d.ts +51 -0
- package/dist/middleware/soft-delete.middleware.d.ts.map +1 -0
- package/dist/middleware/soft-delete.middleware.js +289 -0
- package/dist/middleware/soft-delete.middleware.js.map +1 -0
- package/dist/middleware/tenant-isolation-extension.d.ts +18 -0
- package/dist/middleware/tenant-isolation-extension.d.ts.map +1 -0
- package/dist/middleware/tenant-isolation-extension.js +124 -0
- package/dist/middleware/tenant-isolation-extension.js.map +1 -0
- package/dist/prisma/index.d.ts +7 -0
- package/dist/prisma/index.d.ts.map +1 -0
- package/dist/prisma/index.js +25 -0
- package/dist/prisma/index.js.map +1 -0
- package/dist/prisma/prisma.module.d.ts +3 -0
- package/dist/prisma/prisma.module.d.ts.map +1 -0
- package/dist/prisma/prisma.module.js +26 -0
- package/dist/prisma/prisma.module.js.map +1 -0
- package/dist/prisma/prisma.service.d.ts +10 -0
- package/dist/prisma/prisma.service.d.ts.map +1 -0
- package/dist/prisma/prisma.service.js +36 -0
- package/dist/prisma/prisma.service.js.map +1 -0
- package/dist/prisma/types.d.ts +4 -0
- package/dist/prisma/types.d.ts.map +1 -0
- package/dist/prisma/types.js +22 -0
- package/dist/prisma/types.js.map +1 -0
- package/dist/prisma-read/prisma-read.module.d.ts +3 -0
- package/dist/prisma-read/prisma-read.module.d.ts.map +1 -0
- package/dist/prisma-read/prisma-read.module.js +24 -0
- package/dist/prisma-read/prisma-read.module.js.map +1 -0
- package/dist/prisma-read/prisma-read.service.d.ts +47 -0
- package/dist/prisma-read/prisma-read.service.d.ts.map +1 -0
- package/dist/prisma-read/prisma-read.service.js +222 -0
- package/dist/prisma-read/prisma-read.service.js.map +1 -0
- package/dist/prisma-write/prisma-write.module.d.ts +3 -0
- package/dist/prisma-write/prisma-write.module.d.ts.map +1 -0
- package/dist/prisma-write/prisma-write.module.js +24 -0
- package/dist/prisma-write/prisma-write.module.js.map +1 -0
- package/dist/prisma-write/prisma-write.service.d.ts +47 -0
- package/dist/prisma-write/prisma-write.service.d.ts.map +1 -0
- package/dist/prisma-write/prisma-write.service.js +222 -0
- package/dist/prisma-write/prisma-write.service.js.map +1 -0
- package/dist/prometheus/index.d.ts +5 -0
- package/dist/prometheus/index.d.ts.map +1 -0
- package/dist/prometheus/index.js +9 -0
- package/dist/prometheus/index.js.map +1 -0
- package/dist/prometheus/prometheus.module.d.ts +3 -0
- package/dist/prometheus/prometheus.module.d.ts.map +1 -0
- package/dist/prometheus/prometheus.module.js +230 -0
- package/dist/prometheus/prometheus.module.js.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prometheus/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,yDAA6D;AAApD,2HAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prometheus.module.d.ts","sourceRoot":"","sources":["../../src/prometheus/prometheus.module.ts"],"names":[],"mappings":"AAyNA,qBAaa,sBAAsB;CAAG"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.PrometheusConfigModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const nestjs_prometheus_1 = require("@willsoto/nestjs-prometheus");
|
|
12
|
+
const prom_client_1 = require("prom-client");
|
|
13
|
+
// 在开发环境下清除已有的 metrics,避免热重载时重复注册
|
|
14
|
+
// 注意:register.clear() 必须在模块加载之前执行,但不会影响 NestJS 的依赖注入
|
|
15
|
+
// 因为 makeCounterProvider 创建的 providers 会在模块初始化时重新注册
|
|
16
|
+
if (process.env.NODE_ENV === 'dev') {
|
|
17
|
+
prom_client_1.register.clear();
|
|
18
|
+
}
|
|
19
|
+
// 定义所有 metrics providers
|
|
20
|
+
const metricsProviders = [
|
|
21
|
+
// Preference Service Metrics
|
|
22
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
23
|
+
name: 'preference_cache_hits_total',
|
|
24
|
+
help: 'Total number of preference cache hits',
|
|
25
|
+
labelNames: ['operation'],
|
|
26
|
+
}),
|
|
27
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
28
|
+
name: 'preference_cache_misses_total',
|
|
29
|
+
help: 'Total number of preference cache misses',
|
|
30
|
+
labelNames: ['operation'],
|
|
31
|
+
}),
|
|
32
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
33
|
+
name: 'preference_api_latency_seconds',
|
|
34
|
+
help: 'Preference API call latency in seconds',
|
|
35
|
+
labelNames: ['operation'],
|
|
36
|
+
buckets: [0.001, 0.01, 0.05, 0.1, 0.5, 1, 2, 5],
|
|
37
|
+
}),
|
|
38
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
39
|
+
name: 'preference_operations_total',
|
|
40
|
+
help: 'Total number of preference operations',
|
|
41
|
+
labelNames: ['operation'],
|
|
42
|
+
}),
|
|
43
|
+
// Memory Service Metrics
|
|
44
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
45
|
+
name: 'memory_cache_hits_total',
|
|
46
|
+
help: 'Total number of memory cache hits',
|
|
47
|
+
labelNames: ['operation'],
|
|
48
|
+
}),
|
|
49
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
50
|
+
name: 'memory_cache_misses_total',
|
|
51
|
+
help: 'Total number of memory cache misses',
|
|
52
|
+
labelNames: ['operation'],
|
|
53
|
+
}),
|
|
54
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
55
|
+
name: 'memory_api_latency_seconds',
|
|
56
|
+
help: 'Memory API call latency in seconds',
|
|
57
|
+
labelNames: ['operation'],
|
|
58
|
+
buckets: [0.001, 0.01, 0.05, 0.1, 0.5, 1, 2, 5],
|
|
59
|
+
}),
|
|
60
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
61
|
+
name: 'memory_operations_total',
|
|
62
|
+
help: 'Total number of memory operations',
|
|
63
|
+
labelNames: ['operation'],
|
|
64
|
+
}),
|
|
65
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
66
|
+
name: 'memory_batch_operations_total',
|
|
67
|
+
help: 'Total number of memory batch operations',
|
|
68
|
+
labelNames: ['operation', 'status'],
|
|
69
|
+
}),
|
|
70
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
71
|
+
name: 'memory_search_latency_seconds',
|
|
72
|
+
help: 'Memory search latency in seconds',
|
|
73
|
+
labelNames: ['method'],
|
|
74
|
+
buckets: [0.01, 0.05, 0.1, 0.5, 1, 2, 5, 10],
|
|
75
|
+
}),
|
|
76
|
+
// Subscription Service Metrics
|
|
77
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
78
|
+
name: 'subscription_cache_hits_total',
|
|
79
|
+
help: 'Total number of subscription cache hits',
|
|
80
|
+
labelNames: ['operation'],
|
|
81
|
+
}),
|
|
82
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
83
|
+
name: 'subscription_cache_misses_total',
|
|
84
|
+
help: 'Total number of subscription cache misses',
|
|
85
|
+
labelNames: ['operation'],
|
|
86
|
+
}),
|
|
87
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
88
|
+
name: 'subscription_operations_total',
|
|
89
|
+
help: 'Total number of subscription operations',
|
|
90
|
+
labelNames: ['operation'],
|
|
91
|
+
}),
|
|
92
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
93
|
+
name: 'subscription_api_latency_seconds',
|
|
94
|
+
help: 'Subscription API call latency in seconds',
|
|
95
|
+
labelNames: ['operation'],
|
|
96
|
+
buckets: [0.001, 0.01, 0.05, 0.1, 0.5, 1, 2, 5],
|
|
97
|
+
}),
|
|
98
|
+
// Notification Service Metrics
|
|
99
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
100
|
+
name: 'notification_cache_hits_total',
|
|
101
|
+
help: 'Total number of notification cache hits',
|
|
102
|
+
labelNames: ['operation'],
|
|
103
|
+
}),
|
|
104
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
105
|
+
name: 'notification_cache_misses_total',
|
|
106
|
+
help: 'Total number of notification cache misses',
|
|
107
|
+
labelNames: ['operation'],
|
|
108
|
+
}),
|
|
109
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
110
|
+
name: 'notification_operations_total',
|
|
111
|
+
help: 'Total number of notification operations',
|
|
112
|
+
labelNames: ['operation'],
|
|
113
|
+
}),
|
|
114
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
115
|
+
name: 'notification_api_latency_seconds',
|
|
116
|
+
help: 'Notification API call latency in seconds',
|
|
117
|
+
labelNames: ['operation'],
|
|
118
|
+
buckets: [0.001, 0.01, 0.05, 0.1, 0.5, 1, 2, 5],
|
|
119
|
+
}),
|
|
120
|
+
// Subscription Matcher Metrics
|
|
121
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
122
|
+
name: 'subscription_match_total',
|
|
123
|
+
help: 'Total number of subscription matches',
|
|
124
|
+
labelNames: ['eventType', 'teamId'],
|
|
125
|
+
}),
|
|
126
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
127
|
+
name: 'subscription_match_latency_seconds',
|
|
128
|
+
help: 'Subscription matching latency in seconds',
|
|
129
|
+
labelNames: ['eventType'],
|
|
130
|
+
buckets: [0.001, 0.01, 0.05, 0.1, 0.5, 1, 2],
|
|
131
|
+
}),
|
|
132
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
133
|
+
name: 'notification_generation_total',
|
|
134
|
+
help: 'Total number of notifications generated from events',
|
|
135
|
+
labelNames: ['eventType'],
|
|
136
|
+
}),
|
|
137
|
+
// WebSocket Gateway Metrics
|
|
138
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
139
|
+
name: 'websocket_connections_total',
|
|
140
|
+
help: 'Total number of WebSocket connections',
|
|
141
|
+
labelNames: ['status'], // connected, disconnected
|
|
142
|
+
}),
|
|
143
|
+
(0, nestjs_prometheus_1.makeGaugeProvider)({
|
|
144
|
+
name: 'websocket_connections_active',
|
|
145
|
+
help: 'Number of active WebSocket connections',
|
|
146
|
+
}),
|
|
147
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
148
|
+
name: 'websocket_notifications_sent_total',
|
|
149
|
+
help: 'Total number of notifications sent via WebSocket',
|
|
150
|
+
labelNames: ['userId'],
|
|
151
|
+
}),
|
|
152
|
+
// Recommendation Service Metrics
|
|
153
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
154
|
+
name: 'recommendation_cache_hits_total',
|
|
155
|
+
help: 'Total number of recommendation cache hits',
|
|
156
|
+
labelNames: ['cache_type'], // collaborative, recommendations, matrix
|
|
157
|
+
}),
|
|
158
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
159
|
+
name: 'recommendation_cache_misses_total',
|
|
160
|
+
help: 'Total number of recommendation cache misses',
|
|
161
|
+
labelNames: ['cache_type'],
|
|
162
|
+
}),
|
|
163
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
164
|
+
name: 'recommendation_cache_invalidations_total',
|
|
165
|
+
help: 'Total number of cache invalidation operations',
|
|
166
|
+
labelNames: ['event_type'], // user-behavior.created, recommendation.accepted, etc.
|
|
167
|
+
}),
|
|
168
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
169
|
+
name: 'recommendation_generation_latency_seconds',
|
|
170
|
+
help: 'Recommendation generation latency in seconds',
|
|
171
|
+
labelNames: ['strategy'], // collaborative, graph-based, hybrid
|
|
172
|
+
buckets: [0.01, 0.05, 0.1, 0.5, 1, 2, 5, 10, 30],
|
|
173
|
+
}),
|
|
174
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
175
|
+
name: 'recommendation_operations_total',
|
|
176
|
+
help: 'Total number of recommendation operations',
|
|
177
|
+
labelNames: ['operation', 'status'], // generate/accept/reject, success/error
|
|
178
|
+
}),
|
|
179
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
180
|
+
name: 'recommendation_python_agent_latency_seconds',
|
|
181
|
+
help: 'Python Agent collaborative filtering latency in seconds',
|
|
182
|
+
buckets: [0.1, 0.5, 1, 2, 5, 10, 30, 60],
|
|
183
|
+
}),
|
|
184
|
+
// User Behavior Service Metrics
|
|
185
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
186
|
+
name: 'user_behavior_cache_hits_total',
|
|
187
|
+
help: 'Total number of user behavior cache hits',
|
|
188
|
+
labelNames: ['cache_type'], // matrix, high-weight
|
|
189
|
+
}),
|
|
190
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
191
|
+
name: 'user_behavior_cache_misses_total',
|
|
192
|
+
help: 'Total number of user behavior cache misses',
|
|
193
|
+
labelNames: ['cache_type'],
|
|
194
|
+
}),
|
|
195
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
196
|
+
name: 'user_behavior_tracked_total',
|
|
197
|
+
help: 'Total number of user behaviors tracked',
|
|
198
|
+
labelNames: ['behavior_type'], // VIEW, LIKE, SHARE, etc.
|
|
199
|
+
}),
|
|
200
|
+
(0, nestjs_prometheus_1.makeHistogramProvider)({
|
|
201
|
+
name: 'user_behavior_matrix_build_latency_seconds',
|
|
202
|
+
help: 'User-item matrix build latency in seconds',
|
|
203
|
+
labelNames: ['time_window'],
|
|
204
|
+
buckets: [0.01, 0.05, 0.1, 0.5, 1, 2, 5, 10],
|
|
205
|
+
}),
|
|
206
|
+
(0, nestjs_prometheus_1.makeCounterProvider)({
|
|
207
|
+
name: 'user_behavior_operations_total',
|
|
208
|
+
help: 'Total number of user behavior operations',
|
|
209
|
+
labelNames: ['operation', 'status'], // track/batch/query, success/error
|
|
210
|
+
}),
|
|
211
|
+
];
|
|
212
|
+
let PrometheusConfigModule = class PrometheusConfigModule {
|
|
213
|
+
};
|
|
214
|
+
exports.PrometheusConfigModule = PrometheusConfigModule;
|
|
215
|
+
exports.PrometheusConfigModule = PrometheusConfigModule = __decorate([
|
|
216
|
+
(0, common_1.Global)(),
|
|
217
|
+
(0, common_1.Module)({
|
|
218
|
+
imports: [
|
|
219
|
+
nestjs_prometheus_1.PrometheusModule.register({
|
|
220
|
+
defaultMetrics: {
|
|
221
|
+
enabled: true,
|
|
222
|
+
},
|
|
223
|
+
path: '/metrics',
|
|
224
|
+
}),
|
|
225
|
+
],
|
|
226
|
+
providers: metricsProviders,
|
|
227
|
+
exports: [nestjs_prometheus_1.PrometheusModule, ...metricsProviders],
|
|
228
|
+
})
|
|
229
|
+
], PrometheusConfigModule);
|
|
230
|
+
//# sourceMappingURL=prometheus.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prometheus.module.js","sourceRoot":"","sources":["../../src/prometheus/prometheus.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAgD;AAChD,mEAKqC;AACrC,6CAAuC;AAEvC,iCAAiC;AACjC,qDAAqD;AACrD,oDAAoD;AACpD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,KAAK,EAAE,CAAC;IACnC,sBAAQ,CAAC,KAAK,EAAE,CAAC;AACnB,CAAC;AAED,yBAAyB;AACzB,MAAM,gBAAgB,GAAG;IACvB,6BAA6B;IAC7B,IAAA,uCAAmB,EAAC;QAClB,IAAI,EAAE,6BAA6B;QACnC,IAAI,EAAE,uCAAuC;QAC7C,UAAU,EAAE,CAAC,WAAW,CAAC;KAC1B,CAAC;IACF,IAAA,uCAAmB,EAAC;QAClB,IAAI,EAAE,+BAA+B;QACrC,IAAI,EAAE,yCAAyC;QAC/C,UAAU,EAAE,CAAC,WAAW,CAAC;KAC1B,CAAC;IACF,IAAA,yCAAqB,EAAC;QACpB,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,wCAAwC;QAC9C,UAAU,EAAE,CAAC,WAAW,CAAC;QACzB,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;KAChD,CAAC;IACF,IAAA,uCAAmB,EAAC;QAClB,IAAI,EAAE,6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AC;QAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;KAC7C,CAAC;IACF,IAAA,uCAAmB,EAAC;QAClB,IAAI,EAAE,gCAAgC;QACtC,IAAI,EAAE,0CAA0C;QAChD,UAAU,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,mCAAmC;KACzE,CAAC;CACH,CAAC;AAeK,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;CAAG,CAAA;AAAzB,wDAAsB;iCAAtB,sBAAsB;IAblC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,oCAAoB,CAAC,QAAQ,CAAC;gBAC5B,cAAc,EAAE;oBACd,OAAO,EAAE,IAAI;iBACd;gBACD,IAAI,EAAE,UAAU;aACjB,CAAC;SACH;QACD,SAAS,EAAE,gBAAgB;QAC3B,OAAO,EAAE,CAAC,oCAAoB,EAAE,GAAG,gBAAgB,CAAC;KACrD,CAAC;GACW,sBAAsB,CAAG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dofe/infra-prisma",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@nestjs/common": "^11.0.0",
|
|
8
|
+
"@nestjs/config": "^4.0.0",
|
|
9
|
+
"@nestjs/core": "^11.0.0",
|
|
10
|
+
"@prisma/client": "^7.0.0",
|
|
11
|
+
"@willsoto/nestjs-prometheus": "^6.0.0",
|
|
12
|
+
"ioredis": "^5.0.0",
|
|
13
|
+
"nest-winston": "^1.9.0",
|
|
14
|
+
"pg": "^8.0.0",
|
|
15
|
+
"prom-client": "^15.0.0",
|
|
16
|
+
"reflect-metadata": "^0.2.0",
|
|
17
|
+
"rxjs": "^7.8.0",
|
|
18
|
+
"winston": "^3.0.0"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@dofe/infra-common": "^0.1.1",
|
|
22
|
+
"@dofe/infra-redis": "^0.1.1",
|
|
23
|
+
"@dofe/infra-utils": "^0.1.1"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"rimraf": "^5.0.0",
|
|
27
|
+
"typescript": "^5.4.5"
|
|
28
|
+
},
|
|
29
|
+
"type": "commonjs",
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"license": "UNLICENSED",
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"clean": "rimraf dist"
|
|
41
|
+
}
|
|
42
|
+
}
|