@visulima/health-check 3.0.1 → 3.0.3
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/CHANGELOG.md +22 -1
- package/dist/index.js +1 -1
- package/dist/packem_shared/healthCheckHandler-Qlz3z6-Z.js +1 -0
- package/dist/packem_shared/healthReadyHandler-v8U44iS-.js +1 -0
- package/dist/packem_shared/pingCheck-B2M9sUy-.js +1 -0
- package/package.json +2 -2
- package/dist/packem_shared/healthCheckHandler-l2w9DVbg.js +0 -1
- package/dist/packem_shared/healthReadyHandler-DV7Ch0fg.js +0 -1
- package/dist/packem_shared/pingCheck-kq5XiIFg.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/health-check [3.0.3](https://github.com/visulima/visulima/compare/@visulima/health-check@3.0.2...@visulima/health-check@3.0.3) (2025-11-07)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update TypeScript configurations and improve linting across multiple packages ([6f25ec7](https://github.com/visulima/visulima/commit/6f25ec7841da7246f8f9166efc5292a7089d37ee))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* update npm and pnpm configurations for monorepo optimization ([#564](https://github.com/visulima/visulima/issues/564)) ([5512b42](https://github.com/visulima/visulima/commit/5512b42f672c216b6a3c9e39035199a4ebd9a4b8))
|
|
10
|
+
|
|
11
|
+
## @visulima/health-check [3.0.2](https://github.com/visulima/visulima/compare/@visulima/health-check@3.0.1...@visulima/health-check@3.0.2) (2025-11-05)
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* update dependencies across multiple packages ([36a47f2](https://github.com/visulima/visulima/commit/36a47f26d65d25a7b4d8371186710e7d0ab61a2b))
|
|
16
|
+
|
|
17
|
+
### Miscellaneous Chores
|
|
18
|
+
|
|
19
|
+
* update dependencies across multiple packages ([c526462](https://github.com/visulima/visulima/commit/c52646260c2ae8bbf85692e642f305f47a158d4e))
|
|
20
|
+
* update package dependencies and configurations ([7bfe7e7](https://github.com/visulima/visulima/commit/7bfe7e71869580900aab50efb064b4293994ed9a))
|
|
21
|
+
|
|
1
22
|
## @visulima/health-check [3.0.1](https://github.com/visulima/visulima/compare/@visulima/health-check@3.0.0...@visulima/health-check@3.0.1) (2025-10-21)
|
|
2
23
|
|
|
3
24
|
### Bug Fixes
|
|
@@ -19,7 +40,7 @@
|
|
|
19
40
|
### Bug Fixes
|
|
20
41
|
|
|
21
42
|
* Adjusted the node engine requirement to support versions 20.19 and above ([7026e7e](https://github.com/visulima/visulima/commit/7026e7ea4b42c691696c059c3d07aa41c24c171d))
|
|
22
|
-
* update @visulima/packem to 2.0.0-alpha.
|
|
43
|
+
* update @visulima/packem to 2.0.0-alpha.32 across multiple packages for improved compatibility ([27b346e](https://github.com/visulima/visulima/commit/27b346eaa1c0fb0e420d9a9824482028307f4249))
|
|
23
44
|
|
|
24
45
|
### Miscellaneous Chores
|
|
25
46
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{default as t}from"./packem_shared/dnsCheck-DmKC-X1P.js";import{default as o}from"./packem_shared/httpCheck-Dzf65hZl.js";import{default as d}from"./packem_shared/nodeEnvCheck-DPysE7_-.js";import{default as l}from"./packem_shared/pingCheck-
|
|
1
|
+
import{default as t}from"./packem_shared/dnsCheck-DmKC-X1P.js";import{default as o}from"./packem_shared/httpCheck-Dzf65hZl.js";import{default as d}from"./packem_shared/nodeEnvCheck-DPysE7_-.js";import{default as l}from"./packem_shared/pingCheck-B2M9sUy-.js";import{default as s}from"./packem_shared/healthCheckHandler-Qlz3z6-Z.js";import{default as u}from"./packem_shared/healthReadyHandler-v8U44iS-.js";import{default as c}from"./packem_shared/HealthCheck-CypoYHvz.js";export{c as HealthCheck,t as dnsCheck,s as healthCheckHandler,u as healthReadyHandler,o as httpCheck,d as nodeEnvCheck,l as pingCheck};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var p=Object.defineProperty;var n=(e,t)=>p(e,"name",{value:t,configurable:!0});import{StatusCodes as o}from"http-status-codes";var u=Object.defineProperty,i=n((e,t)=>u(e,"name",{value:t,configurable:!0}),"a");const f=i((e,t=!0)=>async(l,a)=>{const{healthy:r,report:s}=await e.getReport(),c={appName:process.env.APP_NAME??"unknown",appVersion:process.env.APP_VERSION??"unknown",message:r?"Health check successful":"Health check failed",reports:s,status:r?"ok":"error",timestamp:new Date().toISOString()};a.statusCode=r?o.OK:o.SERVICE_UNAVAILABLE,t&&a.setHeader("Content-Type","application/json"),a.end(JSON.stringify(c,null,2))},"default");export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var n=Object.defineProperty;var r=(e,t)=>n(e,"name",{value:t,configurable:!0});import{StatusCodes as o}from"http-status-codes";var s=Object.defineProperty,u=r((e,t)=>s(e,"name",{value:t,configurable:!0}),"o");const f=u(e=>async(t,a)=>{const{healthy:d}=await e.getReport();a.statusCode=d?o.NO_CONTENT:o.SERVICE_UNAVAILABLE,a.end()},"default");export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=Object.defineProperty;var r=(e,a)=>i(e,"name",{value:a,configurable:!0});import m from"pingman";var l=Object.defineProperty,n=r((e,a)=>l(e,"name",{value:a,configurable:!0}),"n");const s="Ping check for",o=n((e,a)=>async()=>{try{const t=await m(e.replace(/^https?:\/\//,""),a);return t.alive?{displayName:`${s} ${e}`,health:{healthy:!0,message:`${s} ${e} was successful.`,timestamp:new Date().toISOString()},meta:t}:{displayName:`${s} ${e}`,health:{healthy:!1,message:`Ping failed for ${e}.`,timestamp:new Date().toISOString()},meta:t}}catch(t){return{displayName:`${s} ${e}`,health:{healthy:!1,message:t.message,timestamp:new Date().toISOString()}}}},"pingCheck");export{o as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/health-check",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.3",
|
|
4
4
|
"description": "A library built to provide support for defining service health for node services. It allows you to register async health checks for your dependencies and the service itself, provides a health endpoint that exposes their status, and health metrics.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"cacheable-lookup": "^7.0.0",
|
|
56
56
|
"http-status-codes": "^2.3.0",
|
|
57
|
-
"pingman": "^2.
|
|
57
|
+
"pingman": "^2.1.0"
|
|
58
58
|
},
|
|
59
59
|
"engines": {
|
|
60
60
|
"node": ">=18.0.0 <=25.x"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var c=Object.defineProperty;var r=(e,t)=>c(e,"name",{value:t,configurable:!0});import{createRequire as u}from"node:module";const p=u(import.meta.url),m=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{StatusCodes:n}=p("http-status-codes");var l=Object.defineProperty,d=r((e,t)=>l(e,"name",{value:t,configurable:!0}),"a");const g=d((e,t=!0)=>async(f,s)=>{const{healthy:o,report:a}=await e.getReport(),i={appName:process.env.APP_NAME??"unknown",appVersion:process.env.APP_VERSION??"unknown",message:o?"Health check successful":"Health check failed",reports:a,status:o?"ok":"error",timestamp:new Date().toISOString()};s.statusCode=o?n.OK:n.SERVICE_UNAVAILABLE,t&&s.setHeader("Content-Type","application/json"),s.end(JSON.stringify(i,null,2))},"default");export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var a=Object.defineProperty;var o=(e,t)=>a(e,"name",{value:t,configurable:!0});import{createRequire as i}from"node:module";const c=i(import.meta.url),_=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const{StatusCodes:r}=c("http-status-codes");var u=Object.defineProperty,d=o((e,t)=>u(e,"name",{value:t,configurable:!0}),"o");const f=d(e=>async(t,s)=>{const{healthy:n}=await e.getReport();s.statusCode=n?r.NO_CONTENT:r.SERVICE_UNAVAILABLE,s.end()},"default");export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=Object.defineProperty;var r=(e,t)=>i(e,"name",{value:t,configurable:!0});import{createRequire as n}from"node:module";const o=n(import.meta.url),h=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process;const l=o("pingman");var c=Object.defineProperty,m=r((e,t)=>c(e,"name",{value:t,configurable:!0}),"n");const a="Ping check for",f=m((e,t)=>async()=>{try{const s=await l(e.replace(/^https?:\/\//,""),t);return s.alive?{displayName:`${a} ${e}`,health:{healthy:!0,message:`${a} ${e} was successful.`,timestamp:new Date().toISOString()},meta:s}:{displayName:`${a} ${e}`,health:{healthy:!1,message:`Ping failed for ${e}.`,timestamp:new Date().toISOString()},meta:s}}catch(s){return{displayName:`${a} ${e}`,health:{healthy:!1,message:s.message,timestamp:new Date().toISOString()}}}},"pingCheck");export{f as default};
|