@wrangled/cli 0.3.156 → 0.3.157

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.
Files changed (2) hide show
  1. package/dist/main.js +3 -1
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -4179,7 +4179,9 @@ function winnersAdLines(ad, currency, words) {
4179
4179
  const goal = onSales ? words.primary : (words.fallback ?? FIRST_LEAD);
4180
4180
  const [costPer, number] = onSales ? [n.costPerSale, n.sales] : [n.costPerSignup, n.signups];
4181
4181
  const cost = costPer === null ? `no ${goal.many}` : `${money(costPer, currency)} per ${goal.one}`;
4182
- const name = [ad.name ?? `Ad ${ad.adId}`, ad.sku && `[${ad.sku}]`, ad.campaignName && `(${ad.campaignName})`].filter(Boolean).join(" ");
4182
+ const merged = ad.adIds !== undefined && ad.adIds.length > 1 ? ad.adIds.length : 0;
4183
+ const title = merged > 0 ? `${ad.creativeName ?? ad.name} (${merged} ads)` : (ad.name ?? `Ad ${ad.adId}`);
4184
+ const name = [title, ad.sku && `[${ad.sku}]`, ad.campaignName && `(${ad.campaignName})`].filter(Boolean).join(" ");
4183
4185
  const tags = Object.entries(ad.tags).map(([field, value]) => `${field}: ${value}`).join(", ");
4184
4186
  const count = number !== null && countOf(number, goal);
4185
4187
  const facebook = n.facebookResults == null ? "" : `, Facebook counts ${tenths(n.facebookResults)}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wrangled/cli",
3
- "version": "0.3.156",
3
+ "version": "0.3.157",
4
4
  "description": "Command-line access to your marketing data warehouse, for people and coding agents",
5
5
  "type": "module",
6
6
  "bin": {