Skip to content

Commit

Permalink
chore: update modules
Browse files Browse the repository at this point in the history
  • Loading branch information
solufa committed Aug 8, 2023
1 parent d03fd72 commit 988d1f3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 32 deletions.
48 changes: 26 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,22 @@
"singleQuote": true
},
"dependencies": {
"@aspida/axios": "^1.11.0",
"@aspida/swr": "^1.11.0",
"@aspida/axios": "^1.13.3",
"@aspida/swr": "^1.13.3",
"@fastify/cors": "^8.2.0",
"@fastify/static": "^6.5.1",
"@fastify/websocket": "^7.1.1",
"ansi_up": "^5.1.0",
"aspida": "^1.13.3",
"axios": "^0.27.2",
"commander": "^9.0.0",
"ejs": "^3.1.7",
"fastify": "^4.15.0",
"frourio": "^0.32.0",
"fastify": "^4.21.0",
"frourio": "^0.34.1",
"github-buttons": "^2.21.1",
"is-binary-path": "^2.1.0",
"mariadb": "^2.5.5",
"next": "13.0.4",
"next": "^13.0.4",
"object-hash": "^3.0.0",
"open": "^8.4.0",
"pg": "^8.7.3",
Expand All @@ -73,10 +74,10 @@
"react-markdown": "^8.0.0",
"react-query": "^3.34.16",
"real-executable-path": "^3.0.0",
"swr": "^1.3.0"
"swr": "^2.2.0"
},
"devDependencies": {
"@fastify/nextjs": "^9.2.0",
"@fastify/nextjs": "^10.0.1",
"@types/ejs": "^3.1.0",
"@types/jest": "^29.2.3",
"@types/jest-expect-message": "^1.1.0",
Expand Down Expand Up @@ -104,7 +105,7 @@
"jest": "^29.3.1",
"jest-expect-message": "^1.1.3",
"nodemon-webpack-plugin": "^4.7.1",
"notios": "^0.4.0",
"notios": "^0.4.1",
"onchange": "^7.1.0",
"prettier": "^2.8.7",
"style-loader": "^3.3.1",
Expand Down
4 changes: 2 additions & 2 deletions server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const basePath = '/api'

const fastify = Fastify()
// eslint-disable-next-line @typescript-eslint/no-explicit-any
fastify.register(FastifyStatic, { root: path.join(__dirname, '../../out') })
fastify.register(FastifyStatic, { root: path.join(__dirname, '../../public') })
await fastify.register(FastifyInject, { dir, logging, ready })
if (process.env.NODE_ENV === 'development') {
fastify
Expand All @@ -79,7 +79,7 @@ const basePath = '/api'
fastify.register(FastifyWebsocket)
fastify.register(async (fastify) => {
fastify.get('/ws/', { websocket: true }, (connection) => {
const handler = (chunk: unknown) => {
const handler = (chunk: Buffer) => {
connection.socket.send(chunk)
}
logging.on('data', handler)
Expand Down

0 comments on commit 988d1f3

Please sign in to comment.