diff --git a/bun.lockb b/bun.lockb index ec4afa0..bb4436f 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index f5371e2..ee351c5 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,7 @@ }, "dependencies": { "@hono/valibot-validator": "^0.4.0", - "@taisan11/hono-shiftjis": "npm:@jsr/taisan11__hono-shiftjis", - "drizzle-orm": "^0.34.1", + "drizzle-orm": "^0.35.1", "hono": "^4.6.5", "iconv-cp932": "^1.2.2", "nanoid": "^5.0.7", @@ -14,10 +13,10 @@ "unenv": "^1.10.0", "unix-crypt-td-js": "^1.1.4", "unstorage": "^1.12.0", - "valibot": "^1.0.0-beta.1" + "valibot": "^0.42.1" }, "devDependencies": { "@types/bun": "^1.1.11", - "drizzle-kit": "^0.25.0" + "drizzle-kit": "^0.26.2" } } diff --git a/src/oldui.tsx b/src/oldui.tsx index 03ae523..05960fb 100644 --- a/src/oldui.tsx +++ b/src/oldui.tsx @@ -4,7 +4,7 @@ import { getSubject, getSubjecttxt, getThread, getdat } from "./module/storage"; import { kakikoAPI } from "./module/kakiko-api"; import { getConnInfo } from './module/unHono' import { env } from "hono/adapter"; -import {shiftjis} from "@taisan11/hono-shiftjis/src/index" +import {encode} from "iconv-cp932" declare module "hono" { interface ContextRenderer { @@ -14,7 +14,12 @@ declare module "hono" { const app = new Hono() -app.use((c,next)=>shiftjis(c,next)) +app.use(async (c,next)=>{ + await next() + const moto = await c.res.text() + const encoded = encode(moto) + c.res = new Response(encoded, c.res) +}) app.get( "*", @@ -22,7 +27,7 @@ app.get( return ( - +