@@ -5,7 +5,7 @@ import * as url from 'url';
55
66import {
77 type AuthMechanism ,
8- CompressorName ,
8+ type CompressorName ,
99 HostAddress ,
1010 MongoClient ,
1111 type MongoClientOptions ,
@@ -118,11 +118,11 @@ export class TestConfiguration {
118118 replicaSet : url . searchParams . get ( 'replicaSet' ) ,
119119 proxyURIParams : url . searchParams . get ( 'proxyHost' )
120120 ? {
121- proxyHost : url . searchParams . get ( 'proxyHost' ) ,
122- proxyPort : Number ( url . searchParams . get ( 'proxyPort' ) ) ,
123- proxyUsername : url . searchParams . get ( 'proxyUsername' ) ,
124- proxyPassword : url . searchParams . get ( 'proxyPassword' )
125- }
121+ proxyHost : url . searchParams . get ( 'proxyHost' ) ,
122+ proxyPort : Number ( url . searchParams . get ( 'proxyPort' ) ) ,
123+ proxyUsername : url . searchParams . get ( 'proxyUsername' ) ,
124+ proxyPassword : url . searchParams . get ( 'proxyPassword' )
125+ }
126126 : undefined
127127 } ;
128128 if ( url . username ) {
@@ -200,7 +200,7 @@ export class TestConfiguration {
200200 }
201201
202202 newClient ( urlOrQueryOptions ?: string | Record < string , any > , serverOptions ?: MongoClientOptions ) {
203- const baseOptions = this . compressors . length > 0 ? { compressors : this . compressors } : { }
203+ const baseOptions = this . compressors . length > 0 ? { compressors : this . compressors } : { } ;
204204 serverOptions = Object . assign ( baseOptions , getEnvironmentalOptions ( ) , serverOptions ) ;
205205 // Support MongoClient constructor form (url, options) for `newClient`.
206206 if ( typeof urlOrQueryOptions === 'string' ) {
0 commit comments