@nxtedition/deepstream.io-client-js 31.2.6 → 31.2.7

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.2.6",
3
+ "version": "31.2.7",
4
4
  "description": "the javascript client for deepstream.io",
5
5
  "homepage": "http://deepstream.io",
6
6
  "type": "module",
@@ -35,7 +35,7 @@ const GET2_DEFAULTS = {
35
35
 
36
36
  function onSync(subscription) {
37
37
  subscription.synced = true
38
- onUpdate(null, subscription)
38
+ onUpdate(subscription.record, subscription)
39
39
  }
40
40
 
41
41
  function onUpdate(record, subscription) {
@@ -682,10 +682,8 @@ class RecordHandler {
682
682
  if (sync) {
683
683
  this._sync(onSync, sync === true ? 'WEAK' : sync, subscription)
684
684
  } else {
685
- subscription.synced = true
685
+ onSync(subscription)
686
686
  }
687
-
688
- onUpdate(subscription.record, subscription)
689
687
  })
690
688
  }
691
689