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

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

18 Jan 2026 07:13AM UTC coverage: 35.075% (-52.3%) from 87.363%
21107899052

Pull #452

github

web-flow
Merge 2178f16a2 into bb8e97af5
Pull Request #452: Bundle using tsdown

177 of 511 branches covered (34.64%)

Branch coverage included in aggregate %.

10 of 22 new or added lines in 4 files covered. (45.45%)

518 existing lines in 13 files now uncovered.

340 of 963 relevant lines covered (35.31%)

9.5 hits per line

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

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

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

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