@hastehaul/common 2.0.8 → 2.0.10

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.
@@ -54,7 +54,7 @@ class NatsConsumer {
54
54
  ack_policy: nats_1.AckPolicy.Explicit,
55
55
  ack_wait: this.ackWait,
56
56
  durable_name: this.durableName,
57
- replay_policy: nats_1.ReplayPolicy.Instant,
57
+ replay_policy: nats_1.ReplayPolicy.Original,
58
58
  filter_subject: this.subject,
59
59
  };
60
60
  }
@@ -87,12 +87,12 @@ class NatsConsumer {
87
87
  yield this.processMessage(parsedMessage, msg).then(() => { inFlight--; }).catch(() => { inFlight--; });
88
88
  }
89
89
  else {
90
- console.log("PENDING MESSAGES: ", pendingMessages);
90
+ console.log("1 PENDING MESSAGES: ", pendingMessages);
91
91
  pendingMessages.push(msg); // Store the message to be processed later
92
92
  }
93
93
  // Check if there are pending messages that can be processed
94
94
  while (pendingMessages.length && inFlight < this.maxConcurrentMessages) {
95
- console.log("PENDING MESSAGES: ", pendingMessages);
95
+ console.log("2 PENDING MESSAGES: ", pendingMessages);
96
96
  const pendingMessage = pendingMessages.shift();
97
97
  const parsedMessage = this.parsedMessage(pendingMessage);
98
98
  inFlight++;
@@ -32,5 +32,6 @@ export interface CustomerOtpRequestEvent {
32
32
  phoneUniqueId: string;
33
33
  hashedOtp: string;
34
34
  otp: string;
35
+ deviceType: string;
35
36
  };
36
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.0.8",
3
+ "version": "2.0.10",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",