@redmix/api-server 9.0.0-canary.591 → 9.0.0-canary.593

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 { __rw_graphqlOptions } = await import(`file://${graphqlFunctionPath}`);
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,mBAiHnE"}
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,iBAoGtC"}
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"}
@@ -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 { __rw_graphqlOptions } = await import(`file://${graphqlFunctionPath}`);
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.591+7910eb758",
3
+ "version": "9.0.0-canary.593+5e00409a3",
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.591",
35
- "@redmix/fastify-web": "9.0.0-canary.591",
36
- "@redmix/internal": "9.0.0-canary.591",
37
- "@redmix/project-config": "9.0.0-canary.591",
38
- "@redmix/web-server": "9.0.0-canary.591",
34
+ "@redmix/context": "9.0.0-canary.593",
35
+ "@redmix/fastify-web": "9.0.0-canary.593",
36
+ "@redmix/internal": "9.0.0-canary.593",
37
+ "@redmix/project-config": "9.0.0-canary.593",
38
+ "@redmix/web-server": "9.0.0-canary.593",
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.591",
54
+ "@redmix/framework-tools": "9.0.0-canary.593",
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.591"
66
+ "@redmix/graphql-server": "9.0.0-canary.593"
67
67
  },
68
68
  "peerDependenciesMeta": {
69
69
  "@redmix/graphql-server": {
70
70
  "optional": true
71
71
  }
72
72
  },
73
- "gitHead": "7910eb758442af81a0318c0f66f23fbf66330f9e"
73
+ "gitHead": "5e00409a338a93e78077fddac17dd07bb1a4cea8"
74
74
  }