@bytecodealliance/jco-std
Advanced tools
@@ -9,3 +9,3 @@ import type { Hono, Schema as HonoSchema, Env as HonoEnv } from "hono"; | ||
| export declare const incomingHandler: { | ||
| handle(req: any, resp: any): void; | ||
| handle(req: any, resp: any): Promise<void>; | ||
| }; | ||
@@ -12,0 +12,0 @@ /** Options for calling `fire()` */ |
@@ -60,3 +60,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
| const resp = await app.fetch(request); | ||
| writeWebResponse(resp, wasiResponse); | ||
| await writeWebResponse(resp, wasiResponse); | ||
| }, | ||
@@ -82,3 +82,3 @@ }, | ||
| export const incomingHandler = { | ||
| handle(req, // IncomingRequest | ||
| async handle(req, // IncomingRequest | ||
| resp) { | ||
@@ -96,3 +96,3 @@ if (!ADAPTER) { | ||
| } | ||
| incomingHandler.handle(req, resp); | ||
| await incomingHandler.handle(req, resp); | ||
| }, | ||
@@ -99,0 +99,0 @@ }; |
+1
-1
| { | ||
| "name": "@bytecodealliance/jco-std", | ||
| "version": "0.1.2", | ||
| "version": "0.1.3", | ||
| "description": "Library of shared functionality for use with the JS WebAssembly components", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
73216
0.04%