File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import _ from 'lodash'
2
2
import minimatch from 'minimatch'
3
3
import { stripProtocolAndDefaultPorts } from './uri'
4
4
5
- export function matches ( urlToCheck : string , blockHosts : string [ ] ) {
5
+ export function matches ( urlToCheck : string , blockHosts : string [ ] | string ) {
6
6
// normalize into flat array
7
7
const blockHostsNormalized : string [ ] = ( [ ] as string [ ] ) . concat ( blockHosts )
8
8
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ export const clientCertificateStoreSingleton = new ClientCertificateStore()
197
197
198
198
type Config = {
199
199
projectRoot : string
200
- clientCertificates : Array < {
200
+ clientCertificates ? : Array < {
201
201
url : string
202
202
ca : string [ ]
203
203
certs : Array < {
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ const EndRequestsToBlockedHosts: RequestMiddleware = function () {
375
375
} )
376
376
377
377
if ( blockHosts ) {
378
- const matches = blocked . matches ( this . req . proxiedUrl , blockHosts )
378
+ const matches = blocked . matches ( this . req . proxiedUrl , blockHosts as string [ ] )
379
379
380
380
span ?. setAttributes ( {
381
381
didUrlMatchBlockedHosts : ! ! matches ,
You can’t perform that action at this time.
0 commit comments