@redmix/api-server 9.0.0-canary.592 → 9.0.0-canary.594
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
CHANGED
@@ -447,7 +447,11 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
|
|
447
447
|
cwd: (0, import_project_config4.getPaths)().api.base,
|
448
448
|
absolute: true
|
449
449
|
});
|
450
|
-
const
|
450
|
+
const filePath = `file://${graphqlFunctionPath}`;
|
451
|
+
const { __rw_graphqlOptions } = await import(filePath);
|
452
|
+
if (!__rw_graphqlOptions) {
|
453
|
+
return;
|
454
|
+
}
|
451
455
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
452
456
|
}
|
453
457
|
const graphqlOptions = redwoodOptions.graphql;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../src/createServer.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,mBAAmB,EACnB,MAAM,EAEP,MAAM,uBAAuB,CAAA;AAqB9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAAC,OAAO,GAAE,mBAAwB,
|
1
|
+
{"version":3,"file":"createServer.d.ts","sourceRoot":"","sources":["../src/createServer.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,mBAAmB,EACnB,MAAM,EAEP,MAAM,uBAAuB,CAAA;AAqB9B;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAsB,YAAY,CAAC,OAAO,GAAE,mBAAwB,mBAkHnE"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,SAAS,CAAA;AAMhB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAKhE,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,
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,SAAS,CAAA;AAMhB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAKhE,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,iBA8GtC"}
|
package/dist/plugins/graphql.js
CHANGED
@@ -55,7 +55,11 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
|
|
55
55
|
cwd: (0, import_project_config.getPaths)().api.base,
|
56
56
|
absolute: true
|
57
57
|
});
|
58
|
-
const
|
58
|
+
const filePath = `file://${graphqlFunctionPath}`;
|
59
|
+
const { __rw_graphqlOptions } = await import(filePath);
|
60
|
+
if (!__rw_graphqlOptions) {
|
61
|
+
return;
|
62
|
+
}
|
59
63
|
redwoodOptions.graphql = __rw_graphqlOptions;
|
60
64
|
}
|
61
65
|
const graphqlOptions = redwoodOptions.graphql;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@redmix/api-server",
|
3
|
-
"version": "9.0.0-canary.
|
3
|
+
"version": "9.0.0-canary.594+5b62a9617",
|
4
4
|
"description": "Redwood's HTTP server for Serverless Functions",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -31,11 +31,11 @@
|
|
31
31
|
"dependencies": {
|
32
32
|
"@fastify/multipart": "8.3.1",
|
33
33
|
"@fastify/url-data": "5.4.0",
|
34
|
-
"@redmix/context": "9.0.0-canary.
|
35
|
-
"@redmix/fastify-web": "9.0.0-canary.
|
36
|
-
"@redmix/internal": "9.0.0-canary.
|
37
|
-
"@redmix/project-config": "9.0.0-canary.
|
38
|
-
"@redmix/web-server": "9.0.0-canary.
|
34
|
+
"@redmix/context": "9.0.0-canary.594",
|
35
|
+
"@redmix/fastify-web": "9.0.0-canary.594",
|
36
|
+
"@redmix/internal": "9.0.0-canary.594",
|
37
|
+
"@redmix/project-config": "9.0.0-canary.594",
|
38
|
+
"@redmix/web-server": "9.0.0-canary.594",
|
39
39
|
"chalk": "4.1.2",
|
40
40
|
"chokidar": "3.6.0",
|
41
41
|
"dotenv-defaults": "5.0.2",
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"yargs": "17.7.2"
|
52
52
|
},
|
53
53
|
"devDependencies": {
|
54
|
-
"@redmix/framework-tools": "9.0.0-canary.
|
54
|
+
"@redmix/framework-tools": "9.0.0-canary.594",
|
55
55
|
"@types/aws-lambda": "8.10.145",
|
56
56
|
"@types/lodash": "4.17.15",
|
57
57
|
"@types/qs": "6.9.16",
|
@@ -63,12 +63,12 @@
|
|
63
63
|
"vitest": "2.1.9"
|
64
64
|
},
|
65
65
|
"peerDependencies": {
|
66
|
-
"@redmix/graphql-server": "9.0.0-canary.
|
66
|
+
"@redmix/graphql-server": "9.0.0-canary.594"
|
67
67
|
},
|
68
68
|
"peerDependenciesMeta": {
|
69
69
|
"@redmix/graphql-server": {
|
70
70
|
"optional": true
|
71
71
|
}
|
72
72
|
},
|
73
|
-
"gitHead": "
|
73
|
+
"gitHead": "5b62a9617f810a95d24a71d5d6dffa532581b026"
|
74
74
|
}
|