@cedarjs/vite 5.0.0-canary.2465 → 5.0.0-canary.2467
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,MAAM,CAAA;AA2BrD,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,aAAa,iBAe/D;
|
|
1
|
+
{"version":3,"file":"apiDevMiddleware.d.ts","sourceRoot":"","sources":["../src/apiDevMiddleware.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAc,aAAa,EAAE,MAAM,MAAM,CAAA;AA2BrD,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,aAAa,iBAe/D;AA+GD,wBAAsB,mBAAmB,IAAI,OAAO,CAAC,aAAa,CAAC,CAuElE;AA0BD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,aAAa,GAAG,IAAI,CA0EhE;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,KAIrB,SAAS,OAAO,KAAG,OAAO,CAAC,QAAQ,CAAC,CAoEnD;AAED,wBAAsB,qBAAqB,IAAI,OAAO,CAAC;IACrD,UAAU,EAAE,aAAa,CAAA;IACzB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1B,OAAO,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CACjD,CAAC,CAcD"}
|
package/dist/apiDevMiddleware.js
CHANGED
|
@@ -90,8 +90,8 @@ async function internalLoadApiFunctions(viteServer) {
|
|
|
90
90
|
`[apiDevMiddleware] No handler or handleRequest export found in function: ${fnPath}`
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
if (routeName === "graphql" && "
|
|
94
|
-
extractedGraphqlOptions = mod.
|
|
93
|
+
if (routeName === "graphql" && "__cedar_graphqlOptions" in mod) {
|
|
94
|
+
extractedGraphqlOptions = mod.__cedar_graphqlOptions;
|
|
95
95
|
}
|
|
96
96
|
} catch (err) {
|
|
97
97
|
viteServer.ssrFixStacktrace(err);
|
|
@@ -124,8 +124,8 @@ async function internalLoadApiFunctions(viteServer) {
|
|
|
124
124
|
`[apiDevMiddleware] No handler or handleRequest export found in function: ${fnPath}`
|
|
125
125
|
);
|
|
126
126
|
}
|
|
127
|
-
if (routeName === "graphql" && "
|
|
128
|
-
extractedGraphqlOptions = mod.
|
|
127
|
+
if (routeName === "graphql" && "__cedar_graphqlOptions" in mod) {
|
|
128
|
+
extractedGraphqlOptions = mod.__cedar_graphqlOptions;
|
|
129
129
|
}
|
|
130
130
|
} catch (err) {
|
|
131
131
|
viteServer.ssrFixStacktrace(err);
|
|
@@ -234,8 +234,8 @@ async function generateGraphQLModule(distPath) {
|
|
|
234
234
|
|
|
235
235
|
function getYoga() {
|
|
236
236
|
if (!yogaInitPromise) {
|
|
237
|
-
yogaInitPromise = createGraphQLYoga(
|
|
238
|
-
({ yoga }) => ({ yoga, graphqlOptions:
|
|
237
|
+
yogaInitPromise = createGraphQLYoga(__cedar_graphqlOptions).then(
|
|
238
|
+
({ yoga }) => ({ yoga, graphqlOptions: __cedar_graphqlOptions })
|
|
239
239
|
);
|
|
240
240
|
}
|
|
241
241
|
return yogaInitPromise;
|
|
@@ -201,8 +201,8 @@ async function generateGraphQLModule(distPath) {
|
|
|
201
201
|
|
|
202
202
|
function getYoga() {
|
|
203
203
|
if (!yogaInitPromise) {
|
|
204
|
-
yogaInitPromise = createGraphQLYoga(
|
|
205
|
-
({ yoga }) => ({ yoga, graphqlOptions:
|
|
204
|
+
yogaInitPromise = createGraphQLYoga(__cedar_graphqlOptions).then(
|
|
205
|
+
({ yoga }) => ({ yoga, graphqlOptions: __cedar_graphqlOptions })
|
|
206
206
|
);
|
|
207
207
|
}
|
|
208
208
|
return yogaInitPromise;
|
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.2467",
|
|
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.2467",
|
|
73
|
+
"@cedarjs/auth": "5.0.0-canary.2467",
|
|
74
|
+
"@cedarjs/babel-config": "5.0.0-canary.2467",
|
|
75
|
+
"@cedarjs/context": "5.0.0-canary.2467",
|
|
76
|
+
"@cedarjs/cookie-jar": "5.0.0-canary.2467",
|
|
77
|
+
"@cedarjs/graphql-server": "5.0.0-canary.2467",
|
|
78
|
+
"@cedarjs/internal": "5.0.0-canary.2467",
|
|
79
|
+
"@cedarjs/project-config": "5.0.0-canary.2467",
|
|
80
|
+
"@cedarjs/server-store": "5.0.0-canary.2467",
|
|
81
|
+
"@cedarjs/testing": "5.0.0-canary.2467",
|
|
82
|
+
"@cedarjs/web": "5.0.0-canary.2467",
|
|
83
83
|
"@fastify/url-data": "6.0.3",
|
|
84
84
|
"@swc/core": "1.15.33",
|
|
85
85
|
"@universal-deploy/store": "^0.2.1",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"fastify": "5.8.5",
|
|
100
100
|
"fastify-raw-body": "5.0.0",
|
|
101
101
|
"find-my-way": "8.2.2",
|
|
102
|
-
"http-proxy-middleware": "3.0.
|
|
102
|
+
"http-proxy-middleware": "3.0.6",
|
|
103
103
|
"isbot": "5.1.41",
|
|
104
104
|
"react": "19.2.3",
|
|
105
105
|
"react-server-dom-webpack": "19.2.4",
|