@cedarjs/vite 5.0.0-canary.2448 → 5.0.0-canary.2450
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.
|
@@ -229,7 +229,15 @@ async function generateGraphQLModule(distPath) {
|
|
|
229
229
|
authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
|
|
230
230
|
});
|
|
231
231
|
const event = await requestToLegacyEvent(request, cedarContext);
|
|
232
|
-
|
|
232
|
+
const response = await yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
|
|
233
|
+
// GraphQL Yoga returns a PonyfillResponse from @whatwg-node/fetch
|
|
234
|
+
// which is not an instanceof the native Response class. Netlify's
|
|
235
|
+
// bootstrap checks instanceof Response, so we wrap it.
|
|
236
|
+
return new Response(response.body, {
|
|
237
|
+
status: response.status,
|
|
238
|
+
statusText: response.statusText,
|
|
239
|
+
headers: response.headers,
|
|
240
|
+
});
|
|
233
241
|
}
|
|
234
242
|
};
|
|
235
243
|
`;
|
|
@@ -196,7 +196,15 @@ async function generateGraphQLModule(distPath) {
|
|
|
196
196
|
authDecoder: graphqlOptions ? graphqlOptions.authDecoder : undefined,
|
|
197
197
|
});
|
|
198
198
|
const event = await requestToLegacyEvent(request, cedarContext);
|
|
199
|
-
|
|
199
|
+
const response = await yoga.handle(request, { request, cedarContext, event, requestContext: undefined });
|
|
200
|
+
// GraphQL Yoga returns a PonyfillResponse from @whatwg-node/fetch
|
|
201
|
+
// which is not an instanceof the native Response class. Netlify's
|
|
202
|
+
// bootstrap checks instanceof Response, so we wrap it.
|
|
203
|
+
return new Response(response.body, {
|
|
204
|
+
status: response.status,
|
|
205
|
+
statusText: response.statusText,
|
|
206
|
+
headers: response.headers,
|
|
207
|
+
});
|
|
200
208
|
}
|
|
201
209
|
};
|
|
202
210
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "5.0.0-canary.
|
|
3
|
+
"version": "5.0.0-canary.2450",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"@babel/generator": "7.29.1",
|
|
70
70
|
"@babel/parser": "7.29.3",
|
|
71
71
|
"@babel/traverse": "7.29.0",
|
|
72
|
-
"@cedarjs/api": "5.0.0-canary.
|
|
73
|
-
"@cedarjs/auth": "5.0.0-canary.
|
|
74
|
-
"@cedarjs/babel-config": "5.0.0-canary.
|
|
75
|
-
"@cedarjs/context": "5.0.0-canary.
|
|
76
|
-
"@cedarjs/cookie-jar": "5.0.0-canary.
|
|
77
|
-
"@cedarjs/graphql-server": "5.0.0-canary.
|
|
78
|
-
"@cedarjs/internal": "5.0.0-canary.
|
|
79
|
-
"@cedarjs/project-config": "5.0.0-canary.
|
|
80
|
-
"@cedarjs/server-store": "5.0.0-canary.
|
|
81
|
-
"@cedarjs/testing": "5.0.0-canary.
|
|
82
|
-
"@cedarjs/web": "5.0.0-canary.
|
|
72
|
+
"@cedarjs/api": "5.0.0-canary.2450",
|
|
73
|
+
"@cedarjs/auth": "5.0.0-canary.2450",
|
|
74
|
+
"@cedarjs/babel-config": "5.0.0-canary.2450",
|
|
75
|
+
"@cedarjs/context": "5.0.0-canary.2450",
|
|
76
|
+
"@cedarjs/cookie-jar": "5.0.0-canary.2450",
|
|
77
|
+
"@cedarjs/graphql-server": "5.0.0-canary.2450",
|
|
78
|
+
"@cedarjs/internal": "5.0.0-canary.2450",
|
|
79
|
+
"@cedarjs/project-config": "5.0.0-canary.2450",
|
|
80
|
+
"@cedarjs/server-store": "5.0.0-canary.2450",
|
|
81
|
+
"@cedarjs/testing": "5.0.0-canary.2450",
|
|
82
|
+
"@cedarjs/web": "5.0.0-canary.2450",
|
|
83
83
|
"@fastify/url-data": "6.0.3",
|
|
84
84
|
"@swc/core": "1.15.33",
|
|
85
85
|
"@universal-deploy/store": "^0.2.1",
|