build(deps): bump hono from 4.11.7 to 4.12.22

Fix TypeScript errors from stricter c.req.param() types (string | undefined).
This commit is contained in:
Julien Herr
2026-05-22 17:33:47 +02:00
parent ea400883dd
commit 03d069bfa3
4 changed files with 10 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { Env, FeedMetadata, EmailData } from "../types";
export async function handle(c: Context<{ Bindings: Env }>): Promise<Response> {
const feedId = c.req.param("feedId");
const receivedAt = parseInt(c.req.param("entryId"), 10);
const receivedAt = parseInt(c.req.param("entryId") ?? "", 10);
if (!feedId || isNaN(receivedAt)) {
return new Response("Not Found", { status: 404 });
+4
View File
@@ -9,6 +9,10 @@ export async function handle(c: Context<{ Bindings: Env }>): Promise<Response> {
const attachmentId = c.req.param("attachmentId");
const filename = c.req.param("filename");
if (!attachmentId || !filename) {
return new Response("Not found", { status: 404 });
}
const object = await c.env.ATTACHMENT_BUCKET.get(attachmentId);
if (!object) {