@nxtedition/deepstream.io-client-js 23.3.1 → 23.3.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
CHANGED
package/src/record/record.js
CHANGED
|
@@ -101,7 +101,7 @@ class Record {
|
|
|
101
101
|
|
|
102
102
|
if (!this._version) {
|
|
103
103
|
this._patches = path && this._patches ? this._patches : []
|
|
104
|
-
this._patches.push(path, jsonPath.
|
|
104
|
+
this._patches.push(path, jsonPath.jsonClone(data))
|
|
105
105
|
this._handler._patch.add(this)
|
|
106
106
|
}
|
|
107
107
|
|
|
@@ -293,12 +293,7 @@ class Record {
|
|
|
293
293
|
if (this._version.charAt(0) !== 'I') {
|
|
294
294
|
let patchData = this._data
|
|
295
295
|
for (let n = 0; n < this._patches.length; n += 2) {
|
|
296
|
-
patchData = jsonPath.set(
|
|
297
|
-
patchData,
|
|
298
|
-
this._patches[n + 0],
|
|
299
|
-
jsonPath.parse(this._patches[n + 1]),
|
|
300
|
-
true
|
|
301
|
-
)
|
|
296
|
+
patchData = jsonPath.set(patchData, this._patches[n + 0], this._patches[n + 1], true)
|
|
302
297
|
}
|
|
303
298
|
this._update(patchData)
|
|
304
299
|
}
|
|
@@ -71,7 +71,13 @@ class Listener {
|
|
|
71
71
|
return
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
let value$
|
|
75
|
+
try {
|
|
76
|
+
value$ = this._callback(name)
|
|
77
|
+
} catch (err) {
|
|
78
|
+
value$ = rxjs.throwError(() => err)
|
|
79
|
+
}
|
|
80
|
+
|
|
75
81
|
if (value$) {
|
|
76
82
|
const subscription = value$.pipe(this._pipe).subscribe({
|
|
77
83
|
next: ({ data, hash }) => {
|