@hiveio/dhive 1.2.0 → 1.2.1
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/dist/dhive.d.ts +2 -30
- package/dist/dhive.js +1 -1
- package/dist/dhive.js.gz +0 -0
- package/dist/dhive.js.map +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/utils.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
package/lib/client.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ export declare class Client {
|
|
|
158
158
|
private backoff;
|
|
159
159
|
private failoverThreshold;
|
|
160
160
|
private consoleOnFailover;
|
|
161
|
-
|
|
161
|
+
currentAddress: string;
|
|
162
162
|
/**
|
|
163
163
|
* @param address The address to the Hive RPC server,
|
|
164
164
|
* e.g. `https://api.hive.blog`. or [`https://api.hive.blog`, `https://another.api.com`]
|
package/lib/utils.js
CHANGED
|
@@ -53,7 +53,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
53
53
|
const cross_fetch_1 = require("cross-fetch");
|
|
54
54
|
const stream_1 = require("stream");
|
|
55
55
|
// TODO: Add more errors that should trigger a failover
|
|
56
|
-
const timeoutErrors = ['timeout', 'ENOTFOUND', 'ECONNREFUSED', 'database lock'];
|
|
56
|
+
const timeoutErrors = ['timeout', 'ENOTFOUND', 'ECONNREFUSED', 'database lock', 'CERT_HAS_EXPIRED'];
|
|
57
57
|
/**
|
|
58
58
|
* Return a promise that will resove when a specific event is emitted.
|
|
59
59
|
*/
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiveio/dhive",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Hive blockchain RPC client library",
|
|
5
5
|
"author": "hive-network",
|
|
6
|
-
"license": "BSD-3-Clause",
|
|
6
|
+
"license": "BSD-3-Clause-No-Military-License",
|
|
7
7
|
"main": "./lib/index-node",
|
|
8
8
|
"typings": "./lib/index",
|
|
9
9
|
"browser": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"bytebuffer": "^5.0.1",
|
|
37
37
|
"core-js": "^3.6.4",
|
|
38
38
|
"cross-fetch": "^3.0.4",
|
|
39
|
+
"https": "^1.0.0",
|
|
39
40
|
"jsbi": "^3.1.4",
|
|
40
41
|
"node-fetch": "^2.6.0",
|
|
41
42
|
"secp256k1": "^3.8.0",
|