@estgbue/mezgeb 0.0.20 → 0.0.22
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/mezgeb/client/client-audit.interceptor.d.ts.map +1 -1
- package/dist/mezgeb/client/client-audit.interceptor.js +2 -1
- package/dist/mezgeb/client/client.module.d.ts +0 -6
- package/dist/mezgeb/client/client.module.d.ts.map +1 -1
- package/dist/mezgeb/client/client.module.js +2 -32
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-audit.interceptor.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client-audit.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGhB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAA6B,UAAU,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"client-audit.interceptor.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client-audit.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGhB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAA6B,UAAU,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAQrC,qBACa,uBAAwB,YAAW,eAAe;IAE3D,OAAO,CAAC,SAAS;IAEjB,OAAO,CAAC,QAAQ,CAAC,UAAU;IAE3B,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAJrB,SAAS,EAAE,SAAS,EAEX,UAAU,EAAE,UAAU,EAEtB,YAAY,EAAE,WAAW;IAG5C,SAAS,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG,CAAC;IAoDxE,OAAO,CAAC,4BAA4B;IAiCpC,OAAO,CAAC,0BAA0B;IA2BlC,OAAO,CAAC,iBAAiB;IAsBzB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;CAOnB"}
|
|
@@ -22,6 +22,7 @@ const crypto_1 = require("crypto");
|
|
|
22
22
|
const event_audit_decorator_1 = require("./event-audit.decorator");
|
|
23
23
|
const ignore_logger_decorator_1 = require("./ignore-logger.decorator");
|
|
24
24
|
const mezgeb_enum_1 = require("../mezgeb.enum");
|
|
25
|
+
const typeorm_2 = require("@nestjs/typeorm");
|
|
25
26
|
let ClientLoggerInterceptor = class ClientLoggerInterceptor {
|
|
26
27
|
constructor(reflector, connection, rmsRMQClient) {
|
|
27
28
|
this.reflector = reflector;
|
|
@@ -126,7 +127,7 @@ let ClientLoggerInterceptor = class ClientLoggerInterceptor {
|
|
|
126
127
|
exports.ClientLoggerInterceptor = ClientLoggerInterceptor;
|
|
127
128
|
exports.ClientLoggerInterceptor = ClientLoggerInterceptor = __decorate([
|
|
128
129
|
(0, common_1.Injectable)(),
|
|
129
|
-
__param(1, (0,
|
|
130
|
+
__param(1, (0, typeorm_2.InjectDataSource)()),
|
|
130
131
|
__param(2, (0, common_1.Inject)(mezgeb_enum_1.ClientLoggerInterceptorKey)),
|
|
131
132
|
__metadata("design:paramtypes", [core_1.Reflector,
|
|
132
133
|
typeorm_1.DataSource,
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { DynamicModule } from '@nestjs/common';
|
|
2
|
-
import { DataSource } from 'typeorm';
|
|
3
1
|
export declare class AuditClientModule {
|
|
4
|
-
static forRoot(options?: {
|
|
5
|
-
dataSource?: DataSource;
|
|
6
|
-
connectionName?: string;
|
|
7
|
-
}): DynamicModule;
|
|
8
2
|
}
|
|
9
3
|
//# sourceMappingURL=client.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.module.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.module.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client.module.ts"],"names":[],"mappings":"AAOA,qBAaa,iBAAiB;CAAG"}
|
|
@@ -5,7 +5,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var AuditClientModule_1;
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.AuditClientModule = void 0;
|
|
11
10
|
const common_1 = require("@nestjs/common");
|
|
@@ -14,39 +13,10 @@ const microservices_1 = require("@nestjs/microservices");
|
|
|
14
13
|
const client_logger_config_1 = require("./client.logger.config");
|
|
15
14
|
const client_audit_interceptor_1 = require("./client-audit.interceptor");
|
|
16
15
|
const client_subscriber_1 = require("./client.subscriber");
|
|
17
|
-
|
|
18
|
-
const mezgeb_enum_1 = require("../mezgeb.enum");
|
|
19
|
-
let AuditClientModule = AuditClientModule_1 = class AuditClientModule {
|
|
20
|
-
static forRoot(options) {
|
|
21
|
-
const providers = [
|
|
22
|
-
client_subscriber_1.ClientSubscriber,
|
|
23
|
-
];
|
|
24
|
-
if (options === null || options === void 0 ? void 0 : options.dataSource) {
|
|
25
|
-
// Caller supplied a DataSource instance directly
|
|
26
|
-
providers.push({
|
|
27
|
-
provide: mezgeb_enum_1.AuditDatasource,
|
|
28
|
-
useValue: options.dataSource,
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
// Resolve DataSource from the host application's TypeOrmModule using the token
|
|
33
|
-
const token = (0, typeorm_1.getDataSourceToken)(options === null || options === void 0 ? void 0 : options.connectionName);
|
|
34
|
-
providers.push({
|
|
35
|
-
provide: mezgeb_enum_1.AuditDatasource,
|
|
36
|
-
useFactory: (dataSource) => dataSource,
|
|
37
|
-
inject: [token],
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
module: AuditClientModule_1,
|
|
42
|
-
imports: [],
|
|
43
|
-
providers,
|
|
44
|
-
exports: [client_subscriber_1.ClientSubscriber, mezgeb_enum_1.AuditDatasource],
|
|
45
|
-
};
|
|
46
|
-
}
|
|
16
|
+
let AuditClientModule = class AuditClientModule {
|
|
47
17
|
};
|
|
48
18
|
exports.AuditClientModule = AuditClientModule;
|
|
49
|
-
exports.AuditClientModule = AuditClientModule =
|
|
19
|
+
exports.AuditClientModule = AuditClientModule = __decorate([
|
|
50
20
|
(0, common_1.Module)({
|
|
51
21
|
imports: [
|
|
52
22
|
microservices_1.ClientsModule.register([client_logger_config_1.auditLoggerConfig]),
|