@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/CHANGELOG.md +20 -0
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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
|
}
|