@weaverse/hydrogen 5.21.2 → 5.22.1

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.js CHANGED
@@ -1767,6 +1767,9 @@ var WeaverseClient = class {
1767
1767
  cacheKey,
1768
1768
  cacheStrategy: strategy,
1769
1769
  shouldCacheResponse: (response) => {
1770
+ if (fetchOptions.signal?.aborted) {
1771
+ return false;
1772
+ }
1770
1773
  return !hasError(response) && response !== null && response !== void 0;
1771
1774
  },
1772
1775
  displayName: "Weaverse API"
@@ -1921,7 +1924,8 @@ var WeaverseClient = class {
1921
1924
  strategy,
1922
1925
  headers: {
1923
1926
  Accept: "application/json"
1924
- }
1927
+ },
1928
+ signal: AbortSignal.timeout(this.fetchTimeoutMs)
1925
1929
  }
1926
1930
  );
1927
1931
  if (typeof overrides === "object" && overrides !== null) {