diff --git a/package.json b/package.json index 6b97bf2..348db0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@biowasm/aioli", - "version": "3.1.0", + "version": "3.2.0", "description": "A framework for building WebAssembly-based genomics tools", "repository": { "type": "git", diff --git a/src/examples/test-biowasm.js b/src/examples/test-biowasm.js index d30d336..502f434 100644 --- a/src/examples/test-biowasm.js +++ b/src/examples/test-biowasm.js @@ -4,16 +4,14 @@ import Aioli from "../../dist/aioli.mjs"; const CLI = await new Aioli([ { tool: "samtools", - version: "1.16", - // URL at which .js/.wasm assets are located - urlPrefix: "http://localhost:12346/biowasm3/tools/samtools/build" + version: "1.17", + urlPrefix: "http://localhost:12346/biowasm/tools/samtools/build" }, { tool: "htslib", program: "htsfile", - version: "1.16", - // URL at which .js/.wasm assets are located - urlPrefix: "http://localhost:12346/biowasm3/tools/htslib/build" + version: "1.17", + urlPrefix: "http://localhost:12346/biowasm/tools/htslib/build" } ], { debug: true }); diff --git a/src/worker.js b/src/worker.js index 926bc22..30092bc 100644 --- a/src/worker.js +++ b/src/worker.js @@ -376,25 +376,27 @@ const aioli = { }, // Setup print functions to store stdout/stderr output print: text => { - tool.stdout += `${text}\n`; - if(aioli.config.printStream) + tool.stdout += text + "\n"; + if(aioli.config.printStream) { postMessage({ type: "biowasm", value: { stdout: text, }, }); + } }, printErr: text => { const destination = aioli.config.printInterleaved ? "stdout" : "stderr"; - tool[destination] += `${text}\n`; - if(aioli.config.printStream) + tool[destination] += text + "\n"; + if(aioli.config.printStream) { postMessage({ type: "biowasm", value: { [destination]: text, }, }); + } } });