dexie-cloud-addon 4.1.0-alpha.6 → 4.1.0-alpha.9
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/dist/modern/dexie-cloud-addon.js +9 -6
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +9 -6
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +8 -5
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +8 -5
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.1.0-alpha.
|
|
11
|
+
* Version 4.1.0-alpha.9, Tue Oct 15 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -6670,7 +6670,9 @@
|
|
|
6670
6670
|
// If messageProducer emits empty array, nothing is emitted
|
|
6671
6671
|
// but if messageProducer emits array of messages, they are
|
|
6672
6672
|
// emitted one by one.
|
|
6673
|
-
rxjs.mergeMap((messages) => messages)
|
|
6673
|
+
rxjs.mergeMap((messages) => messages), rxjs.tap(message => {
|
|
6674
|
+
console.debug('dexie-cloud emitting y-c', message);
|
|
6675
|
+
}));
|
|
6674
6676
|
}
|
|
6675
6677
|
|
|
6676
6678
|
function getAwarenessLibrary(db) {
|
|
@@ -6836,12 +6838,12 @@
|
|
|
6836
6838
|
ws.onmessage = (event) => {
|
|
6837
6839
|
if (!this.pinger)
|
|
6838
6840
|
return;
|
|
6839
|
-
console.debug('dexie-cloud WebSocket onmessage', event.data);
|
|
6840
6841
|
this.lastServerActivity = new Date();
|
|
6841
6842
|
try {
|
|
6842
6843
|
const msg = typeof event.data === 'string'
|
|
6843
6844
|
? TSON.parse(event.data)
|
|
6844
6845
|
: decodeYMessage(new Uint8Array(event.data));
|
|
6846
|
+
console.debug('dexie-cloud WebSocket onmessage', msg.type, msg);
|
|
6845
6847
|
if (msg.type === 'error') {
|
|
6846
6848
|
throw new Error(`Error message from dexie-cloud: ${msg.error}`);
|
|
6847
6849
|
}
|
|
@@ -6897,6 +6899,7 @@
|
|
|
6897
6899
|
this.webSocketStatus.value !== 'connected') {
|
|
6898
6900
|
this.webSocketStatus.next('connected');
|
|
6899
6901
|
}
|
|
6902
|
+
console.debug('dexie-cloud WebSocket send', msg.type, msg);
|
|
6900
6903
|
if (msg.type === 'ready') {
|
|
6901
6904
|
(_a = this.ws) === null || _a === void 0 ? void 0 : _a.send(TSON.stringify(msg));
|
|
6902
6905
|
}
|
|
@@ -7959,7 +7962,7 @@
|
|
|
7959
7962
|
const syncComplete = new rxjs.Subject();
|
|
7960
7963
|
dexie.cloud = {
|
|
7961
7964
|
// @ts-ignore
|
|
7962
|
-
version: "4.1.0-alpha.
|
|
7965
|
+
version: "4.1.0-alpha.9",
|
|
7963
7966
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
7964
7967
|
schema: null,
|
|
7965
7968
|
get currentUserId() {
|
|
@@ -8261,7 +8264,7 @@
|
|
|
8261
8264
|
}
|
|
8262
8265
|
}
|
|
8263
8266
|
// @ts-ignore
|
|
8264
|
-
dexieCloud.version = "4.1.0-alpha.
|
|
8267
|
+
dexieCloud.version = "4.1.0-alpha.9";
|
|
8265
8268
|
Dexie.Cloud = dexieCloud;
|
|
8266
8269
|
|
|
8267
8270
|
// In case the SW lives for a while, let it reuse already opened connections:
|