build(deps): update latest

This commit is contained in:
Divlo
2022-06-29 03:59:30 +00:00
parent 183377afc3
commit 4d565e4f1f
11 changed files with 3682 additions and 3003 deletions

View File

@ -1,6 +1,6 @@
import dotenv from 'dotenv'
import { readPackage } from 'read-pkg'
import { FastifyDynamicSwaggerOptions } from 'fastify-swagger'
import { FastifyDynamicSwaggerOptions } from '@fastify/swagger'
dotenv.config()
@ -19,8 +19,7 @@ export const swaggerOptions: FastifyDynamicSwaggerOptions = {
{ name: 'guilds' },
{ name: 'channels' },
{ name: 'messages' },
{ name: 'members' },
{ name: 'uploads' }
{ name: 'members' }
],
components: {
securitySchemes: {

View File

@ -61,5 +61,5 @@ export default fastifyPlugin(
request.user = user
})
},
{ fastify: '3.x' }
{ fastify: '4.x' }
)

View File

@ -85,5 +85,5 @@ export default fastifyPlugin(
fastify.io.instance.close()
})
},
{ fastify: '3.x' }
{ fastify: '4.x' }
)

View File

@ -3,7 +3,7 @@ import fs from 'node:fs'
import axios from 'axios'
import FormData from 'form-data'
import { FastifyInstance, FastifyRequest } from 'fastify'
import { Multipart } from 'fastify-multipart'
import { Multipart } from '@fastify/multipart'
import {
FILE_UPLOADS_API_KEY,