@kokimoki/app 1.3.1 → 1.3.2

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.
@@ -64,8 +64,9 @@ export class KokimokiAwareness extends KokimokiStore {
64
64
  }
65
65
  getClients() {
66
66
  const clients = {};
67
- for (const clientId in this.proxy) {
68
- clients[clientId] = this.proxy[clientId].data;
67
+ for (const connectionId in this.proxy) {
68
+ clients[this.proxy[connectionId].clientId] =
69
+ this.proxy[connectionId].data;
69
70
  }
70
71
  return clients;
71
72
  }
@@ -634,7 +634,7 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
634
634
  var eventsExports = events.exports;
635
635
  var EventEmitter$1 = /*@__PURE__*/getDefaultExportFromCjs(eventsExports);
636
636
 
637
- const KOKIMOKI_APP_VERSION = "1.3.1";
637
+ const KOKIMOKI_APP_VERSION = "1.3.2";
638
638
 
639
639
  /**
640
640
  * Utility module to work with key-value stores.
@@ -12555,8 +12555,9 @@ class KokimokiAwareness extends KokimokiStore {
12555
12555
  }
12556
12556
  getClients() {
12557
12557
  const clients = {};
12558
- for (const clientId in this.proxy) {
12559
- clients[clientId] = this.proxy[clientId].data;
12558
+ for (const connectionId in this.proxy) {
12559
+ clients[this.proxy[connectionId].clientId] =
12560
+ this.proxy[connectionId].data;
12560
12561
  }
12561
12562
  return clients;
12562
12563
  }