@bpinternal/readiness 0.0.17 → 0.0.18

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/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "@bpinternal/readiness",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
+ "repository": {
5
+ "url": "https://github.com/botpress/packages"
6
+ },
4
7
  "scripts": {
5
8
  "build": "pnpm run check:type && esbuild --bundle --platform=node --outdir=dist src/index.ts",
6
9
  "start": "node dist/index.js",
@@ -20,7 +23,7 @@
20
23
  "node-fetch": "^3.3.1",
21
24
  "pg": "8.13.1",
22
25
  "redis": "^4.6.4",
23
- "zod": "^3.20.6"
26
+ "zod": "^4.6.6"
24
27
  },
25
28
  "devDependencies": {
26
29
  "@types/express": "^4.17.15",
@@ -30,8 +33,8 @@
30
33
  "typescript": "5.7.2"
31
34
  },
32
35
  "engines": {
33
- "node": ">=16.0.0",
36
+ "node": ">=18.0.0",
34
37
  "pnpm": "8.6.2"
35
38
  },
36
39
  "packageManager": "pnpm@8.6.2"
37
- }
40
+ }
package/readme.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Readiness
2
2
 
3
- Offers a readiness probe for docker ressources like Postgres, Redis, etc.
3
+ Offers a readiness probe for docker resources like Postgres, Redis, etc.
4
4
 
5
5
  ## Usage
6
6
 
@@ -12,6 +12,6 @@ curl http://localhost:9398/ready
12
12
 
13
13
  ## Disclaimer ⚠️
14
14
 
15
- This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutly free to do it. We strongly recommend that you tag your versions properly.
15
+ This package is published under the `@bpinternal` organization. All packages of this organization are meant to be used by the [Botpress](https://github.com/botpress/botpress) team internally and are not meant for our community. Since the packages are catered to our own use-cases, they might have less stable APIs, receive breaking changes without much warning, have minimal documentation and lack community-focused support. However, these packages were still left intentionally public for an important reason : We Love Open-Source. Therefore, if you wish to install or fork this package feel absolutely free to do it. We strongly recommend that you tag your versions properly.
16
16
 
17
17
  The Botpress Engineering team.
package/src/config.ts CHANGED
@@ -50,7 +50,7 @@ export const getConfig = () => {
50
50
  const parsedConfig = configSchema.safeParse(config)
51
51
 
52
52
  if (!parsedConfig.success) {
53
- const zodError = parsedConfig.error.errors[0]
53
+ const zodError = parsedConfig.error.issues[0]
54
54
 
55
55
  if (zodError) {
56
56
  throw new Error(`path: .${zodError.path.join('.')}, message: ${zodError.message}`)