Skip to content

Commit 158b493

Browse files
committed
fix types
1 parent f963816 commit 158b493

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/network/lib/blocked.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import _ from 'lodash'
22
import minimatch from 'minimatch'
33
import { stripProtocolAndDefaultPorts } from './uri'
44

5-
export function matches (urlToCheck: string, blockHosts: string[]) {
5+
export function matches (urlToCheck: string, blockHosts: string[] | string) {
66
// normalize into flat array
77
const blockHostsNormalized: string[] = ([] as string[]).concat(blockHosts)
88

packages/network/lib/client-certificates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export const clientCertificateStoreSingleton = new ClientCertificateStore()
197197

198198
type Config = {
199199
projectRoot: string
200-
clientCertificates: Array<{
200+
clientCertificates?: Array<{
201201
url: string
202202
ca: string[]
203203
certs: Array<{

packages/proxy/lib/http/request-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ const EndRequestsToBlockedHosts: RequestMiddleware = function () {
375375
})
376376

377377
if (blockHosts) {
378-
const matches = blocked.matches(this.req.proxiedUrl, blockHosts)
378+
const matches = blocked.matches(this.req.proxiedUrl, blockHosts as string[])
379379

380380
span?.setAttributes({
381381
didUrlMatchBlockedHosts: !!matches,

0 commit comments

Comments
 (0)