remult 0.17.0-exp.5 → 0.17.0-exp.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/esm/src/context.js
CHANGED
|
@@ -325,9 +325,12 @@ class transactionLiveQueryPublisher {
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
flush() {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
//TODO - figure out and resolve
|
|
329
|
+
setTimeout(() => {
|
|
330
|
+
for (const key of this.transactionItems.keys()) {
|
|
331
|
+
this.orig.itemChanged(key, this.transactionItems.get(key));
|
|
332
|
+
}
|
|
333
|
+
}, 100);
|
|
331
334
|
}
|
|
332
335
|
sendChannelMessage(channel, message) {
|
|
333
336
|
this.orig.sendChannelMessage(channel, message);
|
|
@@ -34,7 +34,7 @@ export class LiveQueryPublisher {
|
|
|
34
34
|
};
|
|
35
35
|
for (const id of q.ids.filter(y => !currentIds.includes(y))) {
|
|
36
36
|
let c = changes.find(c => c.oldId == id);
|
|
37
|
-
if (id != c.oldId || !currentIds.includes(c.id))
|
|
37
|
+
if (c === undefined || id != c.oldId || !currentIds.includes(c.id))
|
|
38
38
|
sendMessage({
|
|
39
39
|
type: "remove",
|
|
40
40
|
data: {
|
package/package.json
CHANGED
package/src/context.js
CHANGED
|
@@ -489,20 +489,24 @@ var transactionLiveQueryPublisher = /** @class */ (function () {
|
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
transactionLiveQueryPublisher.prototype.flush = function () {
|
|
492
|
-
var
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
this.orig.itemChanged(key, this.transactionItems.get(key));
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
500
|
-
finally {
|
|
492
|
+
var _this = this;
|
|
493
|
+
//TODO - figure out and resolve
|
|
494
|
+
setTimeout(function () {
|
|
495
|
+
var e_5, _a;
|
|
501
496
|
try {
|
|
502
|
-
|
|
497
|
+
for (var _b = tslib_1.__values(_this.transactionItems.keys()), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
498
|
+
var key = _c.value;
|
|
499
|
+
_this.orig.itemChanged(key, _this.transactionItems.get(key));
|
|
500
|
+
}
|
|
503
501
|
}
|
|
504
|
-
|
|
505
|
-
|
|
502
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
503
|
+
finally {
|
|
504
|
+
try {
|
|
505
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
506
|
+
}
|
|
507
|
+
finally { if (e_5) throw e_5.error; }
|
|
508
|
+
}
|
|
509
|
+
}, 100);
|
|
506
510
|
};
|
|
507
511
|
transactionLiveQueryPublisher.prototype.sendChannelMessage = function (channel, message) {
|
|
508
512
|
this.orig.sendChannelMessage(channel, message);
|
|
@@ -42,7 +42,7 @@ var LiveQueryPublisher = /** @class */ (function () {
|
|
|
42
42
|
};
|
|
43
43
|
var _loop_2 = function (id) {
|
|
44
44
|
var c = changes.find(function (c) { return c.oldId == id; });
|
|
45
|
-
if (id != c.oldId || !currentIds.includes(c.id))
|
|
45
|
+
if (c === undefined || id != c.oldId || !currentIds.includes(c.id))
|
|
46
46
|
sendMessage({
|
|
47
47
|
type: "remove",
|
|
48
48
|
data: {
|