dexie-cloud-addon 4.1.0-beta.47 → 4.1.0-beta.48

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.1.0-beta.47, Mon May 12 2025
11
+ * Version 4.1.0-beta.48, Tue Jun 03 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -1828,8 +1828,12 @@ const b64encode = typeof Buffer !== "undefined"
1828
1828
  }
1829
1829
  }
1830
1830
  : hasArrayBufferToBase64
1831
- ? // @ts-ignore https://github.com/tc39/proposal-arraybuffer-base64
1832
- (b) => b.toBase64() // Modern Javascript standard
1831
+ ? (b) => {
1832
+ // Uint8Array.prototype.toBase64 is available in modern browsers
1833
+ const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
1834
+ // @ts-ignore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/toBase64
1835
+ return u8a.toBase64();
1836
+ }
1833
1837
  : (b) => {
1834
1838
  // Legacy DOM workaround
1835
1839
  const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
@@ -8275,7 +8279,7 @@ function dexieCloud(dexie) {
8275
8279
  const syncComplete = new Subject();
8276
8280
  dexie.cloud = {
8277
8281
  // @ts-ignore
8278
- version: "4.1.0-beta.47",
8282
+ version: "4.1.0-beta.48",
8279
8283
  options: Object.assign({}, DEFAULT_OPTIONS),
8280
8284
  schema: null,
8281
8285
  get currentUserId() {
@@ -8593,7 +8597,7 @@ function dexieCloud(dexie) {
8593
8597
  }
8594
8598
  }
8595
8599
  // @ts-ignore
8596
- dexieCloud.version = "4.1.0-beta.47";
8600
+ dexieCloud.version = "4.1.0-beta.48";
8597
8601
  Dexie.Cloud = dexieCloud;
8598
8602
 
8599
8603
  // In case the SW lives for a while, let it reuse already opened connections: