@nexusts/health 0.7.5 → 0.7.7

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.
@@ -12,9 +12,45 @@ import type { HealthConfig } from "./types.js";
12
12
  export declare class HealthController {
13
13
  private readonly health;
14
14
  constructor(health: HealthCheckService);
15
- live(c: Context, _res: Response): Promise<any>;
16
- ready(c: Context, _res: Response): Promise<any>;
17
- startup(c: Context, _res: Response): Promise<any>;
15
+ live(c: Context, _res: Response): Promise<Response & import("hono").TypedResponse<{
16
+ status: import("./types.js").HealthStatus;
17
+ results: {
18
+ name: string;
19
+ result: {
20
+ status: import("./types.js").HealthStatus;
21
+ data?: import("hono/utils/types").JSONValue;
22
+ message?: string;
23
+ };
24
+ }[];
25
+ durationMs: number;
26
+ timestamp: string;
27
+ }, 200 | 503, "json">>;
28
+ ready(c: Context, _res: Response): Promise<Response & import("hono").TypedResponse<{
29
+ status: import("./types.js").HealthStatus;
30
+ results: {
31
+ name: string;
32
+ result: {
33
+ status: import("./types.js").HealthStatus;
34
+ data?: import("hono/utils/types").JSONValue;
35
+ message?: string;
36
+ };
37
+ }[];
38
+ durationMs: number;
39
+ timestamp: string;
40
+ }, 200 | 503, "json">>;
41
+ startup(c: Context, _res: Response): Promise<Response & import("hono").TypedResponse<{
42
+ status: import("./types.js").HealthStatus;
43
+ results: {
44
+ name: string;
45
+ result: {
46
+ status: import("./types.js").HealthStatus;
47
+ data?: import("hono/utils/types").JSONValue;
48
+ message?: string;
49
+ };
50
+ }[];
51
+ durationMs: number;
52
+ timestamp: string;
53
+ }, 200 | 503, "json">>;
18
54
  private respond;
19
55
  }
20
56
  declare module "./health.service.js" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexusts/health",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Health check endpoints (live, ready, startup)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -26,6 +26,6 @@
26
26
  ],
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
- "@nexusts/core": "^0.7.5"
29
+ "@nexusts/core": "^0.7.7"
30
30
  }
31
31
  }