File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @ty-ras/server-node" ,
3
- "version" : " 2.2.1 " ,
3
+ "version" : " 2.3.0 " ,
4
4
"author" : {
5
5
"name" : " Stanislav Muhametsin" ,
6
6
31
31
}
32
32
},
33
33
"dependencies" : {
34
- "@ty-ras/server" : " ^2.2.1 "
34
+ "@ty-ras/server" : " ^2.3.0 "
35
35
},
36
36
"devDependencies" : {
37
37
"@ava/get-port" : " 2.0.0" ,
Original file line number Diff line number Diff line change 2
2
* @file This file contains helper function to create Node server callback.
3
3
*/
4
4
5
- import type * as ep from "@ty-ras/endpoint" ;
6
5
import * as server from "@ty-ras/server" ;
7
6
import type * as context from "./context.types" ;
8
7
import * as internal from "./internal" ;
@@ -18,7 +17,7 @@ import type * as http2 from "node:http2";
18
17
* @returns The Koa middleware which will serve the given endpoints.
19
18
*/
20
19
export const createMiddleware = < TStateInfo , TState > (
21
- endpoints : ReadonlyArray < ep . AppEndpoint < context . ServerContext , TStateInfo > > ,
20
+ endpoints : server . ServerEndpoints < context . ServerContext , TStateInfo > ,
22
21
createState ?: context . CreateState < TStateInfo > ,
23
22
events ?: server . ServerEventHandler <
24
23
server . GetContext < context . ServerContext > ,
Original file line number Diff line number Diff line change 2
2
* @file This file exposes function to create Node HTTP 1 or 2 server serving giving TyRAS {@link ep.AppEndpoint}s.
3
3
*/
4
4
5
- import * as ep from "@ty-ras/endpoint" ;
6
5
import * as server from "@ty-ras/server" ;
7
6
8
7
import type * as ctx from "./context.types" ;
@@ -96,7 +95,7 @@ export interface ServerCreationOptions<
96
95
/**
97
96
* The TyRAS {@link ep.AppEndpoint}s to server via returned HTTP server.
98
97
*/
99
- endpoints : ReadonlyArray < ep . AppEndpoint < TServerContext , TStateInfo > > ;
98
+ endpoints : server . ServerEndpoints < TServerContext , TStateInfo > ;
100
99
101
100
/**
102
101
* The callback to create endpoint-specific state objects.
Original file line number Diff line number Diff line change 445
445
dependencies :
446
446
" @ty-ras/endpoint" " ^2.0.0"
447
447
448
- " @ty-ras/server@^2.2.1 " :
449
- version "2.2.1 "
450
- resolved "https://registry.yarnpkg.com/@ty-ras/server/-/server-2.2.1 .tgz#747995863d54ad828191e2cdb6f528231c24939b "
451
- integrity sha512-Qy22YPpjcqrBP698d2Sm5LqmX39hq3aLuOngTRxKhD0kU2y4GooKgrMDCmaKkfteP/0fqoqZG4c20ukeTtPqcg ==
448
+ " @ty-ras/server@^2.3.0 " :
449
+ version "2.3.0 "
450
+ resolved "https://registry.yarnpkg.com/@ty-ras/server/-/server-2.3.0 .tgz#f168669b29f777130823bf583341f83f0ade8ec0 "
451
+ integrity sha512-0DhQqHHwyfDP2YJQhbxl+TAs4yDXKaBAVgs53+nCS0lr0M7Surc1MZ9AUeDQtcZJKc8FkWhUhUpt9aOQjZ89EA ==
452
452
dependencies :
453
453
" @ty-ras/endpoint" " ^2.0.0"
454
454
You can’t perform that action at this time.
0 commit comments