@cedarjs/api-server 7.0.0-canary.3181 → 7.0.0-canary.3184
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 +8 -8
package/dist/bin.js
CHANGED
|
@@ -588,7 +588,7 @@ import fastifyUrlData2 from "@fastify/url-data";
|
|
|
588
588
|
import fg2 from "fast-glob";
|
|
589
589
|
import { getAsyncStoreInstance as getAsyncStoreInstance3 } from "@cedarjs/context/dist/store";
|
|
590
590
|
import { coerceRootPath as coerceRootPath3 } from "@cedarjs/fastify-web/dist/helpers.js";
|
|
591
|
-
import {
|
|
591
|
+
import { createGraphQLServer } from "@cedarjs/graphql-server";
|
|
592
592
|
import { getPaths as getPaths3 } from "@cedarjs/project-config";
|
|
593
593
|
async function cedarFastifyGraphQLServer(fastify2, options) {
|
|
594
594
|
const cedarOptions = options.cedar ?? {};
|
|
@@ -620,7 +620,7 @@ async function cedarFastifyGraphQLServer(fastify2, options) {
|
|
|
620
620
|
if (graphqlOptions?.realtime?.subscriptions) {
|
|
621
621
|
method.push("PUT");
|
|
622
622
|
}
|
|
623
|
-
const graphqlServer = await
|
|
623
|
+
const graphqlServer = await createGraphQLServer(graphqlOptions);
|
|
624
624
|
const graphqlEndpoint = trimSlashes(graphqlServer.yoga.graphqlEndpoint);
|
|
625
625
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
626
626
|
for (const routePath of routePaths) {
|
package/dist/plugins/graphql.js
CHANGED
|
@@ -4,7 +4,7 @@ import fastifyUrlData from "@fastify/url-data";
|
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
import { getAsyncStoreInstance } from "@cedarjs/context/dist/store";
|
|
6
6
|
import { coerceRootPath } from "@cedarjs/fastify-web/dist/helpers.js";
|
|
7
|
-
import {
|
|
7
|
+
import { createGraphQLServer } from "@cedarjs/graphql-server";
|
|
8
8
|
import { getPaths } from "@cedarjs/project-config";
|
|
9
9
|
import { lambdaEventForFastifyRequest } from "../requestHandlers/awsLambdaFastify.js";
|
|
10
10
|
async function cedarFastifyGraphQLServer(fastify, options) {
|
|
@@ -37,7 +37,7 @@ async function cedarFastifyGraphQLServer(fastify, options) {
|
|
|
37
37
|
if (graphqlOptions?.realtime?.subscriptions) {
|
|
38
38
|
method.push("PUT");
|
|
39
39
|
}
|
|
40
|
-
const graphqlServer = await
|
|
40
|
+
const graphqlServer = await createGraphQLServer(graphqlOptions);
|
|
41
41
|
const graphqlEndpoint = trimSlashes(graphqlServer.yoga.graphqlEndpoint);
|
|
42
42
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
43
43
|
for (const routePath of routePaths) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3184",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
"test:watch": "vitest watch"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@cedarjs/api": "7.0.0-canary.
|
|
96
|
-
"@cedarjs/context": "7.0.0-canary.
|
|
97
|
-
"@cedarjs/fastify-web": "7.0.0-canary.
|
|
98
|
-
"@cedarjs/project-config": "7.0.0-canary.
|
|
99
|
-
"@cedarjs/web-server": "7.0.0-canary.
|
|
95
|
+
"@cedarjs/api": "7.0.0-canary.3184",
|
|
96
|
+
"@cedarjs/context": "7.0.0-canary.3184",
|
|
97
|
+
"@cedarjs/fastify-web": "7.0.0-canary.3184",
|
|
98
|
+
"@cedarjs/project-config": "7.0.0-canary.3184",
|
|
99
|
+
"@cedarjs/web-server": "7.0.0-canary.3184",
|
|
100
100
|
"@fastify/multipart": "9.4.0",
|
|
101
101
|
"@fastify/url-data": "6.0.4",
|
|
102
102
|
"ansis": "4.3.1",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"yargs": "17.7.3"
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@cedarjs/framework-tools": "7.0.0-canary.
|
|
116
|
+
"@cedarjs/framework-tools": "7.0.0-canary.3184",
|
|
117
117
|
"@fastify/compress": "9.2.0",
|
|
118
118
|
"@types/aws-lambda": "8.10.163",
|
|
119
119
|
"@types/dotenv-defaults": "^5.0.0",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"vitest": "4.1.11"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
|
-
"@cedarjs/graphql-server": "7.0.0-canary.
|
|
132
|
+
"@cedarjs/graphql-server": "7.0.0-canary.3184"
|
|
133
133
|
},
|
|
134
134
|
"peerDependenciesMeta": {
|
|
135
135
|
"@cedarjs/graphql-server": {
|