File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ module.exports = {
2020 'no-restricted-globals' : [
2121 'error' ,
2222 // 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+ } ,
2428 ] ,
2529 } ,
2630 } ,
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ import fs from 'fs';
22import path from 'path' ;
33import assert from 'assert' ;
44import { 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' ;
69
710describe ( 'degenerator()' , ( ) => {
811 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 {
9191 let socket : net . Socket ;
9292 if ( proxy . protocol === 'https:' ) {
9393 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 ;
9596 socket = tls . connect ( {
9697 ...this . connectOpts ,
97- servername : servername && net . isIP ( servername ) ? undefined : servername
98+ servername :
99+ servername && net . isIP ( servername ) ? undefined : servername ,
98100 } ) ;
99101 } else {
100102 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';
22import { resolve } from 'path' ;
33import { readFileSync } from 'fs' ;
44import { createPacResolver } from '../src' ;
5- import { getQuickJS , type QuickJSWASMModule } from '@tootallnate/quickjs-emscripten' ;
5+ import {
6+ getQuickJS ,
7+ type QuickJSWASMModule ,
8+ } from '@tootallnate/quickjs-emscripten' ;
69
710type FindProxyForURLFn = ReturnType < typeof createPacResolver > ;
811
You can’t perform that action at this time.
0 commit comments