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.
@@ -108,7 +108,7 @@
108
108
  *
109
109
  * ==========================================================================
110
110
  *
111
- * Version 4.0.0-beta.21, Tue Jun 07 2022
111
+ * Version 4.0.0-beta.22, Mon Sep 05 2022
112
112
  *
113
113
  * https://dexie.org
114
114
  *
@@ -2148,10 +2148,17 @@
2148
2148
  return bytes;
2149
2149
  };
2150
2150
  var b64encode = typeof Buffer !== "undefined"
2151
- ? function (b) { return ArrayBuffer.isView(b)
2152
- ? Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64")
2153
- : Buffer.from(b).toString("base64"); }
2154
- : function (b) { return btoa(String.fromCharCode.apply(null, b)); };
2151
+ ? function (b) {
2152
+ if (ArrayBuffer.isView(b)) {
2153
+ return Buffer.from(b.buffer, b.byteOffset, b.byteLength).toString("base64");
2154
+ }
2155
+ else {
2156
+ return Buffer.from(b).toString("base64");
2157
+ }
2158
+ }
2159
+ : function (b) {
2160
+ return btoa(String.fromCharCode.apply(null, ArrayBuffer.isView(b) ? b : new Uint8Array(b)));
2161
+ };
2155
2162
  function interactWithUser(userInteraction, req) {
2156
2163
  return new Promise(function (resolve, reject) {
2157
2164
  var interactionProps = Object.assign(Object.assign({}, req), { onSubmit: function (res) {
@@ -6868,7 +6875,7 @@
6868
6875
  currentUserEmitter.next(UNAUTHORIZED_USER);
6869
6876
  });
6870
6877
  dexie.cloud = {
6871
- version: '4.0.0-beta.21',
6878
+ version: '4.0.0-beta.22',
6872
6879
  options: Object.assign({}, DEFAULT_OPTIONS),
6873
6880
  schema: null,
6874
6881
  get currentUserId() {
@@ -7199,7 +7206,7 @@
7199
7206
  });
7200
7207
  }
7201
7208
  }
7202
- dexieCloud.version = '4.0.0-beta.21';
7209
+ dexieCloud.version = '4.0.0-beta.22';
7203
7210
  Dexie__default["default"].Cloud = dexieCloud;
7204
7211
 
7205
7212
  exports["default"] = dexieCloud;