@ttoss/graphql-api-server 0.8.1 → 0.8.3
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 +4 -6
- package/dist/index.d.ts +2 -1
- package/package.json +7 -6
package/dist/esm/index.js
CHANGED
|
@@ -54,13 +54,11 @@ var createServer = ({
|
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
const response = await yoga.
|
|
57
|
+
const response = await yoga.handleNodeRequestAndResponse(ctx.req, ctx.res, ctx);
|
|
58
58
|
ctx.status = response.status;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
}
|
|
59
|
+
response.headers.forEach((value, key) => {
|
|
60
|
+
ctx.append(key, value);
|
|
61
|
+
});
|
|
64
62
|
ctx.body = response.body;
|
|
65
63
|
});
|
|
66
64
|
return app;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ type CreateServerInput = {
|
|
|
13
13
|
};
|
|
14
14
|
cors?: cors.Options;
|
|
15
15
|
} & BuildSchemaInput;
|
|
16
|
+
type ServerContext = App.Context;
|
|
16
17
|
declare const createServer: ({ authenticationType, userPoolConfig, graphiql, cors: corsOptions, ...buildSchemaInput }: CreateServerInput) => App;
|
|
17
18
|
|
|
18
|
-
export { type AuthenticationType, type CreateServerInput, createServer };
|
|
19
|
+
export { type AuthenticationType, type CreateServerInput, type ServerContext, 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.3",
|
|
4
4
|
"description": "GraphQL API Server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -24,20 +24,21 @@
|
|
|
24
24
|
],
|
|
25
25
|
"sideEffects": false,
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"graphql-yoga": "^5.
|
|
27
|
+
"graphql-yoga": "^5.10.4",
|
|
28
28
|
"@ttoss/auth-core": "^0.3.0",
|
|
29
|
-
"@ttoss/http-server": "^0.1.
|
|
30
|
-
"@ttoss/graphql-api": "^0.8.0"
|
|
29
|
+
"@ttoss/http-server": "^0.1.4"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
|
-
"graphql": "^16.6.0"
|
|
32
|
+
"graphql": "^16.6.0",
|
|
33
|
+
"@ttoss/graphql-api": "^0.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/supertest": "^6.0.2",
|
|
37
37
|
"graphql": "^16.9.0",
|
|
38
38
|
"jest": "^29.7.0",
|
|
39
|
-
"supertest": "^
|
|
39
|
+
"supertest": "^7.0.0",
|
|
40
40
|
"tsup": "^8.3.5",
|
|
41
|
+
"@ttoss/graphql-api": "^0.8.1",
|
|
41
42
|
"@ttoss/config": "^1.35.0"
|
|
42
43
|
},
|
|
43
44
|
"keywords": [
|