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

ota-meshi / eslint-plugin-json-schema-validator / 21107985100

18 Jan 2026 07:21AM UTC coverage: 78.196% (-9.2%) from 87.363%
21107985100

Pull #452

github

web-flow
Merge 3cb189b5f into bb8e97af5
Pull Request #452: Bundle using tsdown

717 of 872 branches covered (82.22%)

Branch coverage included in aggregate %.

30 of 51 new or added lines in 7 files covered. (58.82%)

574 existing lines in 11 files now uncovered.

2170 of 2820 relevant lines covered (76.95%)

55.12 hits per line

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

69.39
/src/utils/http-client/http.ts
1
import type { RequestOptions } from "https";
1✔
2
import defaultClient from "./get-modules/http";
1✔
3
import { createRequire } from "module";
1✔
4
import { isAbsolute } from "path";
19✔
5
import { pathToFileURL } from "url";
19✔
6

19✔
7
/**
19✔
8
 * GET Method
19✔
9
 */
19✔
10
export async function get(
3✔
11
  url: string,
3✔
12
  options?: RequestOptions,
3✔
13
  httpModulePath?: string,
3✔
14
): Promise<string> {
3✔
15
  const client = httpModulePath
3!
NEW
16
    ? await loadModule(httpModulePath)
✔
17
    : defaultClient;
3✔
18
  return client.default ? client.default(url, options) : client(url, options);
3!
19
}
1✔
20

1✔
21
/**
1✔
22
 * Load module by path
1✔
23
 */
1✔
NEW
24
async function loadModule(modulePath: string) {
✔
25
  const adjustedPath =
1✔
26
    !modulePath.startsWith("file://") && isAbsolute(modulePath)
1✔
NEW
27
      ? pathToFileURL(modulePath).href
×
NEW
28
      : modulePath;
×
NEW
29
  try {
×
NEW
30
    const require = createRequire(import.meta.filename);
×
NEW
31
    return require(adjustedPath);
×
NEW
32
  } catch {
×
NEW
33
    return await import(adjustedPath);
×
NEW
34
  }
×
NEW
35
}
×
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

© 2026 Coveralls, Inc