@dfns/lib-vechain 0.1.1 → 0.1.2-rc.2
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.
- package/index.js +2 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -7,12 +7,11 @@ const thor_devkit_1 = require("thor-devkit");
|
|
|
7
7
|
const sleep = (interval = 0) => new Promise((resolve) => setTimeout(resolve, interval));
|
|
8
8
|
class DfnsWallet {
|
|
9
9
|
constructor(address, options) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
this.address = address;
|
|
12
11
|
this.options = {
|
|
13
12
|
...options,
|
|
14
|
-
maxRetries:
|
|
15
|
-
retryInterval:
|
|
13
|
+
maxRetries: options.maxRetries ?? 3,
|
|
14
|
+
retryInterval: options.retryInterval ?? 1000,
|
|
16
15
|
};
|
|
17
16
|
}
|
|
18
17
|
static async init(options) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfns/lib-vechain",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2-rc.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@vechain/connex-driver": "2.0.12",
|
|
6
6
|
"buffer": "6.0.3",
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"uuid": "9.0.0"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@dfns/sdk": "0.1.
|
|
13
|
+
"@dfns/sdk": "0.1.2-rc.2"
|
|
14
14
|
},
|
|
15
15
|
"main": "./index.js",
|
|
16
|
-
"
|
|
16
|
+
"type": "commonjs"
|
|
17
17
|
}
|