From 3decc7ef4382de9cecaca7b87c79f73af177f7e8 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 31 Jul 2025 15:58:03 -0700 Subject: [PATCH] Debug password from worker message. --- src/lib/safe.ts | 3 +-- src/lib/worker-queue.ts | 2 -- test/main.test.mjs | 20 ++++++++++---------- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/lib/safe.ts b/src/lib/safe.ts index fb085dd..b42baa4 100644 --- a/src/lib/safe.ts +++ b/src/lib/safe.ts @@ -29,7 +29,6 @@ export class Safe { static { NODE: this.#parentPort = parentPort const listener = async (message: MessageEvent): Promise => { - debugger const { action, type, @@ -361,7 +360,7 @@ export class Safe { throw new TypeError('Invalid wallet action') } const action = messageData.action - + debugger // Password for lock/unlock key if ('password' in messageData || !(messageData.password instanceof ArrayBuffer)) { throw new TypeError('Password must be ArrayBuffer') diff --git a/src/lib/worker-queue.ts b/src/lib/worker-queue.ts index eb36306..6fe2bc6 100644 --- a/src/lib/worker-queue.ts +++ b/src/lib/worker-queue.ts @@ -33,8 +33,6 @@ export class WorkerQueue { constructor (worker: string) { this.#isIdle = true this.#queue = [] - console.log(worker) - debugger this.#url = URL.createObjectURL(new Blob([worker], { type: 'text/javascript' })) BROWSER: this.#worker = new Worker(this.#url, { type: 'module' }) BROWSER: this.#worker.addEventListener('message', message => { diff --git a/test/main.test.mjs b/test/main.test.mjs index 3ab48d6..ada0c28 100644 --- a/test/main.test.mjs +++ b/test/main.test.mjs @@ -4,17 +4,17 @@ import { failures, passes } from './GLOBALS.mjs' import './test.runner-check.mjs' -// import './test.blake2b.mjs' +import './test.blake2b.mjs' import './test.blocks.mjs' -// import './test.calculate-pow.mjs' -// import './test.create-wallet.mjs' -// import './test.derive-accounts.mjs' -// import './test.import-wallet.mjs' -// import './test.ledger.mjs' -// import './test.lock-unlock.mjs' -// import './test.manage-rolodex.mjs' -// import './test.refresh-accounts.mjs' -// import './test.tools.mjs' +import './test.calculate-pow.mjs' +import './test.create-wallet.mjs' +import './test.derive-accounts.mjs' +import './test.import-wallet.mjs' +import './test.ledger.mjs' +import './test.lock-unlock.mjs' +import './test.manage-rolodex.mjs' +import './test.refresh-accounts.mjs' +import './test.tools.mjs' console.log('%cTESTING COMPLETE', 'color:orange;font-weight:bold') console.log('%cPASS: ', 'color:green;font-weight:bold', passes.length) -- 2.47.3