@cedarjs/api-server 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.
- package/dist/bin.js +2 -2
- package/dist/cjs/bin.js +1 -1
- package/dist/cjs/plugins/graphql.js +1 -1
- package/dist/plugins/graphql.js +2 -2
- package/package.json +8 -8
package/dist/bin.js
CHANGED
|
@@ -542,7 +542,7 @@ import { pathToFileURL as pathToFileURL3 } from "node:url";
|
|
|
542
542
|
import fastifyMultiPart from "@fastify/multipart";
|
|
543
543
|
import fastifyUrlData2 from "@fastify/url-data";
|
|
544
544
|
import fg2 from "fast-glob";
|
|
545
|
-
import { buildCedarContext as buildCedarContext2 } from "@cedarjs/api/runtime";
|
|
545
|
+
import { buildCedarContext as buildCedarContext2, noopAuthDecoder } from "@cedarjs/api/runtime";
|
|
546
546
|
import { getAsyncStoreInstance as getAsyncStoreInstance3 } from "@cedarjs/context/dist/store";
|
|
547
547
|
import { coerceRootPath as coerceRootPath3 } from "@cedarjs/fastify-web/dist/helpers.js";
|
|
548
548
|
import { createGraphQLYoga } from "@cedarjs/graphql-server";
|
|
@@ -584,7 +584,7 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
|
584
584
|
handler: async (req, reply) => {
|
|
585
585
|
const request = createFetchRequest(req, reply);
|
|
586
586
|
const cedarContext = await buildCedarContext2(request, {
|
|
587
|
-
authDecoder: graphqlOptions.authDecoder
|
|
587
|
+
authDecoder: graphqlOptions.authDecoder ?? noopAuthDecoder
|
|
588
588
|
});
|
|
589
589
|
try {
|
|
590
590
|
return await yoga.handle(request, {
|
package/dist/cjs/bin.js
CHANGED
|
@@ -598,7 +598,7 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
|
598
598
|
handler: async (req, reply) => {
|
|
599
599
|
const request = createFetchRequest(req, reply);
|
|
600
600
|
const cedarContext = await (0, import_runtime2.buildCedarContext)(request, {
|
|
601
|
-
authDecoder: graphqlOptions.authDecoder
|
|
601
|
+
authDecoder: graphqlOptions.authDecoder ?? import_runtime2.noopAuthDecoder
|
|
602
602
|
});
|
|
603
603
|
try {
|
|
604
604
|
return await yoga.handle(request, {
|
|
@@ -78,7 +78,7 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
|
|
|
78
78
|
handler: async (req, reply) => {
|
|
79
79
|
const request = createFetchRequest(req, reply);
|
|
80
80
|
const cedarContext = await (0, import_runtime.buildCedarContext)(request, {
|
|
81
|
-
authDecoder: graphqlOptions.authDecoder
|
|
81
|
+
authDecoder: graphqlOptions.authDecoder ?? import_runtime.noopAuthDecoder
|
|
82
82
|
});
|
|
83
83
|
try {
|
|
84
84
|
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": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -133,11 +133,11 @@
|
|
|
133
133
|
"test:watch": "vitest watch"
|
|
134
134
|
},
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@cedarjs/context": "5.0.
|
|
137
|
-
"@cedarjs/fastify-web": "5.0.
|
|
138
|
-
"@cedarjs/internal": "5.0.
|
|
139
|
-
"@cedarjs/project-config": "5.0.
|
|
140
|
-
"@cedarjs/web-server": "5.0.
|
|
136
|
+
"@cedarjs/context": "5.0.6",
|
|
137
|
+
"@cedarjs/fastify-web": "5.0.6",
|
|
138
|
+
"@cedarjs/internal": "5.0.6",
|
|
139
|
+
"@cedarjs/project-config": "5.0.6",
|
|
140
|
+
"@cedarjs/web-server": "5.0.6",
|
|
141
141
|
"@fastify/multipart": "9.4.0",
|
|
142
142
|
"@fastify/url-data": "6.0.3",
|
|
143
143
|
"ansis": "4.2.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"yargs": "17.7.3"
|
|
156
156
|
},
|
|
157
157
|
"devDependencies": {
|
|
158
|
-
"@cedarjs/framework-tools": "5.0.
|
|
158
|
+
"@cedarjs/framework-tools": "5.0.6",
|
|
159
159
|
"@types/aws-lambda": "8.10.162",
|
|
160
160
|
"@types/dotenv-defaults": "^5.0.0",
|
|
161
161
|
"@types/split2": "4.2.3",
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
"vitest": "3.2.6"
|
|
170
170
|
},
|
|
171
171
|
"peerDependencies": {
|
|
172
|
-
"@cedarjs/graphql-server": "5.0.
|
|
172
|
+
"@cedarjs/graphql-server": "5.0.6"
|
|
173
173
|
},
|
|
174
174
|
"peerDependenciesMeta": {
|
|
175
175
|
"@cedarjs/graphql-server": {
|