@nxtedition/deepstream.io-client-js 25.6.2 → 25.6.3
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/src/record/record.js +4 -2
package/package.json
CHANGED
package/src/record/record.js
CHANGED
|
@@ -389,7 +389,7 @@ class Record {
|
|
|
389
389
|
this._version = nextVersion
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
_onUpdate([, version, data]) {
|
|
392
|
+
_onUpdate([, version, data, hasProvider]) {
|
|
393
393
|
const prevData = this._data
|
|
394
394
|
const prevVersion = this._version
|
|
395
395
|
const prevState = this._state
|
|
@@ -422,7 +422,9 @@ class Record {
|
|
|
422
422
|
this._onPatching(false)
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
if (
|
|
425
|
+
if (hasProvider === 'T') {
|
|
426
|
+
this._state = C.RECORD_STATE.PROVIDER
|
|
427
|
+
} else if (this._state < C.RECORD_STATE.SERVER) {
|
|
426
428
|
this._state = this._version.charAt(0) === 'I' ? C.RECORD_STATE.STALE : C.RECORD_STATE.SERVER
|
|
427
429
|
}
|
|
428
430
|
|