evernode-js-client 0.6.51 → 0.6.52
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 +9 -5
- package/package.json +1 -1
- package/node.napi11.node +0 -0
- package/node.napi2.node +0 -0
- package/secp256k1.node +0 -0
package/index.js
CHANGED
@@ -61492,13 +61492,17 @@ class HostClient extends BaseEvernodeClient {
|
|
61492
61492
|
return null;
|
61493
61493
|
|
61494
61494
|
try {
|
61495
|
+
let data = {};
|
61495
61496
|
const repMoment = moment ?? await this.getMoment();
|
61496
61497
|
const orderInfo = await this.getReputationOrderByAddress(this.reputationAcc.address, repMoment);
|
61498
|
+
if (orderInfo)
|
61499
|
+
data = orderInfo;
|
61497
61500
|
|
61498
|
-
|
61499
|
-
|
61500
|
-
|
61501
|
-
|
61501
|
+
const info = await this.getReputationInfoByAddress(this.reputationAcc.address, repMoment);
|
61502
|
+
if (info)
|
61503
|
+
data = { ...info, ...data };
|
61504
|
+
|
61505
|
+
return Object.keys(data).length > 0 ? data : null;
|
61502
61506
|
}
|
61503
61507
|
catch (e) {
|
61504
61508
|
// If the exception is entryNotFound from Rippled there's no entry for the host, So return null.
|
@@ -61516,7 +61520,7 @@ class HostClient extends BaseEvernodeClient {
|
|
61516
61520
|
*/
|
61517
61521
|
async prepareHostReputationScores(collectedScores = {}) {
|
61518
61522
|
const myReputationInfo = await this.getReputationOrderByAddress(this.reputationAcc.address);
|
61519
|
-
if (!myReputationInfo
|
61523
|
+
if (!("orderedId" in (myReputationInfo ?? {})))
|
61520
61524
|
throw 'You are not registered for reputation for this moment.';
|
61521
61525
|
|
61522
61526
|
const myOrderId = myReputationInfo.orderedId;
|
package/package.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
],
|
7
7
|
"homepage": "https://github.com/HotPocketDev/evernode-js-client",
|
8
8
|
"license": "SEE LICENSE IN https://raw.githubusercontent.com/EvernodeXRPL/evernode-resources/main/license/evernode-license.pdf",
|
9
|
-
"version": "0.6.
|
9
|
+
"version": "0.6.52",
|
10
10
|
"dependencies": {
|
11
11
|
"elliptic": "6.5.4",
|
12
12
|
"libsodium-wrappers": "0.7.10",
|
package/node.napi11.node
DELETED
Binary file
|
package/node.napi2.node
DELETED
Binary file
|
package/secp256k1.node
DELETED
Binary file
|