@cedarjs/api-server 6.0.0-canary.2820 → 6.0.0-canary.2823

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
@@ -646,7 +646,9 @@ async function redwoodFastifyGraphQLServer(fastify2, options) {
646
646
  done();
647
647
  });
648
648
  } catch (e) {
649
- console.log(e);
649
+ const message = e instanceof Error ? e.message : String(e);
650
+ fastify2.log.error(e, `Failed to set up the GraphQL server: ${message}`);
651
+ throw e;
650
652
  }
651
653
  }
652
654
  function trimSlashes(path5) {
@@ -1 +1 @@
1
- {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,SAAS,CAAA;AAOhB,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,iBAuHtC"}
1
+ {"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../src/plugins/graphql.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,eAAe,EAIhB,MAAM,SAAS,CAAA;AAOhB,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,iBA+HtC"}
@@ -74,7 +74,9 @@ async function redwoodFastifyGraphQLServer(fastify, options) {
74
74
  done();
75
75
  });
76
76
  } catch (e) {
77
- console.log(e);
77
+ const message = e instanceof Error ? e.message : String(e);
78
+ fastify.log.error(e, `Failed to set up the GraphQL server: ${message}`);
79
+ throw e;
78
80
  }
79
81
  }
80
82
  function trimSlashes(path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cedarjs/api-server",
3
- "version": "6.0.0-canary.2820",
3
+ "version": "6.0.0-canary.2823",
4
4
  "description": "CedarJS's HTTP server for Serverless Functions",
5
5
  "repository": {
6
6
  "type": "git",
@@ -100,12 +100,12 @@
100
100
  "test:watch": "vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@cedarjs/api": "6.0.0-canary.2820",
104
- "@cedarjs/context": "6.0.0-canary.2820",
105
- "@cedarjs/fastify-web": "6.0.0-canary.2820",
106
- "@cedarjs/internal": "6.0.0-canary.2820",
107
- "@cedarjs/project-config": "6.0.0-canary.2820",
108
- "@cedarjs/web-server": "6.0.0-canary.2820",
103
+ "@cedarjs/api": "6.0.0-canary.2823",
104
+ "@cedarjs/context": "6.0.0-canary.2823",
105
+ "@cedarjs/fastify-web": "6.0.0-canary.2823",
106
+ "@cedarjs/internal": "6.0.0-canary.2823",
107
+ "@cedarjs/project-config": "6.0.0-canary.2823",
108
+ "@cedarjs/web-server": "6.0.0-canary.2823",
109
109
  "@fastify/multipart": "9.4.0",
110
110
  "@fastify/url-data": "6.0.3",
111
111
  "ansis": "4.3.1",
@@ -123,7 +123,7 @@
123
123
  "yargs": "17.7.3"
124
124
  },
125
125
  "devDependencies": {
126
- "@cedarjs/framework-tools": "6.0.0-canary.2820",
126
+ "@cedarjs/framework-tools": "6.0.0-canary.2823",
127
127
  "@types/aws-lambda": "8.10.162",
128
128
  "@types/dotenv-defaults": "^5.0.0",
129
129
  "@types/split2": "4.2.3",
@@ -138,7 +138,7 @@
138
138
  "vitest": "4.1.10"
139
139
  },
140
140
  "peerDependencies": {
141
- "@cedarjs/graphql-server": "6.0.0-canary.2820"
141
+ "@cedarjs/graphql-server": "6.0.0-canary.2823"
142
142
  },
143
143
  "peerDependenciesMeta": {
144
144
  "@cedarjs/graphql-server": {