@ttoss/graphql-api-server 0.15.6 → 0.16.0
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/index.cjs +6 -1
- package/dist/index.d.cts +5 -12
- package/dist/index.d.mts +5 -12
- package/package.json +12 -12
package/dist/index.cjs
CHANGED
|
@@ -80,5 +80,10 @@ var createServer = ({
|
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
//#endregion
|
|
83
|
-
exports
|
|
83
|
+
Object.defineProperty(exports, "Router", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
get: function () {
|
|
86
|
+
return _ttoss_http_server.Router;
|
|
87
|
+
}
|
|
88
|
+
});
|
|
84
89
|
exports.createServer = createServer;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { App, Router, cors } from "@ttoss/http-server";
|
|
3
3
|
import { BuildSchemaInput } from "@ttoss/graphql-api";
|
|
4
|
-
|
|
5
4
|
//#region src/index.d.ts
|
|
6
|
-
type AuthenticationType = 'AMAZON_COGNITO_USER_POOLS';
|
|
7
|
-
type CreateServerInput = {
|
|
5
|
+
export type AuthenticationType = 'AMAZON_COGNITO_USER_POOLS';
|
|
6
|
+
export type CreateServerInput = {
|
|
8
7
|
graphiql?: boolean;
|
|
9
8
|
authenticationType?: AuthenticationType;
|
|
10
9
|
userPoolConfig?: {
|
|
@@ -14,13 +13,7 @@ type CreateServerInput = {
|
|
|
14
13
|
};
|
|
15
14
|
cors?: cors.Options;
|
|
16
15
|
} & BuildSchemaInput;
|
|
17
|
-
type ServerContext = App.Context;
|
|
18
|
-
declare const createServer: ({
|
|
19
|
-
authenticationType,
|
|
20
|
-
userPoolConfig,
|
|
21
|
-
graphiql,
|
|
22
|
-
cors: corsOptions,
|
|
23
|
-
...buildSchemaInput
|
|
24
|
-
}: CreateServerInput) => App;
|
|
16
|
+
export type ServerContext = App.Context;
|
|
17
|
+
export declare const createServer: ({ authenticationType, userPoolConfig, graphiql, cors: corsOptions, ...buildSchemaInput }: CreateServerInput) => App;
|
|
25
18
|
//#endregion
|
|
26
|
-
export {
|
|
19
|
+
export { Router };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { App, Router, cors } from "@ttoss/http-server";
|
|
3
3
|
import { BuildSchemaInput } from "@ttoss/graphql-api";
|
|
4
|
-
|
|
5
4
|
//#region src/index.d.ts
|
|
6
|
-
type AuthenticationType = 'AMAZON_COGNITO_USER_POOLS';
|
|
7
|
-
type CreateServerInput = {
|
|
5
|
+
export type AuthenticationType = 'AMAZON_COGNITO_USER_POOLS';
|
|
6
|
+
export type CreateServerInput = {
|
|
8
7
|
graphiql?: boolean;
|
|
9
8
|
authenticationType?: AuthenticationType;
|
|
10
9
|
userPoolConfig?: {
|
|
@@ -14,13 +13,7 @@ type CreateServerInput = {
|
|
|
14
13
|
};
|
|
15
14
|
cors?: cors.Options;
|
|
16
15
|
} & BuildSchemaInput;
|
|
17
|
-
type ServerContext = App.Context;
|
|
18
|
-
declare const createServer: ({
|
|
19
|
-
authenticationType,
|
|
20
|
-
userPoolConfig,
|
|
21
|
-
graphiql,
|
|
22
|
-
cors: corsOptions,
|
|
23
|
-
...buildSchemaInput
|
|
24
|
-
}: CreateServerInput) => App;
|
|
16
|
+
export type ServerContext = App.Context;
|
|
17
|
+
export declare const createServer: ({ authenticationType, userPoolConfig, graphiql, cors: corsOptions, ...buildSchemaInput }: CreateServerInput) => App;
|
|
25
18
|
//#endregion
|
|
26
|
-
export {
|
|
19
|
+
export { Router };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/graphql-api-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "GraphQL API Server",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -29,22 +29,22 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"graphql-yoga": "^5.
|
|
33
|
-
"@ttoss/
|
|
34
|
-
"@ttoss/
|
|
32
|
+
"graphql-yoga": "^5.24.4",
|
|
33
|
+
"@ttoss/http-server": "^0.14.0",
|
|
34
|
+
"@ttoss/auth-core": "^0.19.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/supertest": "^
|
|
38
|
-
"graphql": "^
|
|
39
|
-
"jest": "^30.
|
|
40
|
-
"supertest": "^7.
|
|
41
|
-
"tsdown": "^0.
|
|
42
|
-
"@ttoss/config": "^
|
|
43
|
-
"@ttoss/graphql-api": "^0.
|
|
37
|
+
"@types/supertest": "^7.2.1",
|
|
38
|
+
"graphql": "^17.0.2",
|
|
39
|
+
"jest": "^30.5.2",
|
|
40
|
+
"supertest": "^7.3.1",
|
|
41
|
+
"tsdown": "^0.23.1",
|
|
42
|
+
"@ttoss/config": "^2.0.0",
|
|
43
|
+
"@ttoss/graphql-api": "^0.14.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"graphql": "^16.6.0",
|
|
47
|
-
"@ttoss/graphql-api": "^0.
|
|
47
|
+
"@ttoss/graphql-api": "^0.14.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public",
|