]> git.codecow.com Git - libnemo.git/commitdiff
Debug password from worker message.
authorChris Duncan <chris@zoso.dev>
Thu, 31 Jul 2025 22:58:03 +0000 (15:58 -0700)
committerChris Duncan <chris@zoso.dev>
Thu, 31 Jul 2025 22:58:03 +0000 (15:58 -0700)
src/lib/safe.ts
src/lib/worker-queue.ts
test/main.test.mjs

index fb085dd8eb54b933c121fa4b0904210a982e56e5..b42baa4adc6450c08b4c7bd18bc19335ae376c26 100644 (file)
@@ -29,7 +29,6 @@ export class Safe {
        static {
                NODE: this.#parentPort = parentPort
                const listener = async (message: MessageEvent<any>): Promise<void> => {
-                       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')
index eb3630604612e1898f1bf47b5af57cb8081f02a2..6fe2bc6d00a7a9459788307b14561d47f9f2ad91 100644 (file)
@@ -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 => {
index 3ab48d6ad4c1eacdfa59c884afa7e240ce61e552..ada0c28a6a82c56c51ec92ec5f2b578718caf2c9 100644 (file)
@@ -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)