From: Chris Duncan Date: Thu, 31 Jul 2025 22:58:03 +0000 (-0700) Subject: Debug password from worker message. X-Git-Tag: v0.10.5~47^2~34 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3decc7ef4382de9cecaca7b87c79f73af177f7e8;p=libnemo.git Debug password from worker message. --- 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)