From 9572478316249629a8581e08975b7c1307d68024 Mon Sep 17 00:00:00 2001 From: Hatter Jiang Date: Sat, 14 Feb 2026 20:41:22 +0800 Subject: [PATCH] update deno wasm mod --- libraries/deno-wasm-mod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/deno-wasm-mod.ts b/libraries/deno-wasm-mod.ts index 0e16660..51027ea 100644 --- a/libraries/deno-wasm-mod.ts +++ b/libraries/deno-wasm-mod.ts @@ -15,7 +15,7 @@ async function execWasm( wasmArgs?: string[], ): never { const wasmCacheFileMeta = await fetchFileWithCache(wasmUrl); - const wasmCommandArgs = [wasmCacheFileMeta.cache_full_path, "--"]; + const wasmCommandArgs: string[] = [wasmCacheFileMeta.cache_full_path, "--"]; if (wasmArgs) { wasmCommandArgs.push(...wasmArgs); } @@ -24,6 +24,7 @@ async function execWasm( } if (import.meta.main) { + // TODO not works? why? await execWasm( "wasmer", "https://cdn.hatter.ink/doc/8998_BE8D1CBE6106C77968183F226E2129B5/jq.wasm",