@lewebsimple/nuxt-graphql 0.5.7 → 0.5.8

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.7",
4
+ "version": "0.5.8",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -29,7 +29,7 @@ export async function createContext(event) {
29
29
  }`.trim();
30
30
  }
31
31
  function renderContextTypesTemplate({ contextModules }) {
32
- const contextImports = contextModules.map((module, index) => `import createContext${index} from ${JSON.stringify(module)};`);
32
+ const contextImports = contextModules.map((module, index) => `import { createContext as createContext${index} } from ${JSON.stringify(module)};`);
33
33
  const contextTypes = ["{}", ...contextModules.map((_, index) => `Awaited<ReturnType<typeof createContext${index}>>`)];
34
34
  return `
35
35
  import type { H3Event } from "h3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lewebsimple/nuxt-graphql",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Opinionated Nuxt module for using GraphQL",
5
5
  "repository": "lewebsimple/nuxt-graphql",
6
6
  "license": "AGPL-3.0-only",