nuxt-graphql-middleware 3.0.0 → 3.0.2
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 +1 -1
- package/dist/module.mjs +7 -3
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import { oldVisit } from '@graphql-codegen/plugin-helpers';
|
|
|
17
17
|
import { pascalCase } from 'change-case-all';
|
|
18
18
|
|
|
19
19
|
const name = "nuxt-graphql-middleware";
|
|
20
|
-
const version = "3.0.
|
|
20
|
+
const version = "3.0.2";
|
|
21
21
|
|
|
22
22
|
var GraphqlMiddlewareTemplate = /* @__PURE__ */ ((GraphqlMiddlewareTemplate2) => {
|
|
23
23
|
GraphqlMiddlewareTemplate2["OperationTypes"] = "graphql-operations.d.ts";
|
|
@@ -403,7 +403,11 @@ const module = defineNuxtModule({
|
|
|
403
403
|
const moduleResolver = createResolver(import.meta.url).resolve;
|
|
404
404
|
const srcDir = nuxt.options.srcDir;
|
|
405
405
|
const srcResolver = createResolver(srcDir).resolve;
|
|
406
|
-
const schemaPath = await getSchemaPath(
|
|
406
|
+
const schemaPath = await getSchemaPath(
|
|
407
|
+
options,
|
|
408
|
+
srcResolver,
|
|
409
|
+
options.downloadSchema
|
|
410
|
+
);
|
|
407
411
|
const runtimeDir = fileURLToPath(new URL("./runtime", import.meta.url));
|
|
408
412
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
409
413
|
const ctx = {
|
|
@@ -447,7 +451,7 @@ const module = defineNuxtModule({
|
|
|
447
451
|
message: "Do you want to reload the GraphQL schema?"
|
|
448
452
|
}).then(async ({ accept }) => {
|
|
449
453
|
if (accept) {
|
|
450
|
-
await getSchemaPath(options, srcResolver);
|
|
454
|
+
await getSchemaPath(options, srcResolver, true);
|
|
451
455
|
await generateHandler();
|
|
452
456
|
}
|
|
453
457
|
});
|