@wraps.dev/cli 2.20.4 → 2.20.5
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/cli.js
CHANGED
|
@@ -27798,11 +27798,12 @@ ${pc35.bold("SMTP Credentials for Legacy Systems")}
|
|
|
27798
27798
|
EventType.DELIVERY_DELAY,
|
|
27799
27799
|
EventType.SUBSCRIPTION
|
|
27800
27800
|
];
|
|
27801
|
-
const
|
|
27802
|
-
|
|
27803
|
-
if (evt === EventType.
|
|
27801
|
+
const trackingEnabled = d.trackingConfig != null ? d.trackingConfig : d.purpose === "transactional" || d.purpose === "notifications" ? { opens: false, clicks: false } : { opens: true, clicks: true };
|
|
27802
|
+
const matchingEventTypes = allEvents.filter((evt) => {
|
|
27803
|
+
if (evt === EventType.OPEN) return trackingEnabled.opens;
|
|
27804
|
+
if (evt === EventType.CLICK) return trackingEnabled.clicks;
|
|
27804
27805
|
return true;
|
|
27805
|
-
})
|
|
27806
|
+
});
|
|
27806
27807
|
await progress.execute(
|
|
27807
27808
|
`Adding EventBridge destination for ${d.domain}`,
|
|
27808
27809
|
async () => {
|