naystack 1.5.1 → 1.5.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.
@@ -101,10 +101,7 @@ var ApolloWrapper = ({
101
101
  cache: new import_client_integration_nextjs.InMemoryCache(cacheConfig),
102
102
  link: new import_client.HttpLink({
103
103
  uri: getEnv("NEXT_PUBLIC_GRAPHQL_ENDPOINT" /* NEXT_PUBLIC_GRAPHQL_ENDPOINT */)
104
- }),
105
- devtools: {
106
- enabled: true
107
- }
104
+ })
108
105
  });
109
106
  }
110
107
  return /* @__PURE__ */ import_react.default.createElement(import_client_integration_nextjs.ApolloNextAppProvider, { makeClient }, children);
@@ -77,10 +77,7 @@ var ApolloWrapper = ({
77
77
  cache: new InMemoryCache(cacheConfig),
78
78
  link: new HttpLink({
79
79
  uri: getEnv("NEXT_PUBLIC_GRAPHQL_ENDPOINT" /* NEXT_PUBLIC_GRAPHQL_ENDPOINT */)
80
- }),
81
- devtools: {
82
- enabled: true
83
- }
80
+ })
84
81
  });
85
82
  }
86
83
  return /* @__PURE__ */ React.createElement(ApolloNextAppProvider, { makeClient }, children);
@@ -735,6 +735,7 @@ var getUserId = async () => {
735
735
  function getAuthCaller(fn) {
736
736
  return (0, import_react.cache)(
737
737
  async (data) => {
738
+ "use server";
738
739
  const ctx = {
739
740
  userId: await getUserId(),
740
741
  isRefreshID: true
@@ -746,6 +747,7 @@ function getAuthCaller(fn) {
746
747
  function getCaller(fn) {
747
748
  return (0, import_react.cache)(
748
749
  async (data) => {
750
+ "use server";
749
751
  const ctx = {
750
752
  userId: null,
751
753
  isRefreshID: true
@@ -731,6 +731,7 @@ var getUserId = async () => {
731
731
  function getAuthCaller(fn) {
732
732
  return cache(
733
733
  async (data) => {
734
+ "use server";
734
735
  const ctx = {
735
736
  userId: await getUserId(),
736
737
  isRefreshID: true
@@ -742,6 +743,7 @@ function getAuthCaller(fn) {
742
743
  function getCaller(fn) {
743
744
  return cache(
744
745
  async (data) => {
746
+ "use server";
745
747
  const ctx = {
746
748
  userId: null,
747
749
  isRefreshID: true
@@ -128,6 +128,7 @@ var getUserId = async () => {
128
128
  function getAuthCaller(fn) {
129
129
  return (0, import_react.cache)(
130
130
  async (data) => {
131
+ "use server";
131
132
  const ctx = {
132
133
  userId: await getUserId(),
133
134
  isRefreshID: true
@@ -139,6 +140,7 @@ function getAuthCaller(fn) {
139
140
  function getCaller(fn) {
140
141
  return (0, import_react.cache)(
141
142
  async (data) => {
143
+ "use server";
142
144
  const ctx = {
143
145
  userId: null,
144
146
  isRefreshID: true
@@ -113,6 +113,7 @@ var getUserId = async () => {
113
113
  function getAuthCaller(fn) {
114
114
  return cache(
115
115
  async (data) => {
116
+ "use server";
116
117
  const ctx = {
117
118
  userId: await getUserId(),
118
119
  isRefreshID: true
@@ -124,6 +125,7 @@ function getAuthCaller(fn) {
124
125
  function getCaller(fn) {
125
126
  return cache(
126
127
  async (data) => {
128
+ "use server";
127
129
  const ctx = {
128
130
  userId: null,
129
131
  isRefreshID: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.5.1",
3
+ "version": "1.5.2",
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",