@cedarjs/api-server 4.0.0-canary.13853 → 4.0.0-canary.13854
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 +3 -15
- package/dist/cjs/bin.js +3 -15
- package/dist/cjs/plugins/graphql.d.ts.map +1 -1
- package/dist/cjs/plugins/graphql.js +3 -15
- package/dist/plugins/graphql.d.ts.map +1 -1
- package/dist/plugins/graphql.js +3 -15
- package/package.json +9 -9
package/dist/bin.js
CHANGED
|
@@ -566,22 +566,10 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
|
566
566
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
|
567
567
|
}
|
|
568
568
|
const graphqlOptions = redwoodOptions.graphql;
|
|
569
|
-
if (graphqlOptions?.realtime) {
|
|
570
|
-
|
|
571
|
-
const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
|
|
572
|
-
originalExtraPlugins.push(
|
|
573
|
-
// This type cast is needed because useCedarRealtime returns an
|
|
574
|
-
// EnvelopPlugin and here we need a YogaPlugin. I can't change the
|
|
575
|
-
// return type of `useCedarRealtime` yet, because it'd be a breaking
|
|
576
|
-
// change.
|
|
577
|
-
useCedarRealtime(graphqlOptions.realtime)
|
|
578
|
-
);
|
|
579
|
-
graphqlOptions.extraPlugins = originalExtraPlugins;
|
|
580
|
-
if (graphqlOptions.realtime.subscriptions) {
|
|
581
|
-
method.push("PUT");
|
|
582
|
-
}
|
|
569
|
+
if (graphqlOptions?.realtime?.subscriptions) {
|
|
570
|
+
method.push("PUT");
|
|
583
571
|
}
|
|
584
|
-
const { yoga } = createGraphQLYoga(graphqlOptions);
|
|
572
|
+
const { yoga } = await createGraphQLYoga(graphqlOptions);
|
|
585
573
|
const graphqlEndpoint = trimSlashes(yoga.graphqlEndpoint);
|
|
586
574
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
587
575
|
for (const routePath of routePaths) {
|
package/dist/cjs/bin.js
CHANGED
|
@@ -580,22 +580,10 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
|
580
580
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
|
581
581
|
}
|
|
582
582
|
const graphqlOptions = redwoodOptions.graphql;
|
|
583
|
-
if (graphqlOptions?.realtime) {
|
|
584
|
-
|
|
585
|
-
const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
|
|
586
|
-
originalExtraPlugins.push(
|
|
587
|
-
// This type cast is needed because useCedarRealtime returns an
|
|
588
|
-
// EnvelopPlugin and here we need a YogaPlugin. I can't change the
|
|
589
|
-
// return type of `useCedarRealtime` yet, because it'd be a breaking
|
|
590
|
-
// change.
|
|
591
|
-
useCedarRealtime(graphqlOptions.realtime)
|
|
592
|
-
);
|
|
593
|
-
graphqlOptions.extraPlugins = originalExtraPlugins;
|
|
594
|
-
if (graphqlOptions.realtime.subscriptions) {
|
|
595
|
-
method.push("PUT");
|
|
596
|
-
}
|
|
583
|
+
if (graphqlOptions?.realtime?.subscriptions) {
|
|
584
|
+
method.push("PUT");
|
|
597
585
|
}
|
|
598
|
-
const { yoga } = (0, import_graphql_server.createGraphQLYoga)(graphqlOptions);
|
|
586
|
+
const { yoga } = await (0, import_graphql_server.createGraphQLYoga)(graphqlOptions);
|
|
599
587
|
const graphqlEndpoint = trimSlashes(yoga.graphqlEndpoint);
|
|
600
588
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
601
589
|
for (const routePath of routePaths) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAA+B,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAA+B,MAAM,SAAS,CAAA;AAO3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBAuGtC"}
|
|
@@ -65,22 +65,10 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
|
|
|
65
65
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
|
66
66
|
}
|
|
67
67
|
const graphqlOptions = redwoodOptions.graphql;
|
|
68
|
-
if (graphqlOptions?.realtime) {
|
|
69
|
-
|
|
70
|
-
const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
|
|
71
|
-
originalExtraPlugins.push(
|
|
72
|
-
// This type cast is needed because useCedarRealtime returns an
|
|
73
|
-
// EnvelopPlugin and here we need a YogaPlugin. I can't change the
|
|
74
|
-
// return type of `useCedarRealtime` yet, because it'd be a breaking
|
|
75
|
-
// change.
|
|
76
|
-
useCedarRealtime(graphqlOptions.realtime)
|
|
77
|
-
);
|
|
78
|
-
graphqlOptions.extraPlugins = originalExtraPlugins;
|
|
79
|
-
if (graphqlOptions.realtime.subscriptions) {
|
|
80
|
-
method.push("PUT");
|
|
81
|
-
}
|
|
68
|
+
if (graphqlOptions?.realtime?.subscriptions) {
|
|
69
|
+
method.push("PUT");
|
|
82
70
|
}
|
|
83
|
-
const { yoga } = (0, import_graphql_server.createGraphQLYoga)(graphqlOptions);
|
|
71
|
+
const { yoga } = await (0, import_graphql_server.createGraphQLYoga)(graphqlOptions);
|
|
84
72
|
const graphqlEndpoint = trimSlashes(yoga.graphqlEndpoint);
|
|
85
73
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
86
74
|
for (const routePath of routePaths) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAA+B,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,eAAe,EAA+B,MAAM,SAAS,CAAA;AAO3E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAKjE,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE;QACP,WAAW,CAAC,EAAE,MAAM,CAAA;QACpB,OAAO,CAAC,EAAE,kBAAkB,CAAA;KAC7B,CAAA;CACF;AAED,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,EACxB,OAAO,EAAE,4BAA4B,iBAuGtC"}
|
package/dist/plugins/graphql.js
CHANGED
|
@@ -32,22 +32,10 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
|
|
|
32
32
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
|
33
33
|
}
|
|
34
34
|
const graphqlOptions = redwoodOptions.graphql;
|
|
35
|
-
if (graphqlOptions?.realtime) {
|
|
36
|
-
|
|
37
|
-
const originalExtraPlugins = graphqlOptions.extraPlugins ?? [];
|
|
38
|
-
originalExtraPlugins.push(
|
|
39
|
-
// This type cast is needed because useCedarRealtime returns an
|
|
40
|
-
// EnvelopPlugin and here we need a YogaPlugin. I can't change the
|
|
41
|
-
// return type of `useCedarRealtime` yet, because it'd be a breaking
|
|
42
|
-
// change.
|
|
43
|
-
useCedarRealtime(graphqlOptions.realtime)
|
|
44
|
-
);
|
|
45
|
-
graphqlOptions.extraPlugins = originalExtraPlugins;
|
|
46
|
-
if (graphqlOptions.realtime.subscriptions) {
|
|
47
|
-
method.push("PUT");
|
|
48
|
-
}
|
|
35
|
+
if (graphqlOptions?.realtime?.subscriptions) {
|
|
36
|
+
method.push("PUT");
|
|
49
37
|
}
|
|
50
|
-
const { yoga } = createGraphQLYoga(graphqlOptions);
|
|
38
|
+
const { yoga } = await createGraphQLYoga(graphqlOptions);
|
|
51
39
|
const graphqlEndpoint = trimSlashes(yoga.graphqlEndpoint);
|
|
52
40
|
const routePaths = ["", "/health", "/readiness", "/stream"];
|
|
53
41
|
for (const routePath of routePaths) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13854+9d523c78b1",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
"test:watch": "vitest watch"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@cedarjs/context": "4.0.0-canary.
|
|
117
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
118
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
119
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
120
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
116
|
+
"@cedarjs/context": "4.0.0-canary.13854",
|
|
117
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13854",
|
|
118
|
+
"@cedarjs/internal": "4.0.0-canary.13854",
|
|
119
|
+
"@cedarjs/project-config": "4.0.0-canary.13854",
|
|
120
|
+
"@cedarjs/web-server": "4.0.0-canary.13854",
|
|
121
121
|
"@fastify/multipart": "9.4.0",
|
|
122
122
|
"@fastify/url-data": "6.0.3",
|
|
123
123
|
"ansis": "4.2.0",
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
"yargs": "17.7.2"
|
|
135
135
|
},
|
|
136
136
|
"devDependencies": {
|
|
137
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
137
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13854",
|
|
138
138
|
"@types/aws-lambda": "8.10.161",
|
|
139
139
|
"@types/dotenv-defaults": "^5.0.0",
|
|
140
140
|
"@types/split2": "4.2.3",
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"vitest": "3.2.4"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
150
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13854"
|
|
151
151
|
},
|
|
152
152
|
"peerDependenciesMeta": {
|
|
153
153
|
"@cedarjs/graphql-server": {
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"publishConfig": {
|
|
158
158
|
"access": "public"
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "9d523c78b135181dcbcecfdae8e4e1143335f36a"
|
|
161
161
|
}
|