Skip to content

Commit a369ddd

Browse files
authored
Merge pull request #1419 from finos/cli-fix
Fix CLI `async` regression
2 parents 569c1ed + 302839b commit a369ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/perspective-cli/src/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async function convert(filename, options) {
2929
try {
3030
file = JSON.parse(file);
3131
} catch {}
32-
let tbl = table(file);
32+
let tbl = await table(file);
3333
let view = await tbl.view();
3434
let out;
3535
options.format = options.format || "arrow";
@@ -73,7 +73,7 @@ async function host(filename, options) {
7373
const server = new WebSocketServer({assets: files, port: options.port});
7474
let file;
7575
if (filename) {
76-
file = table(fs.readFileSync(filename).toString());
76+
file = await table(fs.readFileSync(filename).toString());
7777
} else {
7878
file = await read_stdin();
7979
}

0 commit comments

Comments
 (0)