Update packages

This commit is contained in:
Hri7566 2024-06-12 04:47:14 -04:00
parent 83f86214b5
commit 363b00b949
4 changed files with 19 additions and 18 deletions

BIN
bun.lockb

Binary file not shown.

View File

@ -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"
}
}

View File

@ -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";

View File

@ -6,14 +6,14 @@ import type { AppRouter } from "@server/api/trpc";
export function gettRPC(token: string) {
return createTRPCClient<AppRouter>({
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() {