File tree 2 files changed +5
-10
lines changed
2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ internals.Socket.prototype._onMessage = async function (message) {
237
237
try {
238
238
var request = JSON . parse ( message ) ;
239
239
}
240
- catch ( err ) {
240
+ catch {
241
241
return this . _error ( Boom . badRequest ( 'Cannot parse message' ) ) ;
242
242
}
243
243
@@ -563,7 +563,7 @@ internals.Socket.prototype._authenticate = async function (request) {
563
563
const auth = await Iron . unseal ( request . auth , config . password , config . iron ?? Iron . defaults ) ;
564
564
this . _setCredentials ( auth ) ;
565
565
}
566
- catch ( err ) {
566
+ catch {
567
567
throw Boom . unauthorized ( 'Invalid token' ) ;
568
568
}
569
569
}
@@ -585,7 +585,7 @@ internals.Socket.prototype._authByCookie = async function () {
585
585
try {
586
586
var { states } = await this . server . states . parse ( cookies ) ;
587
587
}
588
- catch ( err ) {
588
+ catch {
589
589
throw Boom . unauthorized ( 'Invalid nes authentication cookie' ) ;
590
590
}
591
591
Original file line number Diff line number Diff line change 16
16
" plugin" ,
17
17
" websocket"
18
18
],
19
- "eslintConfig" : {
20
- "extends" : [
21
- " plugin:@hapi/module"
22
- ]
23
- },
24
19
"dependencies" : {
25
20
"@hapi/boom" : " ^10.0.1" ,
26
21
"@hapi/bounce" : " ^3.0.1" ,
34
29
},
35
30
"devDependencies" : {
36
31
"@hapi/code" : " ^9.0.3" ,
37
- "@hapi/eslint-plugin" : " * " ,
32
+ "@hapi/eslint-plugin" : " ^7.0.0 " ,
38
33
"@hapi/hapi" : " ^21.3.9" ,
39
- "@hapi/lab" : " ^25.2 .0" ,
34
+ "@hapi/lab" : " ^26.0 .0" ,
40
35
"@types/node" : " ^20.14.2" ,
41
36
"joi" : " ^17.13.3" ,
42
37
"typescript" : " ^5.4.5"
You can’t perform that action at this time.
0 commit comments