build(deps): update latest

This commit is contained in:
Divlo
2022-09-09 11:39:27 +02:00
parent 7977c42c20
commit c7c152a554
10 changed files with 3276 additions and 2512 deletions

View File

@@ -1,15 +1,16 @@
import tap from 'tap'
import axios from 'axios'
import { io, Socket } from 'socket.io-client'
import type { Socket } from 'socket.io-client'
import { io } from 'socket.io-client'
import { isUnauthorizedError } from '../UnauthorizedError.js'
import type { Profile } from './fixture/index.js'
import {
API_URL,
fixtureStart,
fixtureStop,
getSocket,
basicProfile,
Profile
basicProfile
} from './fixture/index.js'
export const api = axios.create({

View File

@@ -1,8 +1,10 @@
import jwt from 'jsonwebtoken'
import { Server as SocketIoServer } from 'socket.io'
import fastify, { FastifyInstance } from 'fastify'
import type { FastifyInstance } from 'fastify'
import fastify from 'fastify'
import { authorize, AuthorizeOptions } from '../../index.js'
import type { AuthorizeOptions } from '../../index.js'
import { authorize } from '../../index.js'
interface FastifyIo {
instance: SocketIoServer
@@ -67,7 +69,9 @@ export const fixtureStart = async (
application.addHook('onClose', (fastify) => {
fastify.io.instance.close()
})
await application.listen(PORT)
await application.listen({
port: PORT
})
}
export const fixtureStop = async (): Promise<void> => {

View File

@@ -1,5 +1,6 @@
import jwt, { Algorithm } from 'jsonwebtoken'
import { Socket } from 'socket.io'
import type { Algorithm } from 'jsonwebtoken'
import jwt from 'jsonwebtoken'
import type { Socket } from 'socket.io'
import { UnauthorizedError } from './UnauthorizedError.js'