diff --git a/bun.lockb b/bun.lockb index c4a28dc..f4040fc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 1df75ed..f90bb6c 100644 --- a/package.json +++ b/package.json @@ -7,21 +7,22 @@ "start-bot": "bun src/mpp/index.ts" }, "devDependencies": { - "@types/bun": "latest" + "@types/bun": "^1.1.3" }, "peerDependencies": { - "typescript": "^5.0.0" + "typescript": "^5.3.3" }, "dependencies": { - "@prisma/client": "^5.9.1", + "@prisma/client": "^5.15.0", "@trpc/client": "next", "@trpc/server": "next", - "cli-markdown": "^3.2.2", - "discord.js": "^14.14.1", - "mpp-client-net": "^1.1.3", - "prisma": "^5.9.1", + "@types/node": "^20.14.2", + "cli-markdown": "^3.4.0", + "discord.js": "^14.15.3", + "mpp-client-net": "^1.2.0", + "prisma": "^5.15.0", "trpc-bun-adapter": "^1.1.0", - "yaml": "^2.3.4", - "zod": "^3.22.4" + "yaml": "^2.4.5", + "zod": "^3.23.8" } } diff --git a/src/cli/index.ts b/src/cli/index.ts index 6da2b6a..58485b6 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -1,5 +1,5 @@ import { Logger } from "@util/Logger"; -import { createInterface, type ReadLine } from "readline"; +import { createInterface } from "readline"; import { EventEmitter } from "events"; import gettRPC from "@util/api/trpc"; import { startAutorestart } from "@util/autorestart"; diff --git a/src/util/api/trpc.ts b/src/util/api/trpc.ts index ca5df76..2b7ea2e 100644 --- a/src/util/api/trpc.ts +++ b/src/util/api/trpc.ts @@ -6,14 +6,14 @@ import type { AppRouter } from "@server/api/trpc"; export function gettRPC(token: string) { return createTRPCClient({ links: [ - // httpBatchLink({ - // url: "http://localhost:3000", - // headers() { - // return { - // Authorization: token - // }; - // } - // }), + httpBatchLink({ + url: "http://localhost:3000", + headers() { + return { + Authorization: token + }; + } + }), httpBatchLink({ url: "https://fishing.hri7566.info/api", headers() {