feeef 0.11.1 → 0.11.2

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/build/index.js CHANGED
@@ -4800,9 +4800,10 @@ var generatePublicStoreIntegrationOrderdz = (orderdz) => {
4800
4800
  };
4801
4801
  var generatePublicStoreIntegrationWebhooks = (webhooks) => {
4802
4802
  if (!webhooks) return null;
4803
- const activeWebhooks = webhooks.webhooks.filter((webhook) => webhook.active);
4803
+ const webhookList = webhooks.webhooks ?? [];
4804
+ const activeWebhooks = webhookList.filter((webhook) => webhook.active);
4804
4805
  return {
4805
- webhookCount: webhooks.webhooks.length,
4806
+ webhookCount: webhookList.length,
4806
4807
  activeWebhookCount: activeWebhooks.length,
4807
4808
  active: webhooks.active,
4808
4809
  webhookUrls: activeWebhooks.map((webhook) => webhook.url)