File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 4848 "devDependencies" : {
4949 "@types/mocha" : " ^8.0.3" ,
5050 "@types/node" : " ^16.4.10" ,
51- "@typescript-eslint/eslint-plugin" : " ^4.2.0 " ,
52- "@typescript-eslint/parser" : " ^4.2.0 " ,
51+ "@typescript-eslint/eslint-plugin" : " ^5.30.7 " ,
52+ "@typescript-eslint/parser" : " ^5.30.7 " ,
5353 "eslint" : " ^7.9.0" ,
5454 "eslint-config-semistandard" : " ^15.0.1" ,
5555 "eslint-config-standard" : " ^14.1.1" ,
6262 "mongodb" : " ^4.0.1" ,
6363 "mongodb-runner" : " ^4.8.3" ,
6464 "nyc" : " ^15.1.0" ,
65- "ts-node" : " ^9.0.0 " ,
66- "typescript" : " ^4.3.5 "
65+ "ts-node" : " ^10.9.1 " ,
66+ "typescript" : " ^4.7.4 "
6767 }
6868}
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export class WireProtocolParser extends Writable {
3232 }
3333 callback ( ) ;
3434 } catch ( err ) {
35- callback ( err ) ;
35+ // eslint-disable-next-line standard/no-callback-literal
36+ callback ( err as Error ) ;
3637 }
3738 }
3839}
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ export class Proxy extends EventEmitter {
8686 }
8787
8888 async close ( ) : Promise < void > {
89- await new Promise < void > ( ( resolve , reject ) => this . srv . close ( ( err ) => err ? reject ( err ) : resolve ) ) ;
89+ await new Promise < void > ( ( resolve , reject ) =>
90+ this . srv . close ( ( err ) => ( err ? reject ( err ) : resolve ( ) ) )
91+ ) ;
9092 }
9193}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('Proxy', function() {
3030
3131 afterEach ( async ( ) => {
3232 await client . close ( ) ;
33- proxy . close ( ) ;
33+ await proxy . close ( ) ;
3434 } ) ;
3535
3636 it ( 'records ismaster events' , async ( ) => {
You can’t perform that action at this time.
0 commit comments