From 2dfb0cfe5adeac3a21671d6eb472f4bd99ea5b57 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Fri, 30 Dec 2022 21:44:40 +0000 Subject: [PATCH] cdp: make progress logging same as node --- src/lib/cdp.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/cdp.js b/src/lib/cdp.js index b3a0576..c581799 100644 --- a/src/lib/cdp.js +++ b/src/lib/cdp.js @@ -45,8 +45,7 @@ export default async ({ pipe: { pipeWrite, pipeRead } = {}, port }) => { const continualTrying = func => new Promise(resolve => { const attempt = async () => { try { - console.log('a'); - // process.stdout.write('.'); + Deno.stdout.write(new TextEncoder().encode('.')); resolve(await func()); } catch (e) { // fail, wait 100ms and try again await new Promise(res => setTimeout(res, 200));