From ec046d3ef769a9ce72520e5c86cfbd896f7fe18d Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Sun, 21 Dec 2025 15:53:46 -0700 Subject: [PATCH 1/2] fix(dsproof): Fixing bug with axios instantiation --- src/dsproof.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dsproof.js b/src/dsproof.js index a90e074..c6638a0 100644 --- a/src/dsproof.js +++ b/src/dsproof.js @@ -6,7 +6,8 @@ class DSProof { constructor (config) { this.restURL = config.restURL this.authToken = config.authToken - this.axios = axios + // Use the shared axios instance if provided, otherwise fall back to axios + this.axios = config.axios || axios this.axiosOptions = { headers: { From 6743ca5fa9e688bd4467b95de45cf932c33f4a03 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 22 Dec 2025 08:58:04 -0700 Subject: [PATCH 2/2] Updating integration test script --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b7a6ca1..cf54093 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "export RESTURL=http://localhost:5942/v6 && c8 mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/", "test:integration": "npm run test:integration:local:noauth", "test:integration:fullstack:free": "export RESTURL=https://bch.fullstack.cash/v6 && mocha --timeout 60000 test/integration/", - "test:integration:fullstack:x402": "export RESTURL=https://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 30000 test/integration/", + "test:integration:fullstack:x402": "export RESTURL=https://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 120000 test/integration/", "test:integration:local:noauth": "export RESTURL=http://localhost:5942/v6 && mocha --timeout 30000 test/integration/", "test:integration:local:auth": "export RESTURL=http://192.168.1.115:5942/v6 && export BCHJSBEARERTOKEN=temp01 && mocha --timeout 30000 test/integration/", "test:integration:local:x402": "export RESTURL=http://localhost:5942/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 1200000 test/integration/",