naystack 1.4.37 → 1.5.1
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,7 +101,10 @@ 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
|
-
})
|
|
104
|
+
}),
|
|
105
|
+
devtools: {
|
|
106
|
+
enabled: true
|
|
107
|
+
}
|
|
105
108
|
});
|
|
106
109
|
}
|
|
107
110
|
return /* @__PURE__ */ import_react.default.createElement(import_client_integration_nextjs.ApolloNextAppProvider, { makeClient }, children);
|
|
@@ -77,7 +77,10 @@ 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
|
-
})
|
|
80
|
+
}),
|
|
81
|
+
devtools: {
|
|
82
|
+
enabled: true
|
|
83
|
+
}
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
86
|
return /* @__PURE__ */ React.createElement(ApolloNextAppProvider, { makeClient }, children);
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { GQLError } from './errors.mjs';
|
|
2
2
|
export { initGraphQLServer } from './init.mjs';
|
|
3
3
|
export { AuthorizedContext, Context } from './types.mjs';
|
|
4
|
-
export { FieldLibrary, QueryLibrary,
|
|
4
|
+
export { FieldLibrary, FieldResponseType, QueryLibrary, QueryResponseType, field, query } from './utils.mjs';
|
|
5
5
|
import 'graphql/error';
|
|
6
6
|
import '@apollo/server';
|
|
7
7
|
import 'next/server';
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { GQLError } from './errors.js';
|
|
2
2
|
export { initGraphQLServer } from './init.js';
|
|
3
3
|
export { AuthorizedContext, Context } from './types.js';
|
|
4
|
-
export { FieldLibrary, QueryLibrary,
|
|
4
|
+
export { FieldLibrary, FieldResponseType, QueryLibrary, QueryResponseType, field, query } from './utils.js';
|
|
5
5
|
import 'graphql/error';
|
|
6
6
|
import '@apollo/server';
|
|
7
7
|
import 'next/server';
|
package/dist/graphql/utils.d.mts
CHANGED
|
@@ -42,6 +42,7 @@ declare function QueryLibrary<T extends Record<string, QueryDefinition<any, any,
|
|
|
42
42
|
declare function FieldLibrary<X extends object, T extends Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>> = Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>>>(type: ClassType, queries: T): {
|
|
43
43
|
new (): {};
|
|
44
44
|
};
|
|
45
|
-
type
|
|
45
|
+
type QueryResponseType<T extends QueryDefinition<any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
46
|
+
type FieldResponseType<T extends FieldResolverDefinition<any, any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
46
47
|
|
|
47
|
-
export { FieldLibrary, QueryLibrary, type
|
|
48
|
+
export { FieldLibrary, type FieldResponseType, QueryLibrary, type QueryResponseType, field, query };
|
package/dist/graphql/utils.d.ts
CHANGED
|
@@ -42,6 +42,7 @@ declare function QueryLibrary<T extends Record<string, QueryDefinition<any, any,
|
|
|
42
42
|
declare function FieldLibrary<X extends object, T extends Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>> = Record<string, FieldResolverDefinition<any, any, X, any, any, any, any>>>(type: ClassType, queries: T): {
|
|
43
43
|
new (): {};
|
|
44
44
|
};
|
|
45
|
-
type
|
|
45
|
+
type QueryResponseType<T extends QueryDefinition<any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
46
|
+
type FieldResponseType<T extends FieldResolverDefinition<any, any, any, any, any, any, any>> = Awaited<ReturnType<T["call"]>>;
|
|
46
47
|
|
|
47
|
-
export { FieldLibrary, QueryLibrary, type
|
|
48
|
+
export { FieldLibrary, type FieldResponseType, QueryLibrary, type QueryResponseType, field, query };
|