@swell/apps-sdk 1.0.178 → 1.0.179

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.
package/dist/index.mjs CHANGED
@@ -13011,7 +13011,7 @@ function ShopifyCustomer(instance, account) {
13011
13011
  accepts_marketing: defer(() => account.email_optin),
13012
13012
  addresses: deferWith(
13013
13013
  account.addresses,
13014
- (addresses) => addresses.results.map(
13014
+ (addresses) => (addresses?.results || []).map(
13015
13015
  (address) => ShopifyAddress(instance, address)
13016
13016
  )
13017
13017
  ),
@@ -13047,7 +13047,9 @@ function ShopifyCustomer(instance, account) {
13047
13047
  name: defer(() => account.name),
13048
13048
  orders: deferWith(
13049
13049
  account.orders,
13050
- (orders) => orders.results.map((order) => ShopifyOrder(instance, order))
13050
+ (orders) => (orders?.results || []).map(
13051
+ (order) => ShopifyOrder(instance, order)
13052
+ )
13051
13053
  ),
13052
13054
  orders_count: defer(() => account.order_count),
13053
13055
  payment_methods: [],