@shopify/hydrogen 2023.7.1 → 2023.7.2

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.
@@ -288,7 +288,13 @@ async function fetchWithServerCache(url, requestInit, {
288
288
  try {
289
289
  data = await response[returnType]();
290
290
  } catch {
291
- data = await response.text();
291
+ try {
292
+ data = await response.text();
293
+ } catch {
294
+ throw new Error(
295
+ `Storefront API response code: ${response.status} (Request Id: ${response.headers.get("x-request-id")})`
296
+ );
297
+ }
292
298
  }
293
299
  return toSerializableResponse(data, response);
294
300
  },
@@ -323,7 +329,7 @@ var warnOnce = (string) => {
323
329
  };
324
330
 
325
331
  // src/version.ts
326
- var LIB_VERSION = "2023.7.1";
332
+ var LIB_VERSION = "2023.7.2";
327
333
 
328
334
  // src/storefront.ts
329
335
  var StorefrontApiError = class extends Error {