@nxtedition/deepstream.io-client-js 24.0.7 → 24.0.8
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
CHANGED
|
@@ -376,23 +376,23 @@ class RecordHandler {
|
|
|
376
376
|
if (idx < args.length && (args[idx] == null || typeof args[idx] === 'object')) {
|
|
377
377
|
const options = args[idx++] || {}
|
|
378
378
|
|
|
379
|
-
if (options.signal
|
|
379
|
+
if (options.signal !== undefined) {
|
|
380
380
|
signal = options.signal
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
if (options.timeout
|
|
383
|
+
if (options.timeout !== undefined) {
|
|
384
384
|
timeout = options.timeout
|
|
385
385
|
}
|
|
386
386
|
|
|
387
|
-
if (options.path
|
|
387
|
+
if (options.path !== undefined) {
|
|
388
388
|
path = options.path
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
if (options.state
|
|
391
|
+
if (options.state !== undefined) {
|
|
392
392
|
state = options.state
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
if (options.dataOnly
|
|
395
|
+
if (options.dataOnly !== undefined) {
|
|
396
396
|
dataOnly = options.dataOnly
|
|
397
397
|
}
|
|
398
398
|
}
|
|
@@ -435,7 +435,7 @@ class RecordHandler {
|
|
|
435
435
|
|
|
436
436
|
const record = (subscription.record = this.getRecord(name).subscribe(onUpdate, subscription))
|
|
437
437
|
|
|
438
|
-
if (timeout && state && record.state < state) {
|
|
438
|
+
if (timeout > 0 && state && record.state < state) {
|
|
439
439
|
// TODO (perf): Avoid Timer allocation.
|
|
440
440
|
subscription.timeout = timers.setTimeout(onTimeout, timeout, subscription)
|
|
441
441
|
}
|