naystack 1.7.12 → 1.7.14
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.
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
// src/graphql/client.tsx
|
|
32
32
|
var client_exports = {};
|
|
33
33
|
__export(client_exports, {
|
|
34
|
-
|
|
34
|
+
ApolloWrapper: () => ApolloWrapper,
|
|
35
35
|
tokenContext: () => tokenContext,
|
|
36
36
|
useAuthMutation: () => useAuthMutation,
|
|
37
37
|
useAuthQuery: () => useAuthQuery
|
|
@@ -100,7 +100,7 @@ function makeClient(cacheConfig) {
|
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var ApolloWrapper = ({
|
|
104
104
|
children,
|
|
105
105
|
cacheConfig
|
|
106
106
|
}) => {
|
|
@@ -157,7 +157,7 @@ function useAuthMutation(mutation, options) {
|
|
|
157
157
|
}
|
|
158
158
|
// Annotate the CommonJS export names for ESM import in node:
|
|
159
159
|
0 && (module.exports = {
|
|
160
|
-
|
|
160
|
+
ApolloWrapper,
|
|
161
161
|
tokenContext,
|
|
162
162
|
useAuthMutation,
|
|
163
163
|
useAuthQuery
|
|
@@ -4,7 +4,7 @@ import { InMemoryCacheConfig, OperationVariables, ApolloClient, MutationHookOpti
|
|
|
4
4
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
5
5
|
import React__default, { PropsWithChildren } from 'react';
|
|
6
6
|
|
|
7
|
-
declare const
|
|
7
|
+
declare const ApolloWrapper: ({ children, cacheConfig, }: PropsWithChildren<{
|
|
8
8
|
cacheConfig?: InMemoryCacheConfig;
|
|
9
9
|
}>) => React__default.JSX.Element;
|
|
10
10
|
/**
|
|
@@ -129,4 +129,4 @@ declare function useAuthMutation<T, V extends OperationVariables>(mutation: Type
|
|
|
129
129
|
readonly reset: () => void;
|
|
130
130
|
}];
|
|
131
131
|
|
|
132
|
-
export {
|
|
132
|
+
export { ApolloWrapper, tokenContext, useAuthMutation, useAuthQuery };
|
package/dist/graphql/client.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { InMemoryCacheConfig, OperationVariables, ApolloClient, MutationHookOpti
|
|
|
4
4
|
import { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
5
5
|
import React__default, { PropsWithChildren } from 'react';
|
|
6
6
|
|
|
7
|
-
declare const
|
|
7
|
+
declare const ApolloWrapper: ({ children, cacheConfig, }: PropsWithChildren<{
|
|
8
8
|
cacheConfig?: InMemoryCacheConfig;
|
|
9
9
|
}>) => React__default.JSX.Element;
|
|
10
10
|
/**
|
|
@@ -129,4 +129,4 @@ declare function useAuthMutation<T, V extends OperationVariables>(mutation: Type
|
|
|
129
129
|
readonly reset: () => void;
|
|
130
130
|
}];
|
|
131
131
|
|
|
132
|
-
export {
|
|
132
|
+
export { ApolloWrapper, tokenContext, useAuthMutation, useAuthQuery };
|
|
@@ -75,7 +75,7 @@ function makeClient(cacheConfig) {
|
|
|
75
75
|
})
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
|
-
var
|
|
78
|
+
var ApolloWrapper = ({
|
|
79
79
|
children,
|
|
80
80
|
cacheConfig
|
|
81
81
|
}) => {
|
|
@@ -131,7 +131,7 @@ function useAuthMutation(mutation, options) {
|
|
|
131
131
|
return [method, { ...result, hasAuth: !!token }];
|
|
132
132
|
}
|
|
133
133
|
export {
|
|
134
|
-
|
|
134
|
+
ApolloWrapper,
|
|
135
135
|
tokenContext,
|
|
136
136
|
useAuthMutation,
|
|
137
137
|
useAuthQuery
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naystack",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.14",
|
|
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",
|
|
@@ -84,7 +84,6 @@
|
|
|
84
84
|
"author": "Abhinay Pandey <abhinaypandey02@gmail.com>",
|
|
85
85
|
"license": "ISC",
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@apollo/client": "^3.13.6",
|
|
88
87
|
"@apollo/client-integration-nextjs": "^0.12.1",
|
|
89
88
|
"@apollo/server": "^4.12.0",
|
|
90
89
|
"@as-integrations/next": "^3.2.0",
|
|
@@ -96,6 +95,7 @@
|
|
|
96
95
|
"googleapis": "^160.0.0",
|
|
97
96
|
"jsonwebtoken": "^9.0.2",
|
|
98
97
|
"reflect-metadata": "^0.2.2",
|
|
98
|
+
"tslib": "^2.8.1",
|
|
99
99
|
"type-graphql": "2.0.0-rc.2",
|
|
100
100
|
"uuid": "^13.0.0",
|
|
101
101
|
"v4": "^0.0.1"
|
|
@@ -132,8 +132,9 @@
|
|
|
132
132
|
"url": "https://github.com/abhinaypandey02/naystack.git"
|
|
133
133
|
},
|
|
134
134
|
"peerDependencies": {
|
|
135
|
+
"next": ">=13",
|
|
135
136
|
"react": "^18 || ^19",
|
|
136
137
|
"react-dom": "^18 || ^19",
|
|
137
|
-
"
|
|
138
|
+
"@apollo/client": "^3.13.6"
|
|
138
139
|
}
|
|
139
140
|
}
|