@hiveio/dhive 1.2.2 → 1.2.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.
- package/dist/dhive.js +1 -1
- package/dist/dhive.js.gz +0 -0
- package/dist/dhive.js.map +1 -1
- package/lib/crypto.js +2 -1
- package/lib/utils.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -1
package/lib/crypto.js
CHANGED
|
@@ -38,6 +38,7 @@ const assert = require("assert");
|
|
|
38
38
|
const bs58 = require("bs58");
|
|
39
39
|
const ByteBuffer = require("bytebuffer");
|
|
40
40
|
const crypto_1 = require("crypto");
|
|
41
|
+
const Ripemd160 = require("ripemd160");
|
|
41
42
|
const secp256k1 = require("secp256k1");
|
|
42
43
|
const verror_1 = require("verror");
|
|
43
44
|
const serializer_1 = require("./chain/serializer");
|
|
@@ -51,7 +52,7 @@ exports.NETWORK_ID = Buffer.from([0x80]);
|
|
|
51
52
|
* Return ripemd160 hash of input.
|
|
52
53
|
*/
|
|
53
54
|
function ripemd160(input) {
|
|
54
|
-
return
|
|
55
|
+
return new Ripemd160()
|
|
55
56
|
.update(input)
|
|
56
57
|
.digest();
|
|
57
58
|
}
|
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', 'CERT_HAS_EXPIRED'];
|
|
56
|
+
const timeoutErrors = ['timeout', 'ENOTFOUND', 'ECONNREFUSED', 'database lock', 'CERT_HAS_EXPIRED', 'EHOSTUNREACH'];
|
|
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiveio/dhive",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"description": "Hive blockchain RPC client library",
|
|
5
5
|
"author": "hive-network",
|
|
6
6
|
"license": "BSD-3-Clause-No-Military-License",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"https": "^1.0.0",
|
|
40
40
|
"jsbi": "^3.1.4",
|
|
41
41
|
"node-fetch": "^2.6.0",
|
|
42
|
+
"ripemd160": "^2.0.2",
|
|
42
43
|
"secp256k1": "^3.8.0",
|
|
43
44
|
"verror": "^1.10.0",
|
|
44
45
|
"whatwg-fetch": "^3.0.0"
|