nitro-graphql 1.5.5 → 1.5.6

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/index.js CHANGED
@@ -237,17 +237,8 @@ var src_default = defineNitroModule({
237
237
  ...placeholders,
238
238
  serviceName: service.name
239
239
  };
240
- consola.info(`[DEBUG] External service: ${service.name}`);
241
- consola.info("[DEBUG] service.paths:", service.paths);
242
- consola.info("[DEBUG] service.paths?.types:", service.paths?.types);
243
- consola.info("[DEBUG] typesConfig.external:", typesConfig.external);
244
240
  const externalTypesPath = resolveFilePath(service.paths?.types ?? typesConfig.external, typesConfig.enabled, true, "{typesDir}/nitro-graphql-client-{serviceName}.d.ts", servicePlaceholders);
245
- consola.info("[DEBUG] externalTypesPath after resolveFilePath:", externalTypesPath);
246
- if (externalTypesPath) {
247
- const relativePath = relativeWithDot(tsconfigDir, externalTypesPath);
248
- consola.info("[DEBUG] relativePath after relativeWithDot:", relativePath);
249
- types.tsConfig.compilerOptions.paths[`#graphql/client/${service.name}`] = [relativePath];
250
- }
241
+ if (externalTypesPath) types.tsConfig.compilerOptions.paths[`#graphql/client/${service.name}`] = [relativeWithDot(tsconfigDir, externalTypesPath)];
251
242
  }
252
243
  types.tsConfig.include = types.tsConfig.include || [];
253
244
  if (serverTypesPath) types.tsConfig.include.push(relativeWithDot(tsconfigDir, serverTypesPath));
@@ -1,6 +1,6 @@
1
- import * as h30 from "h3";
1
+ import * as h33 from "h3";
2
2
 
3
3
  //#region src/routes/apollo-server.d.ts
4
- declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<any>>;
4
+ declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<any>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import * as h33 from "h3";
1
+ import * as h35 from "h3";
2
2
 
3
3
  //#region src/routes/debug.d.ts
4
4
 
@@ -10,7 +10,7 @@ import * as h33 from "h3";
10
10
  * - /_nitro/graphql/debug - HTML dashboard
11
11
  * - /_nitro/graphql/debug?format=json - JSON API
12
12
  */
13
- declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<string | {
13
+ declare const _default: h35.EventHandler<h35.EventHandlerRequest, Promise<string | {
14
14
  timestamp: string;
15
15
  environment: {
16
16
  dev: any;
@@ -1,6 +1,6 @@
1
- import * as h35 from "h3";
1
+ import * as h30 from "h3";
2
2
 
3
3
  //#region src/routes/graphql-yoga.d.ts
4
- declare const _default: h35.EventHandler<h35.EventHandlerRequest, Promise<Response>>;
4
+ declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<Response>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -336,12 +336,7 @@ async function generateExternalServicesTypes(nitro) {
336
336
  };
337
337
  const typesConfig = getTypesConfig(nitro);
338
338
  const sdkConfig = getSdkConfig(nitro);
339
- consola.info(`[TYPE-GEN DEBUG] External service: ${service.name}`);
340
- consola.info("[TYPE-GEN DEBUG] service.paths:", service.paths);
341
- consola.info("[TYPE-GEN DEBUG] service.paths?.types:", service.paths?.types);
342
- consola.info("[TYPE-GEN DEBUG] typesConfig.external:", typesConfig.external);
343
339
  const serviceTypesPath = resolveFilePath(service.paths?.types ?? typesConfig.external, typesConfig.enabled, true, "{typesDir}/nitro-graphql-client-{serviceName}.d.ts", placeholders);
344
- consola.info("[TYPE-GEN DEBUG] serviceTypesPath after resolveFilePath:", serviceTypesPath);
345
340
  if (serviceTypesPath) {
346
341
  mkdirSync(dirname(serviceTypesPath), { recursive: true });
347
342
  writeFileSync(serviceTypesPath, types.types, "utf-8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nitro-graphql",
3
3
  "type": "module",
4
- "version": "1.5.5",
4
+ "version": "1.5.6",
5
5
  "description": "GraphQL integration for Nitro",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,