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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.1.0-alpha.6, Tue Oct 15 2024
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
  }
@@ -7966,7 +7969,7 @@
7966
7969
  const syncComplete = new rxjs.Subject();
7967
7970
  dexie.cloud = {
7968
7971
  // @ts-ignore
7969
- version: "4.1.0-alpha.6",
7972
+ version: "4.1.0-alpha.9",
7970
7973
  options: Object.assign({}, DEFAULT_OPTIONS),
7971
7974
  schema: null,
7972
7975
  get currentUserId() {
@@ -8268,7 +8271,7 @@
8268
8271
  }
8269
8272
  }
8270
8273
  // @ts-ignore
8271
- dexieCloud.version = "4.1.0-alpha.6";
8274
+ dexieCloud.version = "4.1.0-alpha.9";
8272
8275
  Dexie.Cloud = dexieCloud;
8273
8276
 
8274
8277
  exports.default = dexieCloud;