• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gritzkoo / nodejs-health-checker / 9938845069

15 Jul 2024 11:51AM UTC coverage: 99.419% (-0.6%) from 100.0%
9938845069

push

github

web-flow
build(deps-dev): bump ws from 7.5.9 to 7.5.10 (#77)

* build(deps-dev): bump ws from 7.5.9 to 7.5.10

Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update package.json

* Update docker-compose.yaml

* fix: update memcache version

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gritzko Daniel Kleiner <gritzkoo@hotmail.com>
Co-authored-by: Gritzko Daniel Kleiner <ext.gritzko.kleiner@dafiti.com.br>

68 of 68 branches covered (100.0%)

Branch coverage included in aggregate %.

103 of 104 relevant lines covered (99.04%)

3.67 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.86
/src/services/web-service.ts
1
import fetch from "node-fetch";
1✔
2
import { HTTPChecker, IntegrationConfig } from "../interfaces/types";
3

4
export async function checkWebIntegration(config: IntegrationConfig): Promise<HTTPChecker> {
1✔
5
  return new Promise((resolve, _) => {
3✔
6
    const headers = config.headers?.map((item) => {
3✔
7
      return [item.key, item.value];
2✔
8
    });
9
    fetch(config.host, {
3✔
10
      timeout: config.timeout,
11
      headers,
12
    })
13
      .then((response) => {
14
        resolve({
3✔
15
          status: response.status === 200,
16
          error: response.status !== 200 ? { http_status: response.status } : undefined,
3✔
17
        });
18
      })
19
      .catch((error) => {
20
        resolve({
×
21
          status: false,
22
          error,
23
        });
24
      });
25
  });
26
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc