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.
@@ -1794,10 +1794,17 @@ const b64decode = typeof Buffer !== "undefined"
1794
1794
  return bytes;
1795
1795
  };
1796
1796
  const b64encode = typeof Buffer !== "undefined"
1797
- ? (b) => ArrayBuffer.isView(b)
1798
- ? Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64")
1799
- : Buffer.from(b).toString("base64")
1800
- : (b) => btoa(String.fromCharCode.apply(null, b));
1797
+ ? (b) => {
1798
+ if (ArrayBuffer.isView(b)) {
1799
+ return Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64");
1800
+ }
1801
+ else {
1802
+ return Buffer.from(b).toString("base64");
1803
+ }
1804
+ }
1805
+ : (b) => {
1806
+ return btoa(String.fromCharCode.apply(null, ArrayBuffer.isView(b) ? b : new Uint8Array(b)));
1807
+ };
1801
1808
 
1802
1809
  function computeRealmSetHash({ realms, inviteRealms, }) {
1803
1810
  return __awaiter$1(this, void 0, void 0, function* () {
@@ -5836,7 +5843,7 @@ function dexieCloud(dexie) {
5836
5843
  currentUserEmitter.next(UNAUTHORIZED_USER);
5837
5844
  });
5838
5845
  dexie.cloud = {
5839
- version: '4.0.0-beta.21',
5846
+ version: '4.0.0-beta.22',
5840
5847
  options: Object.assign({}, DEFAULT_OPTIONS),
5841
5848
  schema: null,
5842
5849
  get currentUserId() {
@@ -6089,7 +6096,7 @@ function dexieCloud(dexie) {
6089
6096
  });
6090
6097
  }
6091
6098
  }
6092
- dexieCloud.version = '4.0.0-beta.21';
6099
+ dexieCloud.version = '4.0.0-beta.22';
6093
6100
  Dexie.Cloud = dexieCloud;
6094
6101
 
6095
6102
  // In case the SW lives for a while, let it reuse already opened connections: