dexie-cloud-addon 4.0.1-beta.30 → 4.0.1-beta.31

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.0.1-beta.30, Thu Mar 09 2023
11
+ * Version 4.0.1-beta.31, Thu Mar 09 2023
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -2532,7 +2532,7 @@ try {
2532
2532
  catch (_a) { }
2533
2533
 
2534
2534
  const swHolder = {};
2535
- const swContainer = self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2535
+ const swContainer = typeof self !== undefined && self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2536
2536
  if (swContainer)
2537
2537
  swContainer.ready.then((registration) => (swHolder.registration = registration));
2538
2538
  if (typeof self !== 'undefined' && 'clients' in self && !self.document) {
@@ -2566,7 +2566,7 @@ class SWBroadcastChannel {
2566
2566
  // We're a service worker. Propagate to our browser clients.
2567
2567
  [...self['clients'].matchAll({ includeUncontrolled: true })].forEach((client) => client.postMessage({
2568
2568
  type: `sw-broadcast-${this.name}`,
2569
- message
2569
+ message,
2570
2570
  }));
2571
2571
  }
2572
2572
  else if (swHolder.registration) {
@@ -2574,7 +2574,7 @@ class SWBroadcastChannel {
2574
2574
  // Post to SW so it can repost to all its clients and to itself
2575
2575
  (_a = swHolder.registration.active) === null || _a === void 0 ? void 0 : _a.postMessage({
2576
2576
  type: `sw-broadcast-${this.name}`,
2577
- message
2577
+ message,
2578
2578
  });
2579
2579
  }
2580
2580
  }
@@ -5938,7 +5938,7 @@ function dexieCloud(dexie) {
5938
5938
  currentUserEmitter.next(UNAUTHORIZED_USER);
5939
5939
  });
5940
5940
  dexie.cloud = {
5941
- version: '4.0.1-beta.30',
5941
+ version: '4.0.1-beta.31',
5942
5942
  options: Object.assign({}, DEFAULT_OPTIONS),
5943
5943
  schema: null,
5944
5944
  get currentUserId() {
@@ -6193,7 +6193,7 @@ function dexieCloud(dexie) {
6193
6193
  });
6194
6194
  }
6195
6195
  }
6196
- dexieCloud.version = '4.0.1-beta.30';
6196
+ dexieCloud.version = '4.0.1-beta.31';
6197
6197
  Dexie.Cloud = dexieCloud;
6198
6198
 
6199
6199
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };