@wraps.dev/cli 2.20.3 → 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
@@ -22603,7 +22603,7 @@ async function init2(options) {
22603
22603
  clack26.log.info(`Created: ${existingConnection.timestamp}`);
22604
22604
  const domainHint = options.domain ? ` ${options.domain}` : " <domain>";
22605
22605
  clack26.log.info(
22606
- `To add another sending domain: ${pc28.cyan(`wraps email domain add${domainHint}`)}`
22606
+ `To add another sending domain: ${pc28.cyan(`wraps email domains add${domainHint}`)}`
22607
22607
  );
22608
22608
  clack26.log.info(`Use ${pc28.cyan("wraps status")} to view current setup`);
22609
22609
  clack26.log.info(`Use ${pc28.cyan("wraps upgrade")} to add more features`);
@@ -27798,11 +27798,12 @@ ${pc35.bold("SMTP Credentials for Legacy Systems")}
27798
27798
  EventType.DELIVERY_DELAY,
27799
27799
  EventType.SUBSCRIPTION
27800
27800
  ];
27801
- const matchingEventTypes = d.trackingConfig != null ? allEvents.filter((evt) => {
27802
- if (evt === EventType.OPEN) return d.trackingConfig.opens;
27803
- if (evt === EventType.CLICK) return d.trackingConfig.clicks;
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
- }) : [...allEvents];
27806
+ });
27806
27807
  await progress.execute(
27807
27808
  `Adding EventBridge destination for ${d.domain}`,
27808
27809
  async () => {