File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ module.exports = {
20
20
'no-restricted-globals' : [
21
21
'error' ,
22
22
// https://github.com/TooTallNate/proxy-agents/pull/242
23
- { name : 'URL' , message : 'Use `URL` from the Node.js "url" module instead.' } ,
23
+ {
24
+ name : 'URL' ,
25
+ message :
26
+ 'Use `URL` from the Node.js "url" module instead.' ,
27
+ } ,
24
28
] ,
25
29
} ,
26
30
} ,
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import fs from 'fs';
2
2
import path from 'path' ;
3
3
import assert from 'assert' ;
4
4
import { degenerator , compile } from '../src' ;
5
- import { getQuickJS , type QuickJSWASMModule } from '@tootallnate/quickjs-emscripten' ;
5
+ import {
6
+ getQuickJS ,
7
+ type QuickJSWASMModule ,
8
+ } from '@tootallnate/quickjs-emscripten' ;
6
9
7
10
describe ( 'degenerator()' , ( ) => {
8
11
it ( 'should support "async" output functions' , ( ) => {
Original file line number Diff line number Diff line change @@ -91,10 +91,12 @@ export class HttpsProxyAgent<Uri extends string> extends Agent {
91
91
let socket : net . Socket ;
92
92
if ( proxy . protocol === 'https:' ) {
93
93
debug ( 'Creating `tls.Socket`: %o' , this . connectOpts ) ;
94
- const servername = this . connectOpts . servername || this . connectOpts . host ;
94
+ const servername =
95
+ this . connectOpts . servername || this . connectOpts . host ;
95
96
socket = tls . connect ( {
96
97
...this . connectOpts ,
97
- servername : servername && net . isIP ( servername ) ? undefined : servername
98
+ servername :
99
+ servername && net . isIP ( servername ) ? undefined : servername ,
98
100
} ) ;
99
101
} else {
100
102
debug ( 'Creating `net.Socket`: %o' , this . connectOpts ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import assert from 'assert';
2
2
import { resolve } from 'path' ;
3
3
import { readFileSync } from 'fs' ;
4
4
import { createPacResolver } from '../src' ;
5
- import { getQuickJS , type QuickJSWASMModule } from '@tootallnate/quickjs-emscripten' ;
5
+ import {
6
+ getQuickJS ,
7
+ type QuickJSWASMModule ,
8
+ } from '@tootallnate/quickjs-emscripten' ;
6
9
7
10
type FindProxyForURLFn = ReturnType < typeof createPacResolver > ;
8
11
You can’t perform that action at this time.
0 commit comments