connect-ready 1.0.13 → 1.0.14
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/index.d.ts +17 -0
- package/package.json +8 -7
package/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// index.d.ts
|
|
2
|
+
|
|
3
|
+
declare function setStatus(code: number): void;
|
|
4
|
+
declare function getStatus(): number;
|
|
5
|
+
declare function route(req: any, res: any): void;
|
|
6
|
+
declare function gracefulShutdownKeepaliveConnections(req: any, res: any, next: any): void;
|
|
7
|
+
declare function enableTooBusy(lag?: number): void;
|
|
8
|
+
declare function shutdown(signal: any, error: any, cb: any, terminationFile: any, logger: any): void;
|
|
9
|
+
|
|
10
|
+
export {
|
|
11
|
+
setStatus,
|
|
12
|
+
getStatus,
|
|
13
|
+
route,
|
|
14
|
+
shutdown,
|
|
15
|
+
enableTooBusy,
|
|
16
|
+
gracefulShutdownKeepaliveConnections,
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "connect-ready",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "express route that indicates whether a service is ready or not",
|
|
5
5
|
"main": "index.js",
|
|
6
|
+
"types": "index.d.ts",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "mocha test",
|
|
8
9
|
"test:cover": "c8 --reporter=lcov --reporter=text npm test",
|
|
@@ -24,13 +25,13 @@
|
|
|
24
25
|
},
|
|
25
26
|
"homepage": "https://github.com/dcolens/connect-ready#readme",
|
|
26
27
|
"devDependencies": {
|
|
27
|
-
"c8": "^
|
|
28
|
+
"c8": "^9.1.0",
|
|
28
29
|
"coveralls": "^3.1.1",
|
|
29
|
-
"eslint": "^8.
|
|
30
|
-
"eslint-config-prettier": "^
|
|
31
|
-
"eslint-plugin-prettier": "^
|
|
32
|
-
"mocha": "^
|
|
33
|
-
"prettier": "^2.5
|
|
30
|
+
"eslint": "^8.56.0",
|
|
31
|
+
"eslint-config-prettier": "^9.1.0",
|
|
32
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
33
|
+
"mocha": "^10.3.0",
|
|
34
|
+
"prettier": "^3.2.5",
|
|
34
35
|
"toobusy-js": "^0.5.1"
|
|
35
36
|
},
|
|
36
37
|
"optionalDependencies": {
|