@eclesia/indexer-engine 2.4.0 → 2.4.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.
@@ -26,7 +26,7 @@ class PromiseQueue {
26
26
  const nextVal = new Promise((resolve, _reject) => {
27
27
  this.enqueuer = resolve;
28
28
  });
29
- this.items.unshift(nextVal);
29
+ this.items.push(nextVal);
30
30
  if (this.size() > this.batchSize) {
31
31
  this.continuePromise = new Promise((resolve, _reject) => {
32
32
  this.batcher = resolve;
@@ -48,7 +48,7 @@ class PromiseQueue {
48
48
  this.items = [nextVal];
49
49
  }
50
50
  dequeue() {
51
- const item = this.items.pop();
51
+ const item = this.items.shift();
52
52
  if (this.size() <= this.batchSize) {
53
53
  this.batcher(true);
54
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclesia/indexer-engine",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Core eclesia indexer engine",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",