nitro-graphql 0.0.12 → 0.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/ecosystem/nuxt.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -12
- package/dist/routes/apollo-server.d.ts +2 -2
- package/dist/routes/graphql-yoga.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_schema1 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_schema1.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { ModuleOptions, _default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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 nitropack0 from "nitropack";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
6
6
|
interface Resolvers extends Record<string, any> {}
|
|
7
7
|
interface CustomSchema extends Record<string, any> {}
|
|
8
8
|
type GraphQLFramework = 'graphql-yoga';
|
|
9
|
-
declare const _default:
|
|
9
|
+
declare const _default: nitropack0.NitroModule;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { CodegenClientConfig, CodegenServerConfig, CustomSchema, GenImport, GraphQLFramework, NitroGraphQLOptions, Resolvers, StandardSchemaV1, _default as default };
|
package/dist/index.js
CHANGED
|
@@ -103,18 +103,21 @@ var src_default = defineNitroModule({
|
|
|
103
103
|
handler: join(runtime, "health"),
|
|
104
104
|
method: "get"
|
|
105
105
|
});
|
|
106
|
-
if (nitro.options.imports)
|
|
107
|
-
|
|
108
|
-
imports
|
|
109
|
-
"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
106
|
+
if (nitro.options.imports) {
|
|
107
|
+
nitro.options.imports.presets ??= [];
|
|
108
|
+
nitro.options.imports.presets.push({
|
|
109
|
+
from: "nitro-graphql/utils/define",
|
|
110
|
+
imports: [
|
|
111
|
+
"defineResolver",
|
|
112
|
+
"defineMutation",
|
|
113
|
+
"defineQuery",
|
|
114
|
+
"defineSubscription",
|
|
115
|
+
"defineType",
|
|
116
|
+
"defineGraphQLConfig",
|
|
117
|
+
"defineSchema"
|
|
118
|
+
]
|
|
119
|
+
});
|
|
120
|
+
}
|
|
118
121
|
nitro.hooks.hook("rollup:before", (nitro$1, rollupConfig$1) => {
|
|
119
122
|
const manualChunks = rollupConfig$1.output?.manualChunks;
|
|
120
123
|
const chunkFiles = rollupConfig$1.output?.chunkFileNames;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h32 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/apollo-server.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h32.EventHandler<h32.EventHandlerRequest, any>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h36 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h36.EventHandler<h36.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|