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.
@@ -101,7 +101,7 @@ function __spreadArray$1(to, from, pack) {
101
101
  *
102
102
  * ==========================================================================
103
103
  *
104
- * Version 4.0.1-beta.30, Thu Mar 09 2023
104
+ * Version 4.0.1-beta.31, Thu Mar 09 2023
105
105
  *
106
106
  * https://dexie.org
107
107
  *
@@ -2768,7 +2768,7 @@ try {
2768
2768
  }
2769
2769
  catch (_a) { }
2770
2770
  var swHolder = {};
2771
- var swContainer = self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2771
+ var swContainer = typeof self !== undefined && self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2772
2772
  if (swContainer)
2773
2773
  swContainer.ready.then(function (registration) { return (swHolder.registration = registration); });
2774
2774
  if (typeof self !== 'undefined' && 'clients' in self && !self.document) {
@@ -2804,7 +2804,7 @@ var SWBroadcastChannel = /** @class */ (function () {
2804
2804
  // We're a service worker. Propagate to our browser clients.
2805
2805
  __spreadArray$1([], self['clients'].matchAll({ includeUncontrolled: true }), true).forEach(function (client) { return client.postMessage({
2806
2806
  type: "sw-broadcast-".concat(_this_1.name),
2807
- message: message
2807
+ message: message,
2808
2808
  }); });
2809
2809
  }
2810
2810
  else if (swHolder.registration) {
@@ -2812,7 +2812,7 @@ var SWBroadcastChannel = /** @class */ (function () {
2812
2812
  // Post to SW so it can repost to all its clients and to itself
2813
2813
  (_a = swHolder.registration.active) === null || _a === void 0 ? void 0 : _a.postMessage({
2814
2814
  type: "sw-broadcast-".concat(this.name),
2815
- message: message
2815
+ message: message,
2816
2816
  });
2817
2817
  }
2818
2818
  };
@@ -6936,7 +6936,7 @@ function dexieCloud(dexie) {
6936
6936
  currentUserEmitter.next(UNAUTHORIZED_USER);
6937
6937
  });
6938
6938
  dexie.cloud = {
6939
- version: '4.0.1-beta.30',
6939
+ version: '4.0.1-beta.31',
6940
6940
  options: Object.assign({}, DEFAULT_OPTIONS),
6941
6941
  schema: null,
6942
6942
  get currentUserId() {
@@ -7269,7 +7269,7 @@ function dexieCloud(dexie) {
7269
7269
  });
7270
7270
  }
7271
7271
  }
7272
- dexieCloud.version = '4.0.1-beta.30';
7272
+ dexieCloud.version = '4.0.1-beta.31';
7273
7273
  Dexie.Cloud = dexieCloud;
7274
7274
 
7275
7275
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };