@psf/bch-js 7.1.2 → 7.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/dsproof.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@psf/bch-js",
3
- "version": "7.1.2",
3
+ "version": "7.1.4",
4
4
  "type": "module",
5
5
  "description": "A JavaScript library for working with Bitcoin Cash and SLP Tokens",
6
6
  "author": "Chris Troutner <chris.troutner@gmail.com>",
@@ -13,7 +13,7 @@
13
13
  "test": "export RESTURL=http://localhost:5942/v6 && c8 mocha --trace-warnings --unhandled-rejections=strict --timeout 30000 test/unit/",
14
14
  "test:integration": "npm run test:integration:local:noauth",
15
15
  "test:integration:fullstack:free": "export RESTURL=https://bch.fullstack.cash/v6 && mocha --timeout 60000 test/integration/",
16
- "test:integration:fullstack:x402": "export RESTURL=https://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 30000 test/integration/",
16
+ "test:integration:fullstack:x402": "export RESTURL=https://x402-bch.fullstack.cash/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 120000 test/integration/",
17
17
  "test:integration:local:noauth": "export RESTURL=http://localhost:5942/v6 && mocha --timeout 30000 test/integration/",
18
18
  "test:integration:local:auth": "export RESTURL=http://192.168.1.115:5942/v6 && export BCHJSBEARERTOKEN=temp01 && mocha --timeout 30000 test/integration/",
19
19
  "test:integration:local:x402": "export RESTURL=http://localhost:5942/v6 && export BCHJSWIF=L1eYaneXDDXy8VDig4Arwe8wYHbhtsA5wuQvwsKwhaYeneoZuKG4 && mocha --timeout 1200000 test/integration/",
@@ -52,7 +52,7 @@
52
52
  "slp-mdm": "0.0.7",
53
53
  "slp-parser": "0.0.4",
54
54
  "wif": "2.0.6",
55
- "x402-bch-axios": "1.1.2"
55
+ "x402-bch-axios": "2.1.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "apidoc": "1.2.0",
package/src/dsproof.js CHANGED
@@ -6,7 +6,8 @@ class DSProof {
6
6
  constructor (config) {
7
7
  this.restURL = config.restURL
8
8
  this.authToken = config.authToken
9
- this.axios = axios
9
+ // Use the shared axios instance if provided, otherwise fall back to axios
10
+ this.axios = config.axios || axios
10
11
 
11
12
  this.axiosOptions = {
12
13
  headers: {