@cedarjs/api-server 6.0.0-canary.2808 → 6.0.0-canary.2811
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/bin.js +2 -2
- package/dist/plugins/graphql.js +2 -2
- package/package.json +9 -9
package/dist/bin.js
CHANGED
|
@@ -547,7 +547,7 @@ import { pathToFileURL as pathToFileURL3 } from "node:url";
|
|
|
547
547
|
import fastifyMultiPart from "@fastify/multipart";
|
|
548
548
|
import fastifyUrlData2 from "@fastify/url-data";
|
|
549
549
|
import fg2 from "fast-glob";
|
|
550
|
-
import { buildCedarContext as buildCedarContext2 } from "@cedarjs/api/runtime";
|
|
550
|
+
import { buildCedarContext as buildCedarContext2, noopAuthDecoder } from "@cedarjs/api/runtime";
|
|
551
551
|
import { getAsyncStoreInstance as getAsyncStoreInstance3 } from "@cedarjs/context/dist/store";
|
|
552
552
|
import { coerceRootPath as coerceRootPath3 } from "@cedarjs/fastify-web/dist/helpers.js";
|
|
553
553
|
import { createGraphQLYoga } from "@cedarjs/graphql-server";
|
|
@@ -589,7 +589,7 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
|
589
589
|
handler: async (req, reply) => {
|
|
590
590
|
const request = createFetchRequest(req, reply);
|
|
591
591
|
const cedarContext = await buildCedarContext2(request, {
|
|
592
|
-
authDecoder: graphqlOptions.authDecoder
|
|
592
|
+
authDecoder: graphqlOptions.authDecoder ?? noopAuthDecoder
|
|
593
593
|
});
|
|
594
594
|
try {
|
|
595
595
|
return await yoga.handle(request, {
|
package/dist/plugins/graphql.js
CHANGED
|
@@ -2,7 +2,7 @@ import { pathToFileURL } from "node:url";
|
|
|
2
2
|
import fastifyMultiPart from "@fastify/multipart";
|
|
3
3
|
import fastifyUrlData from "@fastify/url-data";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
|
-
import { buildCedarContext } from "@cedarjs/api/runtime";
|
|
5
|
+
import { buildCedarContext, noopAuthDecoder } from "@cedarjs/api/runtime";
|
|
6
6
|
import { getAsyncStoreInstance } from "@cedarjs/context/dist/store";
|
|
7
7
|
import { coerceRootPath } from "@cedarjs/fastify-web/dist/helpers.js";
|
|
8
8
|
import { createGraphQLYoga } from "@cedarjs/graphql-server";
|
|
@@ -45,7 +45,7 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
|
|
|
45
45
|
handler: async (req, reply) => {
|
|
46
46
|
const request = createFetchRequest(req, reply);
|
|
47
47
|
const cedarContext = await buildCedarContext(request, {
|
|
48
|
-
authDecoder: graphqlOptions.authDecoder
|
|
48
|
+
authDecoder: graphqlOptions.authDecoder ?? noopAuthDecoder
|
|
49
49
|
});
|
|
50
50
|
try {
|
|
51
51
|
return await yoga.handle(request, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2811",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"test:watch": "vitest watch"
|
|
101
101
|
},
|
|
102
102
|
"dependencies": {
|
|
103
|
-
"@cedarjs/api": "6.0.0-canary.
|
|
104
|
-
"@cedarjs/context": "6.0.0-canary.
|
|
105
|
-
"@cedarjs/fastify-web": "6.0.0-canary.
|
|
106
|
-
"@cedarjs/internal": "6.0.0-canary.
|
|
107
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
108
|
-
"@cedarjs/web-server": "6.0.0-canary.
|
|
103
|
+
"@cedarjs/api": "6.0.0-canary.2811",
|
|
104
|
+
"@cedarjs/context": "6.0.0-canary.2811",
|
|
105
|
+
"@cedarjs/fastify-web": "6.0.0-canary.2811",
|
|
106
|
+
"@cedarjs/internal": "6.0.0-canary.2811",
|
|
107
|
+
"@cedarjs/project-config": "6.0.0-canary.2811",
|
|
108
|
+
"@cedarjs/web-server": "6.0.0-canary.2811",
|
|
109
109
|
"@fastify/multipart": "9.4.0",
|
|
110
110
|
"@fastify/url-data": "6.0.3",
|
|
111
111
|
"ansis": "4.3.1",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"yargs": "17.7.3"
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
126
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2811",
|
|
127
127
|
"@types/aws-lambda": "8.10.162",
|
|
128
128
|
"@types/dotenv-defaults": "^5.0.0",
|
|
129
129
|
"@types/split2": "4.2.3",
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"vitest": "4.1.10"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
|
-
"@cedarjs/graphql-server": "6.0.0-canary.
|
|
141
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2811"
|
|
142
142
|
},
|
|
143
143
|
"peerDependenciesMeta": {
|
|
144
144
|
"@cedarjs/graphql-server": {
|