@nxtedition/deepstream.io-client-js 31.0.0 → 31.0.1

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/deepstream.io-client-js",
3
- "version": "31.0.0",
3
+ "version": "31.0.1",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -377,6 +377,8 @@ class Record {
377
377
 
378
378
  const update = [this._name, nextVersion, jsonPath.stringify(nextData), prevVersion]
379
379
 
380
+ connection.sendMsg(C.TOPIC.RECORD, C.ACTIONS.UPDATE, update)
381
+
380
382
  if (!this._updating) {
381
383
  this._onUpdating(true)
382
384
  }
@@ -387,8 +389,6 @@ class Record {
387
389
  throw new Error('invalid state')
388
390
  }
389
391
 
390
- connection.sendMsg(C.TOPIC.RECORD, C.ACTIONS.UPDATE, update)
391
-
392
392
  this._data = nextData
393
393
  this._version = nextVersion
394
394
  }