evernode-js-client 0.6.22 → 0.6.24

Sign up to get free protection for your applications and to get access to all the features.
Binary file
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.napi.node");
9152
+ module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi1.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.napi1.node");
33343
+ module.exports = require(__nccwpck_require__.ab + "prebuilds/linux-x64/node.napi.node");
33344
33344
  } catch (e) {
33345
33345
  module.exports = __nccwpck_require__(9372);
33346
33346
  }
@@ -55178,10 +55178,6 @@ class FirestoreHandler {
55178
55178
  #collectionPrefix = null;
55179
55179
 
55180
55180
  constructor(options = {}) {
55181
- if (!Defaults.values.useCentralizedRegistry) {
55182
- console.warn("Please change the useCentralizedRegistry flag to true in Defaults if you want to use this function!")
55183
- throw new Error("Centralized function is in use!!")
55184
- }
55185
55181
  this.#projectId = options.stateIndexId || Defaults.values.stateIndexId;
55186
55182
  this.#collectionPrefix = options.collectionPrefix || Defaults.values.governorAddress;
55187
55183
  }
@@ -55336,6 +55332,11 @@ class FirestoreHandler {
55336
55332
  * @returns Result set.
55337
55333
  */
55338
55334
  async sendRequest(httpMethod, url, params = null, data = null, options = null) {
55335
+ if (!Defaults.values.useCentralizedRegistry) {
55336
+ console.warn("Please change the useCentralizedRegistry flag to true in Defaults if you want to use this function!")
55337
+ throw new Error("Centralized function is in use!!")
55338
+ }
55339
+
55339
55340
  const urlObj = new URL(url);
55340
55341
  // Populate uri params to the URL object.
55341
55342
  if (params) {
@@ -57758,6 +57759,11 @@ class XrplApi {
57758
57759
  return resp?.result;
57759
57760
  }
57760
57761
 
57762
+ async getServerInfo() {
57763
+ const resp = (await this.#handleClientRequest({ command: 'server_info' }));
57764
+ return resp?.result;
57765
+ }
57766
+
57761
57767
  async getAccountObjects(address, options) {
57762
57768
  return this.#requestWithPaging({ command: 'account_objects', account: address, ...options }, API_REQ_TYPE.ACCOUNT_OBJECTS);
57763
57769
  }
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  ],
7
7
  "homepage": "https://github.com/HotPocketDev/evernode-js-client",
8
8
  "license": "MIT",
9
- "version": "0.6.22",
9
+ "version": "0.6.24",
10
10
  "dependencies": {
11
11
  "elliptic": "6.5.4",
12
12
  "libsodium-wrappers": "0.7.10",
Binary file
Binary file