@venturialstd/slack 0.1.17 → 0.1.18
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.
|
@@ -11,7 +11,7 @@ exports.SlackModule = void 0;
|
|
|
11
11
|
const common_1 = require("@nestjs/common");
|
|
12
12
|
const slack_client_1 = require("./clients/slack.client");
|
|
13
13
|
let SlackModule = SlackModule_1 = class SlackModule {
|
|
14
|
-
static
|
|
14
|
+
static forRootAsync(loggerClass) {
|
|
15
15
|
return {
|
|
16
16
|
module: SlackModule_1,
|
|
17
17
|
providers: [
|
|
@@ -22,10 +22,10 @@ let SlackModule = SlackModule_1 = class SlackModule {
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
provide: 'SLACK_BOT_TOKEN',
|
|
25
|
-
useValue:
|
|
25
|
+
useValue: null,
|
|
26
26
|
},
|
|
27
27
|
],
|
|
28
|
-
exports: [slack_client_1.SlackClient
|
|
28
|
+
exports: [slack_client_1.SlackClient],
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slack.module.js","sourceRoot":"","sources":["../../slack.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA6D;AAE7D,yDAAqD;AAG9C,IAAM,WAAW,mBAAjB,MAAM,WAAW;IACtB,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"slack.module.js","sourceRoot":"","sources":["../../slack.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA6D;AAE7D,yDAAqD;AAG9C,IAAM,WAAW,mBAAjB,MAAM,WAAW;IACtB,MAAM,CAAC,YAAY,CAAC,WAAsB;QACxC,OAAO;YACL,MAAM,EAAE,aAAW;YACnB,SAAS,EAAE;gBACT,0BAAW;gBACX;oBACE,OAAO,EAAE,cAAc;oBACvB,QAAQ,EAAE,WAAW;iBACtB;gBACD;oBACE,OAAO,EAAE,iBAAiB;oBAC1B,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,OAAO,EAAE,CAAC,0BAAW,CAAC;SACvB,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,kCAAW;sBAAX,WAAW;IADvB,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,WAAW,CAkBvB","sourcesContent":["import { DynamicModule, Module, Type } from '@nestjs/common';\r\n\r\nimport { SlackClient } from './clients/slack.client';\r\n\r\n@Module({})\r\nexport class SlackModule {\r\n static forRootAsync(loggerClass: Type<any>): DynamicModule {\r\n return {\r\n module: SlackModule,\r\n providers: [\r\n SlackClient,\r\n {\r\n provide: 'SLACK_LOGGER',\r\n useClass: loggerClass,\r\n },\r\n {\r\n provide: 'SLACK_BOT_TOKEN',\r\n useValue: null, // Será inyectado después\r\n },\r\n ],\r\n exports: [SlackClient],\r\n };\r\n }\r\n}\r\n"]}
|