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.
@@ -108,7 +108,7 @@
108
108
  *
109
109
  * ==========================================================================
110
110
  *
111
- * Version 4.0.1-beta.30, Thu Mar 09 2023
111
+ * Version 4.0.1-beta.31, Thu Mar 09 2023
112
112
  *
113
113
  * https://dexie.org
114
114
  *
@@ -2775,7 +2775,7 @@
2775
2775
  }
2776
2776
  catch (_a) { }
2777
2777
  var swHolder = {};
2778
- var swContainer = self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2778
+ var swContainer = typeof self !== undefined && self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
2779
2779
  if (swContainer)
2780
2780
  swContainer.ready.then(function (registration) { return (swHolder.registration = registration); });
2781
2781
  if (typeof self !== 'undefined' && 'clients' in self && !self.document) {
@@ -2811,7 +2811,7 @@
2811
2811
  // We're a service worker. Propagate to our browser clients.
2812
2812
  __spreadArray$1([], self['clients'].matchAll({ includeUncontrolled: true }), true).forEach(function (client) { return client.postMessage({
2813
2813
  type: "sw-broadcast-".concat(_this_1.name),
2814
- message: message
2814
+ message: message,
2815
2815
  }); });
2816
2816
  }
2817
2817
  else if (swHolder.registration) {
@@ -2819,7 +2819,7 @@
2819
2819
  // Post to SW so it can repost to all its clients and to itself
2820
2820
  (_a = swHolder.registration.active) === null || _a === void 0 ? void 0 : _a.postMessage({
2821
2821
  type: "sw-broadcast-".concat(this.name),
2822
- message: message
2822
+ message: message,
2823
2823
  });
2824
2824
  }
2825
2825
  };
@@ -6943,7 +6943,7 @@
6943
6943
  currentUserEmitter.next(UNAUTHORIZED_USER);
6944
6944
  });
6945
6945
  dexie.cloud = {
6946
- version: '4.0.1-beta.30',
6946
+ version: '4.0.1-beta.31',
6947
6947
  options: Object.assign({}, DEFAULT_OPTIONS),
6948
6948
  schema: null,
6949
6949
  get currentUserId() {
@@ -7276,7 +7276,7 @@
7276
7276
  });
7277
7277
  }
7278
7278
  }
7279
- dexieCloud.version = '4.0.1-beta.30';
7279
+ dexieCloud.version = '4.0.1-beta.31';
7280
7280
  Dexie__default["default"].Cloud = dexieCloud;
7281
7281
 
7282
7282
  exports["default"] = dexieCloud;