evernode-js-client 0.6.22 → 0.6.23

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.
Files changed (2) hide show
  1. package/index.js +5 -4
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -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) {
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.23",
10
10
  "dependencies": {
11
11
  "elliptic": "6.5.4",
12
12
  "libsodium-wrappers": "0.7.10",