Skip to content

Commit

Permalink
Cleanup before new release
Browse files Browse the repository at this point in the history
  • Loading branch information
robertaboukhalil committed Aug 15, 2024
1 parent afc5b87 commit 833b181
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
10 changes: 4 additions & 6 deletions src/examples/test-biowasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
10 changes: 6 additions & 4 deletions src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
}
}
});

Expand Down

0 comments on commit 833b181

Please sign in to comment.