@fourtwelvelabs/fetch-contentful 1.1.0 → 1.2.0

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
@@ -790,7 +790,7 @@ async function rawRequest(document, variables, context) {
790
790
  try {
791
791
  return await send(false);
792
792
  } catch (error) {
793
- if (isFetchContentfulError(error) && error.code === "GRAPHQL" && error.errors?.some(isPersistedQueryNotFoundError)) {
793
+ if (isFetchContentfulError(error) && (error.code === "GRAPHQL" || error.code === "HTTP") && error.errors?.some(isPersistedQueryNotFoundError)) {
794
794
  mustIncludeQuery = true;
795
795
  return await send(true);
796
796
  }