@go-mailer/jarvis 10.5.0 → 10.5.1

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.
@@ -2,6 +2,7 @@ class QueueThrottler {
2
2
  constructor (concurrency = 25) {
3
3
  this.concurrency = concurrency
4
4
  this.isEmpty = true
5
+ this.isFull = false
5
6
  this.tasks = new Map()
6
7
  }
7
8
 
@@ -10,6 +11,7 @@ class QueueThrottler {
10
11
 
11
12
  this.tasks.set(key, value)
12
13
  this.isEmpty = false
14
+ this.isFull = this.tasks.size === this.concurrency
13
15
  }
14
16
 
15
17
  getTask (key) {
@@ -23,6 +25,7 @@ class QueueThrottler {
23
25
  removeTask (key) {
24
26
  this.tasks.delete(key)
25
27
  this.isEmpty = this.tasks.size === 0
28
+ this.isFull = false
26
29
  }
27
30
  }
28
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-mailer/jarvis",
3
- "version": "10.5.0",
3
+ "version": "10.5.1",
4
4
  "main": "index.js",
5
5
  "repository": "git@github.com:go-mailer-ltd/jarvis-node.git",
6
6
  "author": "Nathan Oguntuberu <nateoguns.work@gmail.com>",