@gem-sdk/adapter-shopify
Advanced tools
Comparing version 1.58.0 to 1.63.0
@@ -15,6 +15,6 @@ 'use strict'; | ||
} | ||
priceV2 { | ||
price { | ||
...MoneyV2Select | ||
} | ||
compareAtPriceV2 { | ||
compareAtPrice { | ||
...MoneyV2Select | ||
@@ -39,3 +39,3 @@ } | ||
const CartLineSelect = ` | ||
fragment CartLineSelect on CartLine { | ||
fragment CartLineSelect on BaseCartLine { | ||
id | ||
@@ -42,0 +42,0 @@ quantity |
'use strict'; | ||
const normalizeCartProductVariant = (variant)=>{ | ||
const { compareAtPriceV2, priceV2, weight, weightUnit, id, sku, image } = variant; | ||
const { compareAtPrice, price, weight, weightUnit, id, sku, image } = variant; | ||
return { | ||
@@ -11,4 +11,4 @@ id, | ||
name: variant.title, | ||
listPrice: compareAtPriceV2?.amount ? +compareAtPriceV2?.amount : 0, | ||
price: +priceV2.amount, | ||
listPrice: compareAtPrice?.amount ? +compareAtPrice?.amount : 0, | ||
price: +price.amount, | ||
weight: { | ||
@@ -15,0 +15,0 @@ value: weight ?? 0, |
@@ -13,6 +13,6 @@ /* eslint-disable */ const CartProductVariantSelect = ` | ||
} | ||
priceV2 { | ||
price { | ||
...MoneyV2Select | ||
} | ||
compareAtPriceV2 { | ||
compareAtPrice { | ||
...MoneyV2Select | ||
@@ -37,3 +37,3 @@ } | ||
const CartLineSelect = ` | ||
fragment CartLineSelect on CartLine { | ||
fragment CartLineSelect on BaseCartLine { | ||
id | ||
@@ -40,0 +40,0 @@ quantity |
const normalizeCartProductVariant = (variant)=>{ | ||
const { compareAtPriceV2, priceV2, weight, weightUnit, id, sku, image } = variant; | ||
const { compareAtPrice, price, weight, weightUnit, id, sku, image } = variant; | ||
return { | ||
@@ -9,4 +9,4 @@ id, | ||
name: variant.title, | ||
listPrice: compareAtPriceV2?.amount ? +compareAtPriceV2?.amount : 0, | ||
price: +priceV2.amount, | ||
listPrice: compareAtPrice?.amount ? +compareAtPrice?.amount : 0, | ||
price: +price.amount, | ||
weight: { | ||
@@ -13,0 +13,0 @@ value: weight ?? 0, |
{ | ||
"name": "@gem-sdk/adapter-shopify", | ||
"version": "1.58.0", | ||
"version": "1.63.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192537
5467