@nxtedition/deepstream.io-client-js 31.2.18 → 31.2.19

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.18",
3
+ "version": "31.2.19",
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(subscription.record, subscription)
38
+ onUpdate(null, subscription)
39
39
  }
40
40
 
41
41
  function onUpdate(record, subscription) {
@@ -581,7 +581,7 @@ class Record {
581
581
  for (let n = 0; n < len; n++) {
582
582
  this._emittingIndex = n
583
583
  // TODO (fix): What if this throws?
584
- arr[n].onUpdate(this)
584
+ arr[n].onUpdate(this, arr[n])
585
585
  }
586
586
  } finally {
587
587
  this._emittingArr = null