power-queues 2.1.5 → 2.1.6

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 CHANGED
@@ -346,7 +346,7 @@ var PowerQueues = class extends import_power_redis.PowerRedis {
346
346
  for (let key in filtered) {
347
347
  const filteredTasks = filtered[key];
348
348
  const keySplit = key.split(":");
349
- const attempt = Number(keySplit[0]);
349
+ const attempt = Number(keySplit[0] || 0);
350
350
  const job = String(keySplit[2]);
351
351
  if (!(attempt >= this.retryCount - 1)) {
352
352
  await this.addTasks(queueName, filteredTasks, {
package/dist/index.js CHANGED
@@ -329,7 +329,7 @@ var PowerQueues = class extends PowerRedis {
329
329
  for (let key in filtered) {
330
330
  const filteredTasks = filtered[key];
331
331
  const keySplit = key.split(":");
332
- const attempt = Number(keySplit[0]);
332
+ const attempt = Number(keySplit[0] || 0);
333
333
  const job = String(keySplit[2]);
334
334
  if (!(attempt >= this.retryCount - 1)) {
335
335
  await this.addTasks(queueName, filteredTasks, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "power-queues",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "High-performance Redis Streams queue for Node.js with Lua-powered bulk XADD, idempotent workers, heartbeat locks, stuck-task recovery, retries, DLQ, and distributed processing.",
5
5
  "author": "ihor-bielchenko",
6
6
  "license": "MIT",