nitro-graphql 0.0.16 → 0.0.18
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/ecosystem/nuxt.d.ts +2 -2
- package/dist/graphql/server.d.ts +2 -1
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2 -6
- package/dist/routes/apollo-server.d.ts +2 -2
- package/dist/routes/apollo-server.js +1 -1
- package/dist/routes/graphql-yoga.d.ts +2 -2
- package/dist/routes/graphql-yoga.js +1 -1
- package/dist/routes/health.d.ts +2 -2
- package/dist/utils/define.d.ts +2 -2
- package/package.json +1 -1
package/dist/ecosystem/nuxt.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _nuxt_schema5 from "@nuxt/schema";
|
|
2
2
|
|
|
3
3
|
//#region src/ecosystem/nuxt.d.ts
|
|
4
4
|
interface ModuleOptions {}
|
|
5
|
-
declare const _default:
|
|
5
|
+
declare const _default: _nuxt_schema5.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ModuleOptions, _default as default };
|
package/dist/graphql/server.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/graphql/server.d.ts
|
|
2
2
|
interface StandardSchemaV1 extends Record<string, any> {}
|
|
3
3
|
interface ResolversTypes extends Record<string, any> {}
|
|
4
|
+
interface Resolvers extends Record<string, any> {}
|
|
4
5
|
//#endregion
|
|
5
|
-
export { ResolversTypes, StandardSchemaV1 };
|
|
6
|
+
export { Resolvers, ResolversTypes, StandardSchemaV1 };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { StandardSchemaV1 } from "./types/standard-schema.js";
|
|
2
2
|
import { CodegenClientConfig, CodegenServerConfig, GenImport, NitroGraphQLOptions } from "./types/index.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as nitropack4 from "nitropack";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
|
-
interface Resolvers extends Record<string, any> {}
|
|
7
|
-
interface CustomSchema extends Record<string, any> {}
|
|
8
6
|
type GraphQLFramework = 'graphql-yoga';
|
|
9
|
-
declare const _default:
|
|
7
|
+
declare const _default: nitropack4.NitroModule;
|
|
10
8
|
//#endregion
|
|
11
|
-
export { CodegenClientConfig, CodegenServerConfig,
|
|
9
|
+
export { CodegenClientConfig, CodegenServerConfig, GenImport, GraphQLFramework, NitroGraphQLOptions, StandardSchemaV1, _default as default };
|
package/dist/index.js
CHANGED
|
@@ -106,7 +106,7 @@ var src_default = defineNitroModule({
|
|
|
106
106
|
if (nitro.options.imports) {
|
|
107
107
|
nitro.options.imports.presets ??= [];
|
|
108
108
|
nitro.options.imports.presets.push({
|
|
109
|
-
from: "
|
|
109
|
+
from: fileURLToPath(new URL("utils/define", import.meta.url)),
|
|
110
110
|
imports: [
|
|
111
111
|
"defineResolver",
|
|
112
112
|
"defineMutation",
|
|
@@ -135,13 +135,9 @@ var src_default = defineNitroModule({
|
|
|
135
135
|
});
|
|
136
136
|
const graphqlDtsContent = `// Auto-generated by nitro-graphql
|
|
137
137
|
|
|
138
|
-
import type {
|
|
138
|
+
import type { SchemaType } from './nitro-graphql-server.d.ts'
|
|
139
139
|
|
|
140
140
|
declare module 'nitro-graphql' {
|
|
141
|
-
interface Resolvers extends Test {}
|
|
142
|
-
|
|
143
|
-
interface CustomSchema extends SchemaType {}
|
|
144
|
-
|
|
145
141
|
type GraphQLFramework = '${nitro.options.graphql?.framework || "graphql-yoga"}'
|
|
146
142
|
}
|
|
147
143
|
`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h36 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/apollo-server.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h36.EventHandler<h36.EventHandlerRequest, any>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { startServerAndCreateH3Handler } from "../utils/apollo.js";
|
|
2
2
|
import { mergeResolvers, mergeTypeDefs } from "@graphql-tools/merge";
|
|
3
|
-
import { ApolloServer } from "@apollo/server";
|
|
4
3
|
import { defs } from "#nitro-internal-virtual/server-defs";
|
|
5
4
|
import { resolvers } from "#nitro-internal-virtual/server-resolvers";
|
|
5
|
+
import { ApolloServer } from "@apollo/server";
|
|
6
6
|
import { ApolloServerPluginLandingPageLocalDefault } from "@apollo/server/plugin/landingPage/default";
|
|
7
7
|
|
|
8
8
|
//#region src/routes/apollo-server.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h32 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h32.EventHandler<h32.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mergeResolvers, mergeTypeDefs } from "@graphql-tools/merge";
|
|
2
|
-
import { defineEventHandler, toWebRequest } from "h3";
|
|
3
2
|
import { defs } from "#nitro-internal-virtual/server-defs";
|
|
4
3
|
import { resolvers } from "#nitro-internal-virtual/server-resolvers";
|
|
4
|
+
import { defineEventHandler, toWebRequest } from "h3";
|
|
5
5
|
import { createSchema, createYoga } from "graphql-yoga";
|
|
6
6
|
|
|
7
7
|
//#region src/routes/graphql-yoga.ts
|
package/dist/routes/health.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h30 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
package/dist/utils/define.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloServerOptions, BaseContext } from "@apollo/server";
|
|
2
2
|
import { YogaServerOptions } from "graphql-yoga";
|
|
3
|
-
import { ResolversTypes, StandardSchemaV1 } from "#graphql/server";
|
|
4
|
-
import { GraphQLFramework
|
|
3
|
+
import { Resolvers, ResolversTypes, StandardSchemaV1 } from "#graphql/server";
|
|
4
|
+
import { GraphQLFramework } from "nitro-graphql";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/define.d.ts
|
|
7
7
|
type Flatten<T> = T extends infer U ? { [K in keyof U]: U[K] } : never;
|