build(deps): update latest
This commit is contained in:
@@ -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({
|
||||
|
@@ -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> => {
|
||||
|
@@ -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'
|
||||
|
||||
|
Reference in New Issue
Block a user