@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.cjs CHANGED
@@ -13160,7 +13160,7 @@ function ShopifyCustomer(instance, account) {
13160
13160
  accepts_marketing: defer(() => account.email_optin),
13161
13161
  addresses: deferWith(
13162
13162
  account.addresses,
13163
- (addresses) => addresses.results.map(
13163
+ (addresses) => (addresses?.results || []).map(
13164
13164
  (address) => ShopifyAddress(instance, address)
13165
13165
  )
13166
13166
  ),
@@ -13196,7 +13196,9 @@ function ShopifyCustomer(instance, account) {
13196
13196
  name: defer(() => account.name),
13197
13197
  orders: deferWith(
13198
13198
  account.orders,
13199
- (orders) => orders.results.map((order) => ShopifyOrder(instance, order))
13199
+ (orders) => (orders?.results || []).map(
13200
+ (order) => ShopifyOrder(instance, order)
13201
+ )
13200
13202
  ),
13201
13203
  orders_count: defer(() => account.order_count),
13202
13204
  payment_methods: [],