naystack 1.4.2 → 1.4.3

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.
@@ -61,9 +61,9 @@ var getGraphQLQuery = ({ uri }) => {
61
61
  Cookie: options?.noCookie ? void 0 : await (0, import_headers.cookies)()
62
62
  },
63
63
  fetchOptions: {
64
- cache: options?.revalidate === void 0 ? "force-cache" : void 0,
64
+ cache: options?.revalidate ? "force-cache" : void 0,
65
65
  next: {
66
- revalidate: options?.revalidate,
66
+ revalidate: options?.revalidate || 0,
67
67
  tags: options?.tags
68
68
  }
69
69
  }
@@ -40,9 +40,9 @@ var getGraphQLQuery = ({ uri }) => {
40
40
  Cookie: options?.noCookie ? void 0 : await cookies()
41
41
  },
42
42
  fetchOptions: {
43
- cache: options?.revalidate === void 0 ? "force-cache" : void 0,
43
+ cache: options?.revalidate ? "force-cache" : void 0,
44
44
  next: {
45
- revalidate: options?.revalidate,
45
+ revalidate: options?.revalidate || 0,
46
46
  tags: options?.tags
47
47
  }
48
48
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "A stack built with Next + GraphQL + S3 + Auth",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",