evernode-js-client 0.6.22 → 0.6.23
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +5 -4
- 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) {
|