@peopl-health/nexus 3.9.7 → 3.9.8

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.
@@ -20,7 +20,7 @@ class TwilioMessageAdapter extends MessageAdapter {
20
20
  origin: 'patient',
21
21
  processed: false,
22
22
  pushName: rawMessage.ProfileName || null,
23
- timestamp: Date.now(),
23
+ timestamp: new Date(),
24
24
  body,
25
25
  media,
26
26
  interactive,
package/lib/index.js CHANGED
@@ -179,7 +179,9 @@ class Nexus {
179
179
  throw new Error('Nexus not initialized. Call initialize() first.');
180
180
  }
181
181
 
182
- const normalizedMessage = await this.provider.normalize(rawMessage);
182
+ const provider = this.messaging.getProvider();
183
+
184
+ const normalizedMessage = await provider.normalize(rawMessage);
183
185
  const messageData = await this.messageParser.parseMessage(normalizedMessage);
184
186
 
185
187
  return await this.messaging.processIncomingMessage(messageData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@peopl-health/nexus",
3
- "version": "3.9.7",
3
+ "version": "3.9.8",
4
4
  "description": "Core messaging and assistant library for WhatsApp communication platforms",
5
5
  "keywords": [
6
6
  "whatsapp",