build(deps-dev): bump typescript from 4.3.5 to 4.4.2 (#201)

Co-authored-by: Divlo <contact@divlo.fr>
This commit is contained in:
dependabot[bot]
2021-08-27 17:18:31 +02:00
committed by GitHub
parent 5a7d281798
commit 596d6a82c9
6 changed files with 2234 additions and 2118 deletions

View File

@ -1 +0,0 @@
jest.setTimeout(15_000)

View File

@ -19,7 +19,7 @@ interface ExtendedSocket {
type SocketIOMiddleware = (
socket: Socket,
next: (err?: ExtendedError) => void
next: (error?: ExtendedError) => void
) => void
interface CompleteDecodedToken {
@ -83,8 +83,8 @@ export const authorize = (options: AuthorizeOptions): SocketIOMiddleware => {
if (onAuthentication != null) {
try {
socket.user = await onAuthentication(decodedToken)
} catch (err) {
return next(err)
} catch (error: any) {
return next(error)
}
}
return next()