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.
@@ -155,7 +155,7 @@
155
155
  catch (_a) { }
156
156
 
157
157
  const swHolder = {};
158
- const swContainer = self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
158
+ const swContainer = typeof self !== undefined && self.document && navigator.serviceWorker; // self.document is to verify we're not the SW ourself
159
159
  if (swContainer)
160
160
  swContainer.ready.then((registration) => (swHolder.registration = registration));
161
161
  if (typeof self !== 'undefined' && 'clients' in self && !self.document) {
@@ -189,7 +189,7 @@
189
189
  // We're a service worker. Propagate to our browser clients.
190
190
  [...self['clients'].matchAll({ includeUncontrolled: true })].forEach((client) => client.postMessage({
191
191
  type: `sw-broadcast-${this.name}`,
192
- message
192
+ message,
193
193
  }));
194
194
  }
195
195
  else if (swHolder.registration) {
@@ -197,7 +197,7 @@
197
197
  // Post to SW so it can repost to all its clients and to itself
198
198
  (_a = swHolder.registration.active) === null || _a === void 0 ? void 0 : _a.postMessage({
199
199
  type: `sw-broadcast-${this.name}`,
200
- message
200
+ message,
201
201
  });
202
202
  }
203
203
  }
@@ -5920,7 +5920,7 @@
5920
5920
  currentUserEmitter.next(UNAUTHORIZED_USER);
5921
5921
  });
5922
5922
  dexie.cloud = {
5923
- version: '4.0.1-beta.30',
5923
+ version: '4.0.1-beta.31',
5924
5924
  options: Object.assign({}, DEFAULT_OPTIONS),
5925
5925
  schema: null,
5926
5926
  get currentUserId() {
@@ -6175,7 +6175,7 @@
6175
6175
  });
6176
6176
  }
6177
6177
  }
6178
- dexieCloud.version = '4.0.1-beta.30';
6178
+ dexieCloud.version = '4.0.1-beta.31';
6179
6179
  Dexie__default["default"].Cloud = dexieCloud;
6180
6180
 
6181
6181
  // In case the SW lives for a while, let it reuse already opened connections: