dexie-cloud-addon 4.1.0-alpha.6 → 4.1.0-alpha.8
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 +5 -4
- 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 +5 -4
- 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 +5 -4
- 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 +5 -4
- 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.8, Tue Oct 15 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -6833,12 +6833,12 @@ class WSConnection extends Subscription$1 {
|
|
|
6833
6833
|
ws.onmessage = (event) => {
|
|
6834
6834
|
if (!this.pinger)
|
|
6835
6835
|
return;
|
|
6836
|
-
console.debug('dexie-cloud WebSocket onmessage', event.data);
|
|
6837
6836
|
this.lastServerActivity = new Date();
|
|
6838
6837
|
try {
|
|
6839
6838
|
const msg = typeof event.data === 'string'
|
|
6840
6839
|
? TSON.parse(event.data)
|
|
6841
6840
|
: decodeYMessage(new Uint8Array(event.data));
|
|
6841
|
+
console.debug('dexie-cloud WebSocket onmessage', msg.type, msg);
|
|
6842
6842
|
if (msg.type === 'error') {
|
|
6843
6843
|
throw new Error(`Error message from dexie-cloud: ${msg.error}`);
|
|
6844
6844
|
}
|
|
@@ -6894,6 +6894,7 @@ class WSConnection extends Subscription$1 {
|
|
|
6894
6894
|
this.webSocketStatus.value !== 'connected') {
|
|
6895
6895
|
this.webSocketStatus.next('connected');
|
|
6896
6896
|
}
|
|
6897
|
+
console.debug('dexie-cloud WebSocket send', msg.type, msg);
|
|
6897
6898
|
if (msg.type === 'ready') {
|
|
6898
6899
|
(_a = this.ws) === null || _a === void 0 ? void 0 : _a.send(TSON.stringify(msg));
|
|
6899
6900
|
}
|
|
@@ -7956,7 +7957,7 @@ function dexieCloud(dexie) {
|
|
|
7956
7957
|
const syncComplete = new Subject();
|
|
7957
7958
|
dexie.cloud = {
|
|
7958
7959
|
// @ts-ignore
|
|
7959
|
-
version: "4.1.0-alpha.
|
|
7960
|
+
version: "4.1.0-alpha.8",
|
|
7960
7961
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
7961
7962
|
schema: null,
|
|
7962
7963
|
get currentUserId() {
|
|
@@ -8258,7 +8259,7 @@ function dexieCloud(dexie) {
|
|
|
8258
8259
|
}
|
|
8259
8260
|
}
|
|
8260
8261
|
// @ts-ignore
|
|
8261
|
-
dexieCloud.version = "4.1.0-alpha.
|
|
8262
|
+
dexieCloud.version = "4.1.0-alpha.8";
|
|
8262
8263
|
Dexie.Cloud = dexieCloud;
|
|
8263
8264
|
|
|
8264
8265
|
// In case the SW lives for a while, let it reuse already opened connections:
|