nitro-graphql 2.0.0-beta.17 → 2.0.0-beta.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h30 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/apollo-server.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h30.EventHandlerWithFetch<h30.EventHandlerRequest, Promise<any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h35 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/graphql-yoga.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h35.EventHandlerWithFetch<h35.EventHandlerRequest, Promise<Response>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
package/dist/routes/health.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h31 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h31.EventHandlerWithFetch<h31.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
package/dist/setup.js
CHANGED
|
@@ -217,7 +217,16 @@ async function setupNitroGraphQL(nitro) {
|
|
|
217
217
|
const chunkFiles = rollupConfig$1.output?.chunkFileNames;
|
|
218
218
|
if (!rollupConfig$1.output.inlineDynamicImports) {
|
|
219
219
|
rollupConfig$1.output.manualChunks = (id, meta) => {
|
|
220
|
-
if (id.endsWith(".graphql") || id.endsWith(".gql"))
|
|
220
|
+
if (id.endsWith(".graphql") || id.endsWith(".gql")) {
|
|
221
|
+
let graphqlIndex = id.indexOf("server/graphql/");
|
|
222
|
+
let baseLength = 15;
|
|
223
|
+
if (graphqlIndex === -1) {
|
|
224
|
+
graphqlIndex = id.indexOf("routes/graphql/");
|
|
225
|
+
baseLength = 15;
|
|
226
|
+
}
|
|
227
|
+
if (graphqlIndex !== -1) return id.slice(graphqlIndex + baseLength).replace(/\.(?:graphql|gql)$/, "-schema");
|
|
228
|
+
return "schemas";
|
|
229
|
+
}
|
|
221
230
|
if (id.endsWith(".resolver.ts")) {
|
|
222
231
|
let graphqlIndex = id.indexOf("server/graphql/");
|
|
223
232
|
let baseLength = 15;
|
|
@@ -232,7 +241,17 @@ async function setupNitroGraphQL(nitro) {
|
|
|
232
241
|
};
|
|
233
242
|
rollupConfig$1.output.advancedChunks = {
|
|
234
243
|
groups: [{
|
|
235
|
-
name:
|
|
244
|
+
name: (moduleId) => {
|
|
245
|
+
if (!moduleId.endsWith(".graphql") && !moduleId.endsWith(".gql")) return;
|
|
246
|
+
let graphqlIndex = moduleId.indexOf("server/graphql/");
|
|
247
|
+
let baseLength = 15;
|
|
248
|
+
if (graphqlIndex === -1) {
|
|
249
|
+
graphqlIndex = moduleId.indexOf("routes/graphql/");
|
|
250
|
+
baseLength = 15;
|
|
251
|
+
}
|
|
252
|
+
if (graphqlIndex !== -1) return moduleId.slice(graphqlIndex + baseLength).replace(/\.(?:graphql|gql)$/, "-schema");
|
|
253
|
+
return "schemas";
|
|
254
|
+
},
|
|
236
255
|
test: /\.(?:graphql|gql)$/
|
|
237
256
|
}, {
|
|
238
257
|
name: (moduleId) => {
|