dexie-cloud-addon 4.0.0-beta.21 → 4.0.0-beta.22

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.
@@ -1801,10 +1801,17 @@
1801
1801
  return bytes;
1802
1802
  };
1803
1803
  const b64encode = typeof Buffer !== "undefined"
1804
- ? (b) => ArrayBuffer.isView(b)
1805
- ? Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64")
1806
- : Buffer.from(b).toString("base64")
1807
- : (b) => btoa(String.fromCharCode.apply(null, b));
1804
+ ? (b) => {
1805
+ if (ArrayBuffer.isView(b)) {
1806
+ return Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64");
1807
+ }
1808
+ else {
1809
+ return Buffer.from(b).toString("base64");
1810
+ }
1811
+ }
1812
+ : (b) => {
1813
+ return btoa(String.fromCharCode.apply(null, ArrayBuffer.isView(b) ? b : new Uint8Array(b)));
1814
+ };
1808
1815
 
1809
1816
  function computeRealmSetHash({ realms, inviteRealms, }) {
1810
1817
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -5843,7 +5850,7 @@
5843
5850
  currentUserEmitter.next(UNAUTHORIZED_USER);
5844
5851
  });
5845
5852
  dexie.cloud = {
5846
- version: '4.0.0-beta.21',
5853
+ version: '4.0.0-beta.22',
5847
5854
  options: Object.assign({}, DEFAULT_OPTIONS),
5848
5855
  schema: null,
5849
5856
  get currentUserId() {
@@ -6096,7 +6103,7 @@
6096
6103
  });
6097
6104
  }
6098
6105
  }
6099
- dexieCloud.version = '4.0.0-beta.21';
6106
+ dexieCloud.version = '4.0.0-beta.22';
6100
6107
  Dexie__default["default"].Cloud = dexieCloud;
6101
6108
 
6102
6109
  // In case the SW lives for a while, let it reuse already opened connections: