@anker-in/shopify-sdk 1.2.0-beta.2 → 1.2.0-beta.4

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
@@ -1415,7 +1415,12 @@ async function getProductsByHandles(client, options) {
1415
1415
  if (!data) {
1416
1416
  return [];
1417
1417
  }
1418
- return Object.keys(data).map((key) => normalizeProduct(data[key]));
1418
+ return Object.values(data).map((item) => {
1419
+ if (item) {
1420
+ return normalizeProduct(item);
1421
+ }
1422
+ return void 0;
1423
+ });
1419
1424
  }
1420
1425
 
1421
1426
  // src/api/cart/normalize.ts