@lewebsimple/nuxt-graphql 0.7.2 → 0.7.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.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-graphql",
3
3
  "configKey": "graphql",
4
- "version": "0.7.2",
4
+ "version": "0.7.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -16,7 +16,7 @@ import zodPreset from '@lewebsimple/graphql-codegen-zod';
16
16
  import { createRequire } from 'node:module';
17
17
  import { resolveCacheConfig } from '../dist/runtime/app/lib/cache-config.js';
18
18
 
19
- const version = "0.7.2";
19
+ const version = "0.7.3";
20
20
 
21
21
  const buildCache = /* @__PURE__ */ new Map();
22
22
  function getCachedLoader(baseKey, loader) {
@@ -176,7 +176,11 @@ async function generateRegistryArtifacts({
176
176
  baseOutputDir: "registry.ts",
177
177
  schema: parse$1(printSchema(schema)),
178
178
  documents,
179
- config: {},
179
+ config: {
180
+ scalars: {
181
+ ZodValue: "unknown"
182
+ }
183
+ },
180
184
  pluginMap: {},
181
185
  plugins: [],
182
186
  presetConfig: {}
@@ -553,7 +557,16 @@ const module$1 = defineNuxtModule({
553
557
  const configPath = resolveRoot(options.saveConfig || "graphql.config.json");
554
558
  const config = {
555
559
  schema: toRelativePath(rootDir, sdlPath),
556
- documents: documentGlobs.map((glob) => toRelativePath(rootDir, glob))
560
+ documents: documentGlobs.map((glob) => toRelativePath(rootDir, glob)),
561
+ extensions: {
562
+ codegen: {
563
+ config: {
564
+ scalars: {
565
+ ZodValue: "unknown"
566
+ }
567
+ }
568
+ }
569
+ }
557
570
  };
558
571
  await writeFile(configPath, JSON.stringify(config, null, 2));
559
572
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lewebsimple/nuxt-graphql",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "Opinionated Nuxt module for using GraphQL",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": "lewebsimple/nuxt-graphql",