evernode-js-client 0.6.34 → 0.6.35
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
CHANGED
@@ -9149,7 +9149,7 @@ module.exports = { mask, unmask };
|
|
9149
9149
|
|
9150
9150
|
|
9151
9151
|
try {
|
9152
|
-
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.
|
9152
|
+
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi.node");
|
9153
9153
|
} catch (e) {
|
9154
9154
|
module.exports = __nccwpck_require__(2567);
|
9155
9155
|
}
|
@@ -33340,7 +33340,7 @@ module.exports = isValidUTF8;
|
|
33340
33340
|
|
33341
33341
|
|
33342
33342
|
try {
|
33343
|
-
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.
|
33343
|
+
module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi1.node");
|
33344
33344
|
} catch (e) {
|
33345
33345
|
module.exports = __nccwpck_require__(9372);
|
33346
33346
|
}
|
@@ -53169,29 +53169,6 @@ class RegistryClient extends BaseEvernodeClient {
|
|
53169
53169
|
super(options.registryAddress, null, Object.values(RegistryEvents), false, options);
|
53170
53170
|
}
|
53171
53171
|
|
53172
|
-
/**
|
53173
|
-
* Gets all the active hosts registered in Evernode without paginating.
|
53174
|
-
* @returns The list of active hosts.
|
53175
|
-
*/
|
53176
|
-
async getActiveHosts() {
|
53177
|
-
let fullHostList = [];
|
53178
|
-
const hosts = await this.getHosts();
|
53179
|
-
if (hosts.nextPageToken) {
|
53180
|
-
let currentPageToken = hosts.nextPageToken;
|
53181
|
-
let nextHosts = null;
|
53182
|
-
fullHostList = fullHostList.concat(hosts.data);
|
53183
|
-
while (currentPageToken) {
|
53184
|
-
nextHosts = await this.getHosts(null, null, currentPageToken);
|
53185
|
-
fullHostList = fullHostList.concat(nextHosts.nextPageToken ? nextHosts.data : nextHosts);
|
53186
|
-
currentPageToken = nextHosts.nextPageToken;
|
53187
|
-
}
|
53188
|
-
} else {
|
53189
|
-
fullHostList = fullHostList.concat(hosts);
|
53190
|
-
}
|
53191
|
-
// Filter only active hosts.
|
53192
|
-
return fullHostList.filter(h => h.active);
|
53193
|
-
}
|
53194
|
-
|
53195
53172
|
/**
|
53196
53173
|
* Gets all the active hosts registered in ledger.
|
53197
53174
|
* @returns The list of active hosts.
|
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.35",
|
10
10
|
"dependencies": {
|
11
11
|
"elliptic": "6.5.4",
|
12
12
|
"libsodium-wrappers": "0.7.10",
|
Binary file
|
Binary file
|