@platformatic/globals 2.62.1 → 2.63.1

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +2 -1
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -49,7 +49,8 @@ interface PlatformaticGlobalInterface {
49
49
  setOpenapiSchema(schema: object): void
50
50
  setGraphqlSchema(schema: object): void
51
51
  setConnectionString(connection: string): void
52
- setCustomHealthCheck(healthCheck: () => boolean | Promise<boolean>): void
52
+ setCustomHealthCheck(healthCheck: () => boolean | Promise<boolean> | { status: boolean, statusCode?: number, body?: string } | Promise<{ status: boolean, statusCode?: number, body?: string }>): void
53
+ setCustomReadinessCheck(readinessCheck: () => boolean | Promise<boolean> | { status: boolean, statusCode?: number, body?: string } | Promise<{ status: boolean, statusCode?: number, body?: string }>): void
53
54
  }
54
55
 
55
56
  export type PlatformaticGlobal = Optional<PlatformaticGlobalInterface>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/globals",
3
- "version": "2.62.1",
3
+ "version": "2.63.1",
4
4
  "description": "Platformatic Global Object Getter",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -18,7 +18,7 @@
18
18
  "homepage": "https://github.com/platformatic/platformatic#readme",
19
19
  "devDependencies": {
20
20
  "@types/node": "^22.10.6",
21
- "borp": "^0.19.0",
21
+ "borp": "^0.20.0",
22
22
  "eslint": "^9.18.0",
23
23
  "neostandard": "^0.12.0",
24
24
  "typescript": "^5.7.3"