nestjs-backend-common 0.0.3 → 0.0.4
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/src/correlation-id/correlation-id.module.d.ts +1 -1
- package/dist/src/correlation-id/correlation-id.module.d.ts.map +1 -1
- package/dist/src/correlation-id/correlation-id.module.js +1 -1
- package/dist/src/correlation-id/correlation-id.module.js.map +1 -1
- package/package.json +1 -1
- package/src/correlation-id/correlation-id.module.ts +3 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DynamicModule } from '@nestjs/common';
|
|
2
2
|
import { CorrelationIdModuleOptions } from './correlation-id.type';
|
|
3
3
|
export declare class CorrelationIdModule {
|
|
4
|
-
forRoot(options?: CorrelationIdModuleOptions): DynamicModule;
|
|
4
|
+
static forRoot(options?: CorrelationIdModuleOptions): DynamicModule;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=correlation-id.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.module.d.ts","sourceRoot":"","sources":["../../../src/correlation-id/correlation-id.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAMvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,qBACa,mBAAmB;IAC9B,
|
|
1
|
+
{"version":3,"file":"correlation-id.module.d.ts","sourceRoot":"","sources":["../../../src/correlation-id/correlation-id.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAMvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,qBACa,mBAAmB;IAC9B,MAAM,CAAC,OAAO,CACZ,OAAO,CAAC,EAAE,0BAA0B,GACnC,aAAa;CAejB"}
|
|
@@ -14,7 +14,7 @@ const nestjs_cls_1 = require("nestjs-cls");
|
|
|
14
14
|
const correlation_id_interceptor_1 = require("./correlation-id.interceptor");
|
|
15
15
|
const correlation_id_service_1 = require("./correlation-id.service");
|
|
16
16
|
let CorrelationIdModule = CorrelationIdModule_1 = class CorrelationIdModule {
|
|
17
|
-
forRoot(options) {
|
|
17
|
+
static forRoot(options) {
|
|
18
18
|
return {
|
|
19
19
|
global: options?.isGlobal ?? false,
|
|
20
20
|
module: CorrelationIdModule_1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"correlation-id.module.js","sourceRoot":"","sources":["../../../src/correlation-id/correlation-id.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,uCAA+C;AAC/C,2CAAuC;AAEvC,6EAAwE;AACxE,qEAAgE;AAIzD,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAC9B,
|
|
1
|
+
{"version":3,"file":"correlation-id.module.js","sourceRoot":"","sources":["../../../src/correlation-id/correlation-id.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,uCAA+C;AAC/C,2CAAuC;AAEvC,6EAAwE;AACxE,qEAAgE;AAIzD,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAC9B,MAAM,CAAC,OAAO,CACZ,OAAoC;QAEpC,OAAO;YACL,MAAM,EAAE,OAAO,EAAE,QAAQ,IAAI,KAAK;YAClC,MAAM,EAAE,qBAAmB;YAC3B,OAAO,EAAE,CAAC,sBAAS,CAAC;YACpB,SAAS,EAAE;gBACT;oBACE,OAAO,EAAE,sBAAe;oBACxB,QAAQ,EAAE,qDAAwB;iBACnC;gBACD,6CAAoB;aACrB;YACD,OAAO,EAAE,CAAC,6CAAoB,CAAC;SAChC,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,mBAAmB,CAkB/B"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,9 @@ import { CorrelationIdModuleOptions } from './correlation-id.type';
|
|
|
8
8
|
|
|
9
9
|
@Module({})
|
|
10
10
|
export class CorrelationIdModule {
|
|
11
|
-
forRoot(
|
|
11
|
+
static forRoot(
|
|
12
|
+
options?: CorrelationIdModuleOptions,
|
|
13
|
+
): DynamicModule {
|
|
12
14
|
return {
|
|
13
15
|
global: options?.isGlobal ?? false,
|
|
14
16
|
module: CorrelationIdModule,
|