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 48
48
"devDependencies" : {
49
49
"@types/mocha" : " ^8.0.3" ,
50
50
"@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 " ,
53
53
"eslint" : " ^7.9.0" ,
54
54
"eslint-config-semistandard" : " ^15.0.1" ,
55
55
"eslint-config-standard" : " ^14.1.1" ,
62
62
"mongodb" : " ^4.0.1" ,
63
63
"mongodb-runner" : " ^4.8.3" ,
64
64
"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 "
67
67
}
68
68
}
Original file line number Diff line number Diff line change @@ -32,7 +32,8 @@ export class WireProtocolParser extends Writable {
32
32
}
33
33
callback ( ) ;
34
34
} catch ( err ) {
35
- callback ( err ) ;
35
+ // eslint-disable-next-line standard/no-callback-literal
36
+ callback ( err as Error ) ;
36
37
}
37
38
}
38
39
}
Original file line number Diff line number Diff line change @@ -86,6 +86,8 @@ export class Proxy extends EventEmitter {
86
86
}
87
87
88
88
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
+ ) ;
90
92
}
91
93
}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ describe('Proxy', function() {
30
30
31
31
afterEach ( async ( ) => {
32
32
await client . close ( ) ;
33
- proxy . close ( ) ;
33
+ await proxy . close ( ) ;
34
34
} ) ;
35
35
36
36
it ( 'records ismaster events' , async ( ) => {
You can’t perform that action at this time.
0 commit comments