nitro-graphql 1.0.11 → 1.0.13

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.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { StandardSchemaV1 } from "./types/standard-schema.js";
2
2
  import { CodegenClientConfig, CodegenServerConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions } from "./types/index.js";
3
- import * as nitropack5 from "nitropack";
3
+ import * as nitropack7 from "nitropack";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare const _default: nitropack5.NitroModule;
6
+ declare const _default: nitropack7.NitroModule;
7
7
  //#endregion
8
8
  export { CodegenClientConfig, CodegenServerConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions, StandardSchemaV1, _default as default };
package/dist/index.js CHANGED
@@ -196,13 +196,15 @@ export default defineGraphQLConfig({
196
196
  })
197
197
  `, "utf-8");
198
198
  if (!existsSync(join(nitro.graphql.serverDir, "context.d.ts"))) writeFileSync(join(nitro.graphql.serverDir, "context.d.ts"), `// Example context definition please change it to your needs
199
- // import type { Database } from '../utils/useDb'
199
+ import type { H3EventContext as OriginalH3EventContext } from 'h3'
200
+
201
+ export interface ExtendedH3EventContext extends OriginalH3EventContext {
202
+ // useDatabase: () => Database
203
+ // tables: typeof import('~~/server/drizzle/schema/index')
204
+ }
200
205
 
201
206
  declare module 'h3' {
202
- interface H3EventContext {
203
- // useDatabase: () => Database
204
- // tables: typeof import('~~/server/drizzle/schema/index')
205
- }
207
+ interface H3EventContext extends ExtendedH3EventContext {}
206
208
  }`, "utf-8");
207
209
  }
208
210
  });
@@ -1,6 +1,6 @@
1
- import * as h30 from "h3";
1
+ import * as h35 from "h3";
2
2
 
3
3
  //#region src/routes/apollo-server.d.ts
4
- declare const _default: h30.EventHandler<h30.EventHandlerRequest, any>;
4
+ declare const _default: h35.EventHandler<h35.EventHandlerRequest, any>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,6 +1,6 @@
1
- import * as h36 from "h3";
1
+ import * as h32 from "h3";
2
2
 
3
3
  //#region src/routes/graphql-yoga.d.ts
4
- declare const _default: h36.EventHandler<h36.EventHandlerRequest, Promise<Response>>;
4
+ declare const _default: h32.EventHandler<h32.EventHandlerRequest, Promise<Response>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,7 +1,7 @@
1
- import * as h32 from "h3";
1
+ import * as h30 from "h3";
2
2
 
3
3
  //#region src/routes/health.d.ts
4
- declare const _default: h32.EventHandler<h32.EventHandlerRequest, Promise<{
4
+ declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<{
5
5
  status: string;
6
6
  message: string;
7
7
  timestamp: string;
@@ -1,5 +1,3 @@
1
- import { H3Event } from "h3";
2
-
3
1
  //#region src/utils/define.ts
4
2
  function defineSchema(config) {
5
3
  return config;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nitro-graphql",
3
3
  "type": "module",
4
- "version": "1.0.11",
4
+ "version": "1.0.13",
5
5
  "description": "GraphQL integration for Nitro",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,