relayx-js 1.1.1 → 1.1.2
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/package.json +1 -1
- package/realtime/realtime.js +4 -4
package/package.json
CHANGED
package/realtime/realtime.js
CHANGED
|
@@ -736,12 +736,12 @@ export class Realtime {
|
|
|
736
736
|
async initKVStore(){
|
|
737
737
|
|
|
738
738
|
if(this.#kvStore == null){
|
|
739
|
-
var debugCheck = this.opts
|
|
739
|
+
var debugCheck = this.opts?.debug !== null && this.opts?.debug !== undefined && typeof this.opts?.debug == "boolean"
|
|
740
740
|
|
|
741
741
|
this.#kvStore = new KVStore({
|
|
742
742
|
namespace: this.namespace,
|
|
743
743
|
jetstream: this.#jetstream,
|
|
744
|
-
debug: debugCheck ? this.opts
|
|
744
|
+
debug: debugCheck ? this.opts?.debug : false
|
|
745
745
|
})
|
|
746
746
|
|
|
747
747
|
var init = await this.#kvStore.init()
|
|
@@ -956,8 +956,8 @@ export class Realtime {
|
|
|
956
956
|
#getPublishRetry(){
|
|
957
957
|
this.#log(this.opts)
|
|
958
958
|
if(this.opts !== null && this.opts !== undefined){
|
|
959
|
-
if(this.opts
|
|
960
|
-
if (this.opts
|
|
959
|
+
if(this.opts?.max_retries !== null && this.opts?.max_retries !== undefined){
|
|
960
|
+
if (this.opts?.max_retries <= 0){
|
|
961
961
|
return this.#maxPublishRetries;
|
|
962
962
|
}else{
|
|
963
963
|
return this.opts.max_retries;
|