@nxtedition/deepstream.io-client-js 23.4.16 → 23.4.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
package/src/record/record.js
CHANGED
|
@@ -240,7 +240,7 @@ class Record {
|
|
|
240
240
|
|
|
241
241
|
_unsubscribe() {
|
|
242
242
|
invariant(!this._refs, this._name + ' must not have refs')
|
|
243
|
-
invariant(this.
|
|
243
|
+
invariant(!this.pending, this._name + ' must not have pending')
|
|
244
244
|
|
|
245
245
|
const prevState = this._state
|
|
246
246
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const C = require('../constants/constants')
|
|
2
2
|
const rxjs = require('rxjs')
|
|
3
|
+
const rx = require('rxjs/operators')
|
|
3
4
|
|
|
4
5
|
class Listener {
|
|
5
6
|
constructor(topic, pattern, callback, handler, { stringify = null, recursive = false } = {}) {
|
|
@@ -60,7 +61,7 @@ class Listener {
|
|
|
60
61
|
if (value$) {
|
|
61
62
|
const subscription = value$
|
|
62
63
|
.pipe(
|
|
63
|
-
|
|
64
|
+
rx.map((value) => {
|
|
64
65
|
let data
|
|
65
66
|
if (value && typeof value === 'string') {
|
|
66
67
|
if (value.charAt(0) !== '{' && value.charAt(0) !== '[') {
|
|
@@ -75,7 +76,7 @@ class Listener {
|
|
|
75
76
|
|
|
76
77
|
return data
|
|
77
78
|
}),
|
|
78
|
-
|
|
79
|
+
rx.distinctUntilChanged()
|
|
79
80
|
)
|
|
80
81
|
.subscribe({
|
|
81
82
|
next: (data) => {
|