@lewebsimple/nuxt-graphql 0.5.6 → 0.5.7

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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-graphql",
3
3
  "configKey": "graphql",
4
- "version": "0.5.6",
4
+ "version": "0.5.7",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -3,8 +3,10 @@ type GraphQLContextFactory<TContext extends Record<string, unknown>> = (event: H
3
3
  /**
4
4
  * Define a GraphQL context factory with proper typing.
5
5
  *
6
- * @param factory Context factory function.
6
+ * @param createContext Context factory function.
7
7
  * @returns The same factory, typed for inference.
8
8
  */
9
- export declare function defineGraphQLContext<TContext extends Record<string, unknown>>(factory: GraphQLContextFactory<TContext>): GraphQLContextFactory<TContext>;
9
+ export declare function defineGraphQLContext<TContext extends Record<string, unknown>>(createContext: GraphQLContextFactory<TContext>): {
10
+ createContext: GraphQLContextFactory<TContext>;
11
+ };
10
12
  export {};
@@ -1,3 +1,3 @@
1
- export function defineGraphQLContext(factory) {
2
- return factory;
1
+ export function defineGraphQLContext(createContext) {
2
+ return { createContext };
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lewebsimple/nuxt-graphql",
3
- "version": "0.5.6",
3
+ "version": "0.5.7",
4
4
  "description": "Opinionated Nuxt module for using GraphQL",
5
5
  "repository": "lewebsimple/nuxt-graphql",
6
6
  "license": "AGPL-3.0-only",