@@ -98,7 +98,7 @@ async function connectWithFailFast(uri: string, client: MongoClient, logger: Con
98
98
client . removeListener ( 'serverHeartbeatFailed' , heartbeatFailureListener ) ;
99
99
client . removeListener ( 'serverHeartbeatSucceeded' , heartbeatSucceededListener ) ;
100
100
logger . emit ( 'devtools-connect:connect-attempt-finished' , {
101
- cryptSharedLibVersionInfo : ( client ?. autoEncrypter as any /* NODE-4285 */ ) ?. cryptSharedLibVersionInfo
101
+ cryptSharedLibVersionInfo : ( client as any ) ?. autoEncrypter ?. cryptSharedLibVersionInfo
102
102
} ) ;
103
103
}
104
104
}
@@ -134,7 +134,7 @@ async function resolveMongodbSrv(uri: string, logger: ConnectLogEmitter): Promis
134
134
resolutionDetails . push ( {
135
135
query : 'SRV' , hostname, error : args [ 0 ] ?. message , wasNativelyLookedUp : wasNativelyLookedUp ( args [ 1 ] )
136
136
} ) ;
137
- // eslint-disable-next-line node /no-callback-literal
137
+ // eslint-disable-next-line n /no-callback-literal
138
138
cb ( ...args ) ;
139
139
} ) ;
140
140
} ,
@@ -143,7 +143,7 @@ async function resolveMongodbSrv(uri: string, logger: ConnectLogEmitter): Promis
143
143
resolutionDetails . push ( {
144
144
query : 'TXT' , hostname, error : args [ 0 ] ?. message , wasNativelyLookedUp : wasNativelyLookedUp ( args [ 1 ] )
145
145
} ) ;
146
- // eslint-disable-next-line node /no-callback-literal
146
+ // eslint-disable-next-line n /no-callback-literal
147
147
cb ( ...args ) ;
148
148
} ) ;
149
149
}
@@ -343,9 +343,9 @@ export async function connectMongoClient(
343
343
const client = new MongoClientClass ( uri , mongoClientOptions ) ;
344
344
closeMongoClientWhenAuthFails ( state , client ) ;
345
345
await connectWithFailFast ( uri , client , logger ) ;
346
- if ( client . autoEncrypter ) {
346
+ if ( ( client as any ) . autoEncrypter ) {
347
347
// Enable Devtools-specific CSFLE result decoration.
348
- ( client . autoEncrypter as any ) [ Symbol . for ( '@@mdb.decorateDecryptionResult' ) ] = true ;
348
+ ( ( client as any ) . autoEncrypter ) [ Symbol . for ( '@@mdb.decorateDecryptionResult' ) ] = true ;
349
349
}
350
350
return { client, state } ;
351
351
}
0 commit comments