easywork-common-lib 1.0.227 → 1.0.230
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/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/index.d.ts +2 -0
- package/dist/modules/index.js +19 -0
- package/dist/modules/index.js.map +1 -0
- package/dist/modules/notifier/notifier.module.d.ts +4 -0
- package/dist/modules/notifier/notifier.module.js +50 -0
- package/dist/modules/notifier/notifier.module.js.map +1 -0
- package/package.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./entities"), exports);
|
|
18
18
|
__exportStar(require("./common"), exports);
|
|
19
|
+
__exportStar(require("./modules"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,4CAA0B"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./notifier/notifier.service"), exports);
|
|
18
|
+
__exportStar(require("./notifier/notifier.module"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAC5C,6DAA2C"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
var NotifierModule_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.NotifierModule = void 0;
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const nestjs_rabbitmq_1 = require("@golevelup/nestjs-rabbitmq");
|
|
13
|
+
const notifier_service_1 = require("./notifier.service");
|
|
14
|
+
let NotifierModule = NotifierModule_1 = class NotifierModule {
|
|
15
|
+
static register(amqpUri, exchangeName, prefetchCount) {
|
|
16
|
+
return {
|
|
17
|
+
module: NotifierModule_1,
|
|
18
|
+
imports: [
|
|
19
|
+
nestjs_rabbitmq_1.RabbitMQModule.forRootAsync(nestjs_rabbitmq_1.RabbitMQModule, {
|
|
20
|
+
useFactory: () => ({
|
|
21
|
+
exchanges: [
|
|
22
|
+
{
|
|
23
|
+
name: exchangeName,
|
|
24
|
+
type: "topic",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
uri: amqpUri,
|
|
28
|
+
connectionInitOptions: { wait: true, reject: true, timeout: 3000 },
|
|
29
|
+
channels: {
|
|
30
|
+
"channel-1": {
|
|
31
|
+
prefetchCount: prefetchCount,
|
|
32
|
+
default: true,
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}),
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
providers: [notifier_service_1.NotifierService],
|
|
39
|
+
exports: [notifier_service_1.NotifierService],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.NotifierModule = NotifierModule;
|
|
44
|
+
exports.NotifierModule = NotifierModule = NotifierModule_1 = __decorate([
|
|
45
|
+
(0, common_1.Module)({
|
|
46
|
+
providers: [notifier_service_1.NotifierService],
|
|
47
|
+
exports: [notifier_service_1.NotifierService],
|
|
48
|
+
})
|
|
49
|
+
], NotifierModule);
|
|
50
|
+
//# sourceMappingURL=notifier.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notifier.module.js","sourceRoot":"","sources":["../../../src/modules/notifier/notifier.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAuD;AACvD,gEAA4D;AAC5D,yDAAqD;AAM9C,IAAM,cAAc,sBAApB,MAAM,cAAc;IACvB,MAAM,CAAC,QAAQ,CAAC,OAAe,EAAE,YAAoB,EAAE,aAAqB;QACxE,OAAO;YACH,MAAM,EAAE,gBAAc;YACtB,OAAO,EAAE;gBACL,gCAAc,CAAC,YAAY,CAAC,gCAAc,EAAE;oBACxC,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;wBACf,SAAS,EAAE;4BACP;gCACI,IAAI,EAAE,YAAY;gCAClB,IAAI,EAAE,OAAO;6BAChB;yBACJ;wBACD,GAAG,EAAE,OAAO;wBACZ,qBAAqB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;wBAClE,QAAQ,EAAE;4BACN,WAAW,EAAE;gCACT,aAAa,EAAE,aAAa;gCAC5B,OAAO,EAAE,IAAI;6BAChB;yBACJ;qBACJ,CAAC;iBACL,CAAC;aACL;YACD,SAAS,EAAE,CAAC,kCAAe,CAAC;YAC5B,OAAO,EAAE,CAAC,kCAAe,CAAC;SAC7B,CAAC;IACN,CAAC;CACJ,CAAA;AA5BY,wCAAc;yBAAd,cAAc;IAJ1B,IAAA,eAAM,EAAC;QACJ,SAAS,EAAE,CAAC,kCAAe,CAAC;QAC5B,OAAO,EAAE,CAAC,kCAAe,CAAC;KAC7B,CAAC;GACW,cAAc,CA4B1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.230",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@rubiin/tsconfig": "^1.1.2",
|
|
35
35
|
"@types/node": "^20.12.12",
|
|
36
|
+
"cpx": "^1.5.0",
|
|
36
37
|
"ts-loader": "^9.5.1",
|
|
37
38
|
"typescript": "^5.4.5"
|
|
38
39
|
}
|