@reactionary/feeds 0.10.44 → 0.10.45

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/cli.cjs +5 -5
  2. package/package.json +9 -9
package/cli.cjs CHANGED
@@ -137599,7 +137599,7 @@ function parseMedusaCostBreakdown(remote) {
137599
137599
  const shippingTotal = remote.shipping_total || 0;
137600
137600
  const taxTotal = remote.tax_total || 0;
137601
137601
  const discountTotal = remote.discount_total || 0;
137602
- const subtotal = remote.subtotal || 0;
137602
+ const itemSubtotal = remote.item_subtotal || 0;
137603
137603
  const currency = (remote.currency_code || "EUR").toUpperCase();
137604
137604
  return {
137605
137605
  totalTax: {
@@ -137619,7 +137619,7 @@ function parseMedusaCostBreakdown(remote) {
137619
137619
  currency
137620
137620
  },
137621
137621
  totalProductPrice: {
137622
- value: subtotal,
137622
+ value: itemSubtotal,
137623
137623
  currency
137624
137624
  },
137625
137625
  grandTotal: {
@@ -160767,7 +160767,7 @@ var init_product_recommendations_capability4 = __esm({
160767
160767
  }
160768
160768
  parseVariant(variant, product) {
160769
160769
  const img = ImageSchema.parse({
160770
- sourceUrl: product.images?.[0].url ?? "",
160770
+ sourceUrl: product.images?.[0]?.url ?? "",
160771
160771
  altText: product.title || void 0
160772
160772
  });
160773
160773
  return ProductSearchResultItemVariantSchema.parse({
@@ -162579,7 +162579,7 @@ var init_product_associations_factory5 = __esm({
162579
162579
  }
162580
162580
  parseVariant(_context, variant, product) {
162581
162581
  const img = ImageSchema.parse({
162582
- sourceUrl: product.images?.[0].url ?? "",
162582
+ sourceUrl: product.images?.[0]?.url ?? "",
162583
162583
  altText: product.title || void 0
162584
162584
  });
162585
162585
  return ProductSearchResultItemVariantSchema.parse({
@@ -162647,7 +162647,7 @@ var init_product_search_factory6 = __esm({
162647
162647
  }
162648
162648
  parseVariant(_context, variant, product) {
162649
162649
  const img = ImageSchema.parse({
162650
- sourceUrl: product.images?.[0].url ?? "",
162650
+ sourceUrl: product.images?.[0]?.url ?? "",
162651
162651
  altText: product.title || void 0
162652
162652
  });
162653
162653
  return ProductSearchResultItemVariantSchema.parse({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reactionary/feeds",
3
- "version": "0.10.44",
3
+ "version": "0.10.45",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "types": "./src/index.d.ts",
@@ -12,14 +12,14 @@
12
12
  "url": "git+https://github.com/Solteq/reactionary.git"
13
13
  },
14
14
  "dependencies": {
15
- "@reactionary/algolia": "0.10.44",
16
- "@reactionary/commercetools": "0.10.44",
17
- "@reactionary/core": "0.10.44",
18
- "@reactionary/fake": "0.10.44",
19
- "@reactionary/magento": "0.10.44",
20
- "@reactionary/medusa": "0.10.44",
21
- "@reactionary/meilisearch": "0.10.44",
22
- "@reactionary/unomi": "0.10.44",
15
+ "@reactionary/algolia": "0.10.45",
16
+ "@reactionary/commercetools": "0.10.45",
17
+ "@reactionary/core": "0.10.45",
18
+ "@reactionary/fake": "0.10.45",
19
+ "@reactionary/magento": "0.10.45",
20
+ "@reactionary/medusa": "0.10.45",
21
+ "@reactionary/meilisearch": "0.10.45",
22
+ "@reactionary/unomi": "0.10.45",
23
23
  "commander": "^15.0.0",
24
24
  "dotenv": "^17.2.2",
25
25
  "sitemap": "^9.0.1",