hookwright 1.12.1 → 1.12.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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -1
  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.1",
27
+ version: "1.12.2",
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",
@@ -381,6 +381,7 @@ function normalizeProduct(product) {
381
381
  title: v.title,
382
382
  sku: v.sku || "",
383
383
  price: v.price != null ? Number(v.price) : null,
384
+ compareAtPrice: v.compare_at_price != null ? Number(v.compare_at_price) : null,
384
385
  available: v.inventory_quantity == null ? true : v.inventory_quantity > 0,
385
386
  imageId: v.image_id ? String(v.image_id) : null
386
387
  }));
@@ -3032,6 +3033,15 @@ async function runAll({ payload, body, provider, config, checkImageUrls = true,
3032
3033
  ok: missing.length === 0,
3033
3034
  detail: missing.length === 0 ? `all ${cov.length} mapped fields resolved` : `missing: ${missing.map((m) => m.field).join(", ")}`
3034
3035
  });
3036
+ const empty = cov.filter((c2) => c2.status === "empty");
3037
+ if (empty.length) {
3038
+ checks.push({
3039
+ name: "Empty optional fields",
3040
+ ok: true,
3041
+ warn: true,
3042
+ detail: `${empty.map((e) => e.maps_to).join(", ")} \u2014 a journey param bound to one of these needs a fallback, or the send fails`
3043
+ });
3044
+ }
3035
3045
  return {
3036
3046
  checks,
3037
3047
  coverage: cov,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hookwright",
3
- "version": "1.12.1",
3
+ "version": "1.12.2",
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",