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

chimurai / http-proxy-middleware / 18263701359

05 Oct 2025 08:07PM UTC coverage: 97.15%. Remained the same
18263701359

push

github

web-flow
ci(ci.yml): unpin node 24 (#1148)

* ci(ci.yml): unpin node 24

* chore(package): reinstall mockttp deps

* build(mockttp): use 2048 bits in generateCACertificate

170 of 183 branches covered (92.9%)

409 of 421 relevant lines covered (97.15%)

24.55 hits per line

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

100.0
/src/get-plugins.ts
1
import {
12✔
2
  debugProxyErrorsPlugin,
3
  errorResponsePlugin,
4
  loggerPlugin,
5
  proxyEventsPlugin,
6
} from './plugins/default';
7
import type { Options, Plugin } from './types';
8

9
export function getPlugins<TReq, TRes>(options: Options<TReq, TRes>): Plugin<TReq, TRes>[] {
12✔
10
  // don't load default errorResponsePlugin if user has specified their own
11
  const maybeErrorResponsePlugin = options.on?.error ? [] : [errorResponsePlugin];
81✔
12

13
  const defaultPlugins = options.ejectPlugins
81✔
14
    ? [] // no default plugins when ejecting
15
    : [debugProxyErrorsPlugin, proxyEventsPlugin, loggerPlugin, ...maybeErrorResponsePlugin];
16
  const userPlugins: Plugin<TReq, TRes>[] = options.plugins ?? [];
81✔
17
  return [...defaultPlugins, ...userPlugins] as unknown as Plugin<TReq, TRes>[];
81✔
18
}
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