@loopback/http-server 4.0.4 → 4.0.6
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/http-server.d.ts +4 -4
- package/package.json +8 -8
package/dist/http-server.d.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { AddressInfo, ListenOptions } from 'net';
|
|
|
7
7
|
/**
|
|
8
8
|
* Request listener function for http/https requests
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
|
|
11
11
|
/**
|
|
12
12
|
* The following are for configuring properties which are directly set on
|
|
13
13
|
* https://nodejs.org/api/http.html#http_class_http_server and
|
|
14
14
|
* https://nodejs.org/api/net.html#net_class_net_server
|
|
15
15
|
*/
|
|
16
|
-
export
|
|
16
|
+
export type HttpServerProperties = Pick<Server, 'keepAliveTimeout' | 'headersTimeout' | 'maxConnections' | 'maxHeadersCount' | 'timeout'>;
|
|
17
17
|
/**
|
|
18
18
|
* Base options that are common to http and https servers
|
|
19
19
|
*/
|
|
@@ -48,12 +48,12 @@ export interface HttpsOptions extends BaseHttpOptions, https.ServerOptions {
|
|
|
48
48
|
* Possible server options
|
|
49
49
|
*
|
|
50
50
|
*/
|
|
51
|
-
export
|
|
51
|
+
export type HttpServerOptions = HttpOptions | HttpsOptions;
|
|
52
52
|
/**
|
|
53
53
|
* Supported protocols
|
|
54
54
|
*
|
|
55
55
|
*/
|
|
56
|
-
export
|
|
56
|
+
export type HttpProtocol = 'http' | 'https';
|
|
57
57
|
/**
|
|
58
58
|
* HTTP / HTTPS server used by LoopBack's RestServer
|
|
59
59
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/http-server",
|
|
3
3
|
"description": "A wrapper for creating HTTP/HTTPS servers",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -34,16 +34,16 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"debug": "^4.3.4",
|
|
36
36
|
"stoppable": "^1.1.0",
|
|
37
|
-
"tslib": "^2.4.
|
|
37
|
+
"tslib": "^2.4.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@loopback/build": "^9.0.
|
|
41
|
-
"@loopback/core": "^4.0.
|
|
42
|
-
"@loopback/eslint-config": "^13.0.
|
|
43
|
-
"@loopback/testlab": "^5.0.
|
|
40
|
+
"@loopback/build": "^9.0.6",
|
|
41
|
+
"@loopback/core": "^4.0.6",
|
|
42
|
+
"@loopback/eslint-config": "^13.0.6",
|
|
43
|
+
"@loopback/testlab": "^5.0.6",
|
|
44
44
|
"@types/debug": "^4.1.7",
|
|
45
|
-
"@types/node": "^14.18.
|
|
45
|
+
"@types/node": "^14.18.34",
|
|
46
46
|
"@types/stoppable": "^1.1.1"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "709a5ecd1ffddeb02262cecabf7b663c7b4d7e47"
|
|
49
49
|
}
|