From b0548f05cca3bae9f20b9ef34ff72fec48b41221 Mon Sep 17 00:00:00 2001 From: Andy Burke Date: Thu, 19 Jun 2025 17:29:45 -0700 Subject: [PATCH] fix: try to address loading typescript from a compiled binary to no avail: https://github.com/denoland/deno/issues/18327#issuecomment-2989449015 --- handlers/typescript.ts | 11 ++++++++--- server.ts | 1 + tests/www/permissions/test.ts | 4 ++-- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/handlers/typescript.ts b/handlers/typescript.ts index 6726a77..ca02b82 100644 --- a/handlers/typescript.ts +++ b/handlers/typescript.ts @@ -69,10 +69,15 @@ export default async function handle_typescript(request: Request): Promise { + console.error(error); return Response.json({ error: { message: (error as Error).message } }, { status: 500 }); }, signal diff --git a/tests/www/permissions/test.ts b/tests/www/permissions/test.ts index 813afc2..4dfa685 100644 --- a/tests/www/permissions/test.ts +++ b/tests/www/permissions/test.ts @@ -1,5 +1,5 @@ -export const PRECHECKS: Record) => Promise | Response | undefined> = - {}; +type PRECHECK = (req: Request, meta: Record) => Promise | Response | undefined; +export const PRECHECKS: Record = {}; PRECHECKS.GET = (request: Request, _meta: Record): Response | undefined => { const secret = request.headers.get('x-secret');