Skip to content

Commit 660b098

Browse files
committed
chore: lint
1 parent 26ab339 commit 660b098

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/anonymize_proxy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const anonymizeProxy = async (
6767
return {
6868
requestAuthentication: false,
6969
upstreamProxyUrl: proxyUrl,
70-
ignoreUpstreamProxyCertificate: ignoreProxyCertificate
70+
ignoreUpstreamProxyCertificate: ignoreProxyCertificate,
7171
};
7272
},
7373
}) as Server & { port: number };

src/chain.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ export const chain = (
8484
options.headers.push('proxy-authorization', getBasicAuthorizationHeader(proxy));
8585
}
8686

87-
const client = proxy.protocol === 'https:' ?
88-
https.request(proxy.origin, {
87+
const client = proxy.protocol === 'https:'
88+
? https.request(proxy.origin, {
8989
...options as unknown as https.RequestOptions,
90-
rejectUnauthorized: !handlerOpts.ignoreUpstreamProxyCertificate
90+
rejectUnauthorized: !handlerOpts.ignoreUpstreamProxyCertificate,
9191
})
9292
: http.request(proxy.origin, options as unknown as http.RequestOptions);
9393

src/forward.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,12 @@ export const forward = async (
114114
};
115115

116116
// We have to force cast `options` because @types/node doesn't support an array.
117-
const client = origin!.startsWith('https:') ?
118-
https.request(origin!, {
117+
const client = origin!.startsWith('https:')
118+
? https.request(origin!, {
119119
...options as unknown as https.RequestOptions,
120-
rejectUnauthorized: handlerOpts.upstreamProxyUrlParsed ? !handlerOpts.ignoreUpstreamProxyCertificate : undefined
120+
rejectUnauthorized: handlerOpts.upstreamProxyUrlParsed ? !handlerOpts.ignoreUpstreamProxyCertificate : undefined,
121121
}, requestCallback)
122-
122+
123123
: http.request(origin!, options as unknown as http.RequestOptions, requestCallback);
124124

125125
client.once('socket', (socket: SocketWithPreviousStats) => {

src/tcp_tunnel_tools.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export async function createTunnel(
7070
sourceSocket,
7171
handlerOpts: {
7272
upstreamProxyUrlParsed: parsedProxyUrl,
73-
ignoreUpstreamProxyCertificate: options?.ignoreProxyCertificate ?? false
73+
ignoreUpstreamProxyCertificate: options?.ignoreProxyCertificate ?? false,
7474
},
7575
server: server as net.Server & { log: typeof log },
7676
isPlain: true,

0 commit comments

Comments
 (0)