hookwright 1.12.0 → 1.12.1

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/cli.js +4 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -24,7 +24,7 @@ var init_package = __esm({
24
24
  "package.json"() {
25
25
  package_default = {
26
26
  name: "hookwright",
27
- version: "1.12.0",
27
+ version: "1.12.1",
28
28
  description: "Build real, signed e-commerce webhooks from a live Shopify catalogue \u2014 interactive terminal UI, no backend",
29
29
  keywords: [
30
30
  "webhook",
@@ -1175,7 +1175,6 @@ var CART_FIELDS = [
1175
1175
  { source: "line_items[].title", target: "product_details", required: true, note: "the first PAID line wins; freebies rank last" },
1176
1176
  { source: "line_items[].title", target: "product_name", note: 'the featured line alone, without the "and N more"' },
1177
1177
  { source: "line_items[].image", target: "product_image_url", note: "looked up from product_id when the line has none" },
1178
- { source: "\u2014 (store domain + handle)", target: "product_url", note: "resolved, not sent" },
1179
1178
  { source: "\u2014 (store domain + line ids)", target: "cart_link", note: "resolved, not sent" },
1180
1179
  { source: "\u2014 (company shopify integration)", target: "store_url", note: "resolved, not sent" },
1181
1180
  { source: "line_items[].price", target: "\u2014 (ranking only)", note: "a zero price marks the line a freebie" },
@@ -1578,7 +1577,7 @@ var COLLECTION_VIEWED_FIELDS = [
1578
1577
  { source: "payload.collection_viewed.handle", target: "payload.collection_viewed.handle", required: true, note: "the url is built from this" },
1579
1578
  { source: "payload.collection_viewed.image", target: "payload.collection_viewed.image" },
1580
1579
  { source: "payload.collection_viewed.collection_id", target: "payload.collection_viewed.collection_id" },
1581
- { source: "\u2014 (store domain + handle)", target: "collection_url", note: "derived, not sent" }
1580
+ { source: "store.shopify_domain / store.main_domain", target: "collection_url", note: "derived: {domain}/collections/{handle}" }
1582
1581
  ];
1583
1582
  var PRODUCT_VIEWED_FIELDS = [
1584
1583
  ...ENVELOPE_FIELDS,
@@ -1586,7 +1585,7 @@ var PRODUCT_VIEWED_FIELDS = [
1586
1585
  { source: "payload.product_viewed.handle", target: "payload.product_viewed.handle", required: true, note: "the url is built from this" },
1587
1586
  { source: "payload.product_viewed.image", target: "payload.product_viewed.image" },
1588
1587
  { source: "payload.product_viewed.product_id", target: "payload.product_viewed.product_id" },
1589
- { source: "\u2014 (store domain + handle)", target: "product_url", note: "derived, not sent" }
1588
+ { source: "store.shopify_domain / store.main_domain", target: "product_url", note: "derived: {domain}/products/{handle}" }
1590
1589
  ];
1591
1590
  var FIELD_MAPS3 = {
1592
1591
  ABANDONED_CHECKOUT: fieldMap5,
@@ -1649,7 +1648,7 @@ function buildPayload5(ctx) {
1649
1648
  collection_id: Number(collection?.id) || 0,
1650
1649
  name: collection?.title ?? "",
1651
1650
  handle: collection?.handle ?? "",
1652
- image: collection?.image?.src ?? "",
1651
+ image: collection?.image ?? "",
1653
1652
  timestamp: now.toISOString()
1654
1653
  }
1655
1654
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hookwright",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Build real, signed e-commerce webhooks from a live Shopify catalogue — interactive terminal UI, no backend",
5
5
  "keywords": [
6
6
  "webhook",