nestjs-power-queues 1.0.18 → 1.0.20
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.cjs +4 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -54,10 +54,13 @@ var _QueueService = class _QueueService extends import_power_queues.PowerQueues
|
|
|
54
54
|
this.redisService = redisService;
|
|
55
55
|
this.redis = redisService.redis;
|
|
56
56
|
}
|
|
57
|
+
queueName() {
|
|
58
|
+
return process.env.QUEUE_NAME || String(process.argv[3]);
|
|
59
|
+
}
|
|
57
60
|
async onModuleInit() {
|
|
58
61
|
await this.loadScripts(this.runOnInit);
|
|
59
62
|
if (this.runOnInit) {
|
|
60
|
-
await this.runQueue();
|
|
63
|
+
await this.runQueue(this.queueName());
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
async onModuleDestroy() {
|
package/dist/index.d.cts
CHANGED
|
@@ -17,6 +17,7 @@ declare class QueueService extends PowerQueues implements OnModuleInit, OnModule
|
|
|
17
17
|
readonly runOnInit: boolean;
|
|
18
18
|
redis: IORedisLike;
|
|
19
19
|
constructor(redisService: RedisService);
|
|
20
|
+
queueName(): string;
|
|
20
21
|
onModuleInit(): Promise<void>;
|
|
21
22
|
onModuleDestroy(): Promise<void>;
|
|
22
23
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare class QueueService extends PowerQueues implements OnModuleInit, OnModule
|
|
|
17
17
|
readonly runOnInit: boolean;
|
|
18
18
|
redis: IORedisLike;
|
|
19
19
|
constructor(redisService: RedisService);
|
|
20
|
+
queueName(): string;
|
|
20
21
|
onModuleInit(): Promise<void>;
|
|
21
22
|
onModuleDestroy(): Promise<void>;
|
|
22
23
|
}
|
package/dist/index.js
CHANGED
|
@@ -28,10 +28,13 @@ var _QueueService = class _QueueService extends PowerQueues {
|
|
|
28
28
|
this.redisService = redisService;
|
|
29
29
|
this.redis = redisService.redis;
|
|
30
30
|
}
|
|
31
|
+
queueName() {
|
|
32
|
+
return process.env.QUEUE_NAME || String(process.argv[3]);
|
|
33
|
+
}
|
|
31
34
|
async onModuleInit() {
|
|
32
35
|
await this.loadScripts(this.runOnInit);
|
|
33
36
|
if (this.runOnInit) {
|
|
34
|
-
await this.runQueue();
|
|
37
|
+
await this.runQueue(this.queueName());
|
|
35
38
|
}
|
|
36
39
|
}
|
|
37
40
|
async onModuleDestroy() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-power-queues",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
4
4
|
"description": "High-performance Redis Streams queue integration for NestJS based on power-queues.",
|
|
5
5
|
"author": "ihor-bielchenko",
|
|
6
6
|
"license": "MIT",
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@nestjs-labs/nestjs-ioredis": "^11.0.4",
|
|
89
89
|
"@nestjs/common": "^11.1.8",
|
|
90
|
-
"full-utils": "^3.0.
|
|
91
|
-
"nestjs-power-redis": "^1.0.
|
|
92
|
-
"power-queues": "^2.
|
|
90
|
+
"full-utils": "^3.0.9",
|
|
91
|
+
"nestjs-power-redis": "^1.0.15",
|
|
92
|
+
"power-queues": "^2.1.1"
|
|
93
93
|
}
|
|
94
94
|
}
|