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) diff --git a/server/pretense/package.json b/server/pretense/package.json index e650d02..a31ed79 100644 --- a/server/pretense/package.json +++ b/server/pretense/package.json @@ -6,18 +6,18 @@ "upgrade-frourio": "npx npm-check-updates frourio frourio-express aspida @aspida/axios @aspida/fetch @aspida/node-fetch @aspida/react-query @aspida/swr pathpida -u" }, "dependencies": { - "@aspida/axios": "^1.11.0", - "@aspida/fetch": "^1.11.0", - "@aspida/node-fetch": "^1.11.0", - "@aspida/react-query": "^1.11.0", - "@aspida/swr": "^1.11.0", + "@aspida/axios": "^1.13.3", + "@aspida/fetch": "^1.13.3", + "@aspida/node-fetch": "^1.13.3", + "@aspida/react-query": "^1.13.3", + "@aspida/swr": "^1.13.3", "@commitlint/cli": "^16.1.0", "@commitlint/config-conventional": "^16.0.0", - "@fastify/cors": "^8.2.0", - "@fastify/helmet": "^10.1.0", - "@fastify/jwt": "^6.3.3", - "@fastify/multipart": "^7.3.0", - "@fastify/static": "^6.5.1", + "@fastify/cors": "^8.3.0", + "@fastify/helmet": "^11.0.0", + "@fastify/jwt": "^7.2.0", + "@fastify/multipart": "^7.7.3", + "@fastify/static": "^6.10.0", "@nuxt/types": "^2.15.8", "@nuxt/typescript-build": "^2.1.0", "@nuxt/typescript-runtime": "^2.1.0", @@ -43,8 +43,8 @@ "@typescript-eslint/parser": "^5.57.1", "@vendia/serverless-express": "^4.5.3", "@vue/test-utils": "^1.3.0", - "aspida": "^1.11.0", - "axios": "^0.27.2", + "aspida": "^1.13.3", + "axios": "^1.4.0", "babel-core": "7.0.0-bridge.0", "babel-eslint": "^10.1.0", "babel-jest": "^29.3.1", @@ -66,10 +66,10 @@ "eslint-plugin-react": "^7.31.11", "express": "^4.18.2", "express-jwt": "^7.7.7", - "fastify": "^4.15.0", - "frourio": "^0.32.0", - "frourio-express": "^0.32.0", - "helmet": "^6.0.0", + "fastify": "^4.21.0", + "frourio": "^0.34.1", + "frourio-express": "^0.34.0", + "helmet": "^7.0.0", "husky": "^7.0.4", "identity-obj-proxy": "^3.0.0", "jest": "^29.3.1", @@ -97,14 +97,14 @@ "stylelint": "^14.3.0", "stylelint-config-prettier": "^9.0.3", "stylelint-config-standard": "^24.0.0", - "swr": "^1.3.0", + "swr": "^2.2.0", "ts-jest": "^29.0.3", "ts-loader": "^8.4.0", "ts-node": "^10.9.1", "tsconfig-paths-webpack-plugin": "^3.5.2", "typeorm": "^0.2.41", "typeormer": "^0.1.3", - "typescript": "^5.0.3", + "typescript": "^5.1.6", "vue-jest": "^3.0.7", "wait-on": "^6.0.1", "webpack": "^5.75.0",