From 988d1f331b083b6ddf77969b56042c21a62cd32e Mon Sep 17 00:00:00 2001 From: solufa Date: Wed, 9 Aug 2023 02:40:45 +0900 Subject: [PATCH] chore: update modules --- package-lock.json | 48 +++++++++++++++++++++++++---------------------- package.json | 17 +++++++++-------- server/index.ts | 4 ++-- 3 files changed, 37 insertions(+), 32 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2cf876a..e47cdb2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,21 +9,22 @@ "version": "0.0.0", "license": "MIT", "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", @@ -34,13 +35,13 @@ "react-markdown": "^8.0.0", "react-query": "^3.34.16", "real-executable-path": "^3.0.0", - "swr": "^1.3.0" + "swr": "^2.2.0" }, "bin": { "create-frourio-app": "bin/index.js" }, "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", @@ -68,7 +69,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", @@ -923,9 +924,9 @@ } }, "node_modules/@fastify/nextjs": { - "version": "9.2.0", - "resolved": "https://registry.npmjs.org/@fastify/nextjs/-/nextjs-9.2.0.tgz", - "integrity": "sha512-javnZvkO0+HLfuHYUqNF/14mE0T01gy2gkBCiJ2IFDIvpVhFzp65ElF3c7meGAF7Osqz//6useY04+vTIxGU3A==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/@fastify/nextjs/-/nextjs-10.0.1.tgz", + "integrity": "sha512-BenebMGI0C1sM2CIYwcy7ZDvXvIM9ZK+XFelq2kztvQw5wpIlI7Miou15Dzj818zdVe5C0vaZUSHLdwzi/w2DQ==", "dev": true, "dependencies": { "@fastify/under-pressure": "^8.0.0", @@ -5138,12 +5139,12 @@ } }, "node_modules/frourio": { - "version": "0.32.0", - "resolved": "https://registry.npmjs.org/frourio/-/frourio-0.32.0.tgz", - "integrity": "sha512-XO7MKk/zxvFtMc/fwZLU8D6ICL+9XxorVohxOuyn7GtZ2LdzKzicMRYCigNtK/bVW3LLSg9DuPd+ONfHbIB+0g==", + "version": "0.34.1", + "resolved": "https://registry.npmjs.org/frourio/-/frourio-0.34.1.tgz", + "integrity": "sha512-BWE890u0O+Um1jui0QAupd1zbriQW3Z/FJqZNOi0hH2mkm4EkwROaZ69rNCCfbyBDJzdQh/uyId/AhCzdxQdfw==", "dependencies": { - "aspida": "^1.11.0", - "velona": "^0.7.0", + "aspida": "^1.13.3", + "velona": "^0.8.0", "zod": "^3.21.4" }, "bin": { @@ -10807,9 +10808,12 @@ } }, "node_modules/swr": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/swr/-/swr-1.3.0.tgz", - "integrity": "sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/swr/-/swr-2.2.0.tgz", + "integrity": "sha512-AjqHOv2lAhkuUdIiBu9xbuettzAzWXmCEcLONNKJRba87WAefz8Ca9d6ds/SzrPc235n1IxWYdhJ2zF3MNUaoQ==", + "dependencies": { + "use-sync-external-store": "^1.2.0" + }, "peerDependencies": { "react": "^16.11.0 || ^17.0.0 || ^18.0.0" } @@ -11670,9 +11674,9 @@ } }, "node_modules/velona": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/velona/-/velona-0.7.0.tgz", - "integrity": "sha512-+lFXKHJxj7mK3OnYKLHGijf+LCPvv8Mphvy3JETAGvKbn2179dQcOxvlYggOzYUfVHSn9kWmerivMZBtz3eN0Q==" + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/velona/-/velona-0.8.0.tgz", + "integrity": "sha512-faID/zMe6Tdu1VPFEcFW2UA5sc4Tkh8DwXwNiuQUJSXj+wdEHpoaA/fSqHQnSMPjsl+8lpe+bij4E6/iJ3D5oA==" }, "node_modules/vfile": { "version": "5.3.7", diff --git a/package.json b/package.json index 330431b..ef5f9b9 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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", @@ -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", diff --git a/server/index.ts b/server/index.ts index e59688c..afe8c74 100644 --- a/server/index.ts +++ b/server/index.ts @@ -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 @@ -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)