@ttoss/graphql-api-server 0.8.9 → 0.8.11
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/esm/index.js +9 -4
- package/package.json +6 -6
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __name = (target, value) => __defProp(target, "name", {
|
|
4
|
+
value,
|
|
5
|
+
configurable: true
|
|
6
|
+
});
|
|
2
7
|
|
|
3
8
|
// src/index.ts
|
|
4
9
|
import { App, Router, cors } from "@ttoss/http-server";
|
|
5
10
|
import { buildSchema } from "@ttoss/graphql-api";
|
|
6
11
|
import { CognitoJwtVerifier } from "@ttoss/auth-core/amazon-cognito";
|
|
7
12
|
import { createYoga } from "graphql-yoga";
|
|
8
|
-
var createServer = ({
|
|
13
|
+
var createServer = /* @__PURE__ */__name(({
|
|
9
14
|
authenticationType,
|
|
10
15
|
userPoolConfig,
|
|
11
16
|
graphiql,
|
|
@@ -20,8 +25,8 @@ var createServer = ({
|
|
|
20
25
|
landingPage: false,
|
|
21
26
|
logging: false,
|
|
22
27
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
28
|
+
* Disable CORS, as it's handled by Koa middleware
|
|
29
|
+
*/
|
|
25
30
|
cors: false
|
|
26
31
|
});
|
|
27
32
|
const jwtVerifier = (() => {
|
|
@@ -62,5 +67,5 @@ var createServer = ({
|
|
|
62
67
|
ctx.body = response.body;
|
|
63
68
|
});
|
|
64
69
|
return app;
|
|
65
|
-
};
|
|
70
|
+
}, "createServer");
|
|
66
71
|
export { Router, createServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/graphql-api-server",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.11",
|
|
4
4
|
"description": "GraphQL API Server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"graphql-yoga": "^5.10.4",
|
|
28
|
-
"@ttoss/auth-core": "^0.3.
|
|
29
|
-
"@ttoss/http-server": "^0.1.
|
|
28
|
+
"@ttoss/auth-core": "^0.3.7",
|
|
29
|
+
"@ttoss/http-server": "^0.1.11"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"graphql": "^16.6.0",
|
|
33
|
-
"@ttoss/graphql-api": "^0.8.
|
|
33
|
+
"@ttoss/graphql-api": "^0.8.9"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/supertest": "^6.0.2",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"jest": "^30.0.4",
|
|
39
39
|
"supertest": "^7.0.0",
|
|
40
40
|
"tsup": "^8.5.0",
|
|
41
|
-
"@ttoss/config": "^1.35.
|
|
42
|
-
"@ttoss/graphql-api": "^0.8.
|
|
41
|
+
"@ttoss/config": "^1.35.7",
|
|
42
|
+
"@ttoss/graphql-api": "^0.8.9"
|
|
43
43
|
},
|
|
44
44
|
"keywords": [
|
|
45
45
|
"api",
|