feeef 0.11.0 → 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 +5 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -4733,7 +4733,7 @@ var generatePublicStoreIntegrationCustomFields = (customFields) => {
|
|
|
4733
4733
|
var generatePublicStoreIntegrationMetaPixel = (metaPixel) => {
|
|
4734
4734
|
if (!metaPixel) return null;
|
|
4735
4735
|
return {
|
|
4736
|
-
pixels: metaPixel.pixels.map((pixel) => ({
|
|
4736
|
+
pixels: (metaPixel.pixels || []).map((pixel) => ({
|
|
4737
4737
|
id: pixel.id
|
|
4738
4738
|
})),
|
|
4739
4739
|
active: metaPixel.active,
|
|
@@ -4745,7 +4745,7 @@ var generatePublicStoreIntegrationMetaPixel = (metaPixel) => {
|
|
|
4745
4745
|
var generatePublicStoreIntegrationTiktokPixel = (tiktokPixel) => {
|
|
4746
4746
|
if (!tiktokPixel) return null;
|
|
4747
4747
|
return {
|
|
4748
|
-
pixels: tiktokPixel.pixels.map((pixel) => ({
|
|
4748
|
+
pixels: (tiktokPixel.pixels || []).map((pixel) => ({
|
|
4749
4749
|
id: pixel.id
|
|
4750
4750
|
})),
|
|
4751
4751
|
active: tiktokPixel.active,
|
|
@@ -4800,9 +4800,10 @@ var generatePublicStoreIntegrationOrderdz = (orderdz) => {
|
|
|
4800
4800
|
};
|
|
4801
4801
|
var generatePublicStoreIntegrationWebhooks = (webhooks) => {
|
|
4802
4802
|
if (!webhooks) return null;
|
|
4803
|
-
const
|
|
4803
|
+
const webhookList = webhooks.webhooks ?? [];
|
|
4804
|
+
const activeWebhooks = webhookList.filter((webhook) => webhook.active);
|
|
4804
4805
|
return {
|
|
4805
|
-
webhookCount:
|
|
4806
|
+
webhookCount: webhookList.length,
|
|
4806
4807
|
activeWebhookCount: activeWebhooks.length,
|
|
4807
4808
|
active: webhooks.active,
|
|
4808
4809
|
webhookUrls: activeWebhooks.map((webhook) => webhook.url)
|