@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 CHANGED
@@ -80,5 +80,10 @@ var createServer = ({
80
80
  };
81
81
 
82
82
  //#endregion
83
- exports.Router = _ttoss_http_server.Router;
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 { AuthenticationType, CreateServerInput, Router, ServerContext, createServer };
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 { AuthenticationType, CreateServerInput, Router, ServerContext, createServer };
19
+ export { Router };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/graphql-api-server",
3
- "version": "0.15.6",
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.10.4",
33
- "@ttoss/auth-core": "^0.18.0",
34
- "@ttoss/http-server": "^0.13.1"
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": "^6.0.2",
38
- "graphql": "^16.11.0",
39
- "jest": "^30.4.2",
40
- "supertest": "^7.2.2",
41
- "tsdown": "^0.22.2",
42
- "@ttoss/config": "^1.41.0",
43
- "@ttoss/graphql-api": "^0.13.1"
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.13.1"
47
+ "@ttoss/graphql-api": "^0.14.0"
48
48
  },
49
49
  "publishConfig": {
50
50
  "access": "public",