@cedarjs/vite 5.0.5 → 5.0.6
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.
|
@@ -223,7 +223,7 @@ async function generateGraphQLModule(distPath) {
|
|
|
223
223
|
include: ["__cedar_graphqlOptions"]
|
|
224
224
|
});
|
|
225
225
|
return `
|
|
226
|
-
import { buildCedarContext, requestToLegacyEvent } from '@cedarjs/api/runtime';
|
|
226
|
+
import { buildCedarContext, noopAuthDecoder, requestToLegacyEvent } from '@cedarjs/api/runtime';
|
|
227
227
|
import { createGraphQLYoga } from '@cedarjs/graphql-server';
|
|
228
228
|
|
|
229
229
|
// Inlined bundle of ${import_node_path.default.basename(distPath)} (node_modules kept external)
|
|
@@ -244,7 +244,7 @@ async function generateGraphQLModule(distPath) {
|
|
|
244
244
|
async fetch(request) {
|
|
245
245
|
const { yoga, graphqlOptions } = await getYoga();
|
|
246
246
|
const cedarContext = await buildCedarContext(request, {
|
|
247
|
-
authDecoder: graphqlOptions
|
|
247
|
+
authDecoder: graphqlOptions?.authDecoder ?? noopAuthDecoder,
|
|
248
248
|
});
|
|
249
249
|
const event = await requestToLegacyEvent(request, cedarContext);
|
|
250
250
|
// Wrap yoga.handle in an AsyncLocalStorage run so directive
|
|
@@ -190,7 +190,7 @@ async function generateGraphQLModule(distPath) {
|
|
|
190
190
|
include: ["__cedar_graphqlOptions"]
|
|
191
191
|
});
|
|
192
192
|
return `
|
|
193
|
-
import { buildCedarContext, requestToLegacyEvent } from '@cedarjs/api/runtime';
|
|
193
|
+
import { buildCedarContext, noopAuthDecoder, requestToLegacyEvent } from '@cedarjs/api/runtime';
|
|
194
194
|
import { createGraphQLYoga } from '@cedarjs/graphql-server';
|
|
195
195
|
|
|
196
196
|
// Inlined bundle of ${path.basename(distPath)} (node_modules kept external)
|
|
@@ -211,7 +211,7 @@ async function generateGraphQLModule(distPath) {
|
|
|
211
211
|
async fetch(request) {
|
|
212
212
|
const { yoga, graphqlOptions } = await getYoga();
|
|
213
213
|
const cedarContext = await buildCedarContext(request, {
|
|
214
|
-
authDecoder: graphqlOptions
|
|
214
|
+
authDecoder: graphqlOptions?.authDecoder ?? noopAuthDecoder,
|
|
215
215
|
});
|
|
216
216
|
const event = await requestToLegacyEvent(request, cedarContext);
|
|
217
217
|
// Wrap yoga.handle in an AsyncLocalStorage run so directive
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/vite",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Vite configuration package for CedarJS",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
"@babel/parser": "7.29.7",
|
|
64
64
|
"@babel/traverse": "7.29.7",
|
|
65
65
|
"@babel/types": "7.29.7",
|
|
66
|
-
"@cedarjs/api": "5.0.
|
|
67
|
-
"@cedarjs/babel-config": "5.0.
|
|
68
|
-
"@cedarjs/context": "5.0.
|
|
69
|
-
"@cedarjs/cookie-jar": "5.0.
|
|
70
|
-
"@cedarjs/graphql-server": "5.0.
|
|
71
|
-
"@cedarjs/internal": "5.0.
|
|
72
|
-
"@cedarjs/project-config": "5.0.
|
|
73
|
-
"@cedarjs/server-store": "5.0.
|
|
74
|
-
"@cedarjs/testing": "5.0.
|
|
66
|
+
"@cedarjs/api": "5.0.6",
|
|
67
|
+
"@cedarjs/babel-config": "5.0.6",
|
|
68
|
+
"@cedarjs/context": "5.0.6",
|
|
69
|
+
"@cedarjs/cookie-jar": "5.0.6",
|
|
70
|
+
"@cedarjs/graphql-server": "5.0.6",
|
|
71
|
+
"@cedarjs/internal": "5.0.6",
|
|
72
|
+
"@cedarjs/project-config": "5.0.6",
|
|
73
|
+
"@cedarjs/server-store": "5.0.6",
|
|
74
|
+
"@cedarjs/testing": "5.0.6",
|
|
75
75
|
"@fastify/url-data": "6.0.3",
|
|
76
76
|
"@swc/core": "1.15.41",
|
|
77
77
|
"@universal-deploy/store": "^0.2.1",
|
|
@@ -105,9 +105,9 @@
|
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
107
|
"@arethetypeswrong/cli": "0.18.4",
|
|
108
|
-
"@cedarjs/auth": "5.0.
|
|
109
|
-
"@cedarjs/router": "5.0.
|
|
110
|
-
"@cedarjs/web": "5.0.
|
|
108
|
+
"@cedarjs/auth": "5.0.6",
|
|
109
|
+
"@cedarjs/router": "5.0.6",
|
|
110
|
+
"@cedarjs/web": "5.0.6",
|
|
111
111
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|
|
112
112
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
113
113
|
"@types/aws-lambda": "8.10.162",
|
|
@@ -126,9 +126,9 @@
|
|
|
126
126
|
"vitest": "3.2.6"
|
|
127
127
|
},
|
|
128
128
|
"peerDependencies": {
|
|
129
|
-
"@cedarjs/auth": "5.0.
|
|
130
|
-
"@cedarjs/router": "5.0.
|
|
131
|
-
"@cedarjs/web": "5.0.
|
|
129
|
+
"@cedarjs/auth": "5.0.6",
|
|
130
|
+
"@cedarjs/router": "5.0.6",
|
|
131
|
+
"@cedarjs/web": "5.0.6"
|
|
132
132
|
},
|
|
133
133
|
"engines": {
|
|
134
134
|
"node": ">=24"
|