av6-core 1.7.8 → 1.7.9

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.js CHANGED
@@ -3970,10 +3970,13 @@ var NotificationService = class {
3970
3970
  if (it.ok && tpl.webHookUrl) {
3971
3971
  const res = await fetch(tpl.webHookUrl, {
3972
3972
  method: "POST",
3973
+ headers: {
3974
+ "Content-Type": "application/json"
3975
+ },
3973
3976
  body: JSON.stringify({ id: deliveryItem.id })
3974
3977
  });
3975
3978
  if (!res.ok) {
3976
- this.logger.error("[NotificationService] WhatsApp webhook failed", res.statusText);
3979
+ this.logger.error("[NotificationService] WhatsApp webhook failed", res.status, res.statusText);
3977
3980
  }
3978
3981
  }
3979
3982
  }
package/dist/index.mjs CHANGED
@@ -3917,10 +3917,13 @@ var NotificationService = class {
3917
3917
  if (it.ok && tpl.webHookUrl) {
3918
3918
  const res = await fetch(tpl.webHookUrl, {
3919
3919
  method: "POST",
3920
+ headers: {
3921
+ "Content-Type": "application/json"
3922
+ },
3920
3923
  body: JSON.stringify({ id: deliveryItem.id })
3921
3924
  });
3922
3925
  if (!res.ok) {
3923
- this.logger.error("[NotificationService] WhatsApp webhook failed", res.statusText);
3926
+ this.logger.error("[NotificationService] WhatsApp webhook failed", res.status, res.statusText);
3924
3927
  }
3925
3928
  }
3926
3929
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "av6-core",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",