@duvdu-v1/duvdu 1.1.269 → 1.1.270

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/build/index.d.ts CHANGED
@@ -97,3 +97,4 @@ export * from './events/base-publisher';
97
97
  export * from './events/subject';
98
98
  export * from './events/topic-notification.event';
99
99
  export * from './config/winston';
100
+ export * from './middlewares/pull.connection';
package/build/index.js CHANGED
@@ -115,3 +115,4 @@ __exportStar(require("./events/base-publisher"), exports);
115
115
  __exportStar(require("./events/subject"), exports);
116
116
  __exportStar(require("./events/topic-notification.event"), exports);
117
117
  __exportStar(require("./config/winston"), exports);
118
+ __exportStar(require("./middlewares/pull.connection"), exports);
@@ -0,0 +1,3 @@
1
+ import IORedis from 'ioredis';
2
+ declare const bullRedis: IORedis;
3
+ export { bullRedis };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ var _a, _b, _c;
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.bullRedis = void 0;
8
+ // bullmq-redis.ts
9
+ const ioredis_1 = __importDefault(require("ioredis"));
10
+ const bullRedis = new ioredis_1.default({
11
+ host: ((_b = (_a = process.env.REDIS_HOST) === null || _a === void 0 ? void 0 : _a.split('://')[1]) === null || _b === void 0 ? void 0 : _b.split(':')[0]) || 'localhost',
12
+ port: parseInt(((_c = process.env.REDIS_HOST) === null || _c === void 0 ? void 0 : _c.split(':').pop()) || '6379'),
13
+ password: process.env.REDIS_PASS,
14
+ maxRetriesPerRequest: null,
15
+ enableReadyCheck: false,
16
+ retryStrategy: (times) => {
17
+ if (times > 3)
18
+ return null;
19
+ return Math.min(times * 100, 3000);
20
+ },
21
+ });
22
+ exports.bullRedis = bullRedis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.269",
3
+ "version": "1.1.270",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [
@@ -33,6 +33,7 @@
33
33
  "express-async-errors": "^3.1.1",
34
34
  "express-session": "^1.18.0",
35
35
  "express-validator": "^7.0.1",
36
+ "ioredis": "^5.6.1",
36
37
  "jsonwebtoken": "^9.0.2",
37
38
  "mongoose": "^8.0.4",
38
39
  "multer": "^1.4.5-lts.1",