naystack 1.5.2 → 1.5.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.
@@ -733,28 +733,24 @@ var getUserId = async () => {
733
733
  return refresh ? getUserIdFromRefreshToken(refresh) : null;
734
734
  };
735
735
  function getAuthCaller(fn) {
736
- return (0, import_react.cache)(
737
- async (data) => {
738
- "use server";
739
- const ctx = {
740
- userId: await getUserId(),
741
- isRefreshID: true
742
- };
743
- return await fn(ctx, data);
744
- }
745
- );
736
+ return async (data) => {
737
+ "use server";
738
+ const ctx = {
739
+ userId: await getUserId(),
740
+ isRefreshID: true
741
+ };
742
+ return await fn(ctx, data);
743
+ };
746
744
  }
747
745
  function getCaller(fn) {
748
- return (0, import_react.cache)(
749
- async (data) => {
750
- "use server";
751
- const ctx = {
752
- userId: null,
753
- isRefreshID: true
754
- };
755
- return await fn(ctx, data);
756
- }
757
- );
746
+ return async (data) => {
747
+ "use server";
748
+ const ctx = {
749
+ userId: null,
750
+ isRefreshID: true
751
+ };
752
+ return await fn(ctx, data);
753
+ };
758
754
  }
759
755
  function getFieldAuthCaller(fn) {
760
756
  return (0, import_react.cache)(
@@ -729,28 +729,24 @@ var getUserId = async () => {
729
729
  return refresh ? getUserIdFromRefreshToken(refresh) : null;
730
730
  };
731
731
  function getAuthCaller(fn) {
732
- return cache(
733
- async (data) => {
734
- "use server";
735
- const ctx = {
736
- userId: await getUserId(),
737
- isRefreshID: true
738
- };
739
- return await fn(ctx, data);
740
- }
741
- );
732
+ return async (data) => {
733
+ "use server";
734
+ const ctx = {
735
+ userId: await getUserId(),
736
+ isRefreshID: true
737
+ };
738
+ return await fn(ctx, data);
739
+ };
742
740
  }
743
741
  function getCaller(fn) {
744
- return cache(
745
- async (data) => {
746
- "use server";
747
- const ctx = {
748
- userId: null,
749
- isRefreshID: true
750
- };
751
- return await fn(ctx, data);
752
- }
753
- );
742
+ return async (data) => {
743
+ "use server";
744
+ const ctx = {
745
+ userId: null,
746
+ isRefreshID: true
747
+ };
748
+ return await fn(ctx, data);
749
+ };
754
750
  }
755
751
  function getFieldAuthCaller(fn) {
756
752
  return cache(
@@ -126,28 +126,24 @@ var getUserId = async () => {
126
126
  return refresh ? getUserIdFromRefreshToken(refresh) : null;
127
127
  };
128
128
  function getAuthCaller(fn) {
129
- return (0, import_react.cache)(
130
- async (data) => {
131
- "use server";
132
- const ctx = {
133
- userId: await getUserId(),
134
- isRefreshID: true
135
- };
136
- return await fn(ctx, data);
137
- }
138
- );
129
+ return async (data) => {
130
+ "use server";
131
+ const ctx = {
132
+ userId: await getUserId(),
133
+ isRefreshID: true
134
+ };
135
+ return await fn(ctx, data);
136
+ };
139
137
  }
140
138
  function getCaller(fn) {
141
- return (0, import_react.cache)(
142
- async (data) => {
143
- "use server";
144
- const ctx = {
145
- userId: null,
146
- isRefreshID: true
147
- };
148
- return await fn(ctx, data);
149
- }
150
- );
139
+ return async (data) => {
140
+ "use server";
141
+ const ctx = {
142
+ userId: null,
143
+ isRefreshID: true
144
+ };
145
+ return await fn(ctx, data);
146
+ };
151
147
  }
152
148
  function getFieldAuthCaller(fn) {
153
149
  return (0, import_react.cache)(
@@ -111,28 +111,24 @@ var getUserId = async () => {
111
111
  return refresh ? getUserIdFromRefreshToken(refresh) : null;
112
112
  };
113
113
  function getAuthCaller(fn) {
114
- return cache(
115
- async (data) => {
116
- "use server";
117
- const ctx = {
118
- userId: await getUserId(),
119
- isRefreshID: true
120
- };
121
- return await fn(ctx, data);
122
- }
123
- );
114
+ return async (data) => {
115
+ "use server";
116
+ const ctx = {
117
+ userId: await getUserId(),
118
+ isRefreshID: true
119
+ };
120
+ return await fn(ctx, data);
121
+ };
124
122
  }
125
123
  function getCaller(fn) {
126
- return cache(
127
- async (data) => {
128
- "use server";
129
- const ctx = {
130
- userId: null,
131
- isRefreshID: true
132
- };
133
- return await fn(ctx, data);
134
- }
135
- );
124
+ return async (data) => {
125
+ "use server";
126
+ const ctx = {
127
+ userId: null,
128
+ isRefreshID: true
129
+ };
130
+ return await fn(ctx, data);
131
+ };
136
132
  }
137
133
  function getFieldAuthCaller(fn) {
138
134
  return cache(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "naystack",
3
- "version": "1.5.2",
3
+ "version": "1.5.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",