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.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.0.0-beta.21, Tue Jun 07 2022
11
+ * Version 4.0.0-beta.22, Mon Sep 05 2022
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -2004,10 +2004,17 @@ const b64decode = typeof Buffer !== "undefined"
2004
2004
  return bytes;
2005
2005
  };
2006
2006
  const b64encode = typeof Buffer !== "undefined"
2007
- ? (b) => ArrayBuffer.isView(b)
2008
- ? Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64")
2009
- : Buffer.from(b).toString("base64")
2010
- : (b) => btoa(String.fromCharCode.apply(null, b));
2007
+ ? (b) => {
2008
+ if (ArrayBuffer.isView(b)) {
2009
+ return Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64");
2010
+ }
2011
+ else {
2012
+ return Buffer.from(b).toString("base64");
2013
+ }
2014
+ }
2015
+ : (b) => {
2016
+ return btoa(String.fromCharCode.apply(null, ArrayBuffer.isView(b) ? b : new Uint8Array(b)));
2017
+ };
2011
2018
 
2012
2019
  function interactWithUser(userInteraction, req) {
2013
2020
  let done = false;
@@ -5861,7 +5868,7 @@ function dexieCloud(dexie) {
5861
5868
  currentUserEmitter.next(UNAUTHORIZED_USER);
5862
5869
  });
5863
5870
  dexie.cloud = {
5864
- version: '4.0.0-beta.21',
5871
+ version: '4.0.0-beta.22',
5865
5872
  options: Object.assign({}, DEFAULT_OPTIONS),
5866
5873
  schema: null,
5867
5874
  get currentUserId() {
@@ -6114,7 +6121,7 @@ function dexieCloud(dexie) {
6114
6121
  });
6115
6122
  }
6116
6123
  }
6117
- dexieCloud.version = '4.0.0-beta.21';
6124
+ dexieCloud.version = '4.0.0-beta.22';
6118
6125
  Dexie.Cloud = dexieCloud;
6119
6126
 
6120
6127
  export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId };