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
  *
@@ -1831,8 +1831,12 @@
1831
1831
  }
1832
1832
  }
1833
1833
  : hasArrayBufferToBase64
1834
- ? // @ts-ignore https://github.com/tc39/proposal-arraybuffer-base64
1835
- (b) => b.toBase64() // Modern Javascript standard
1834
+ ? (b) => {
1835
+ // Uint8Array.prototype.toBase64 is available in modern browsers
1836
+ const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
1837
+ // @ts-ignore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/toBase64
1838
+ return u8a.toBase64();
1839
+ }
1836
1840
  : (b) => {
1837
1841
  // Legacy DOM workaround
1838
1842
  const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
@@ -8278,7 +8282,7 @@
8278
8282
  const syncComplete = new rxjs.Subject();
8279
8283
  dexie.cloud = {
8280
8284
  // @ts-ignore
8281
- version: "4.1.0-beta.47",
8285
+ version: "4.1.0-beta.48",
8282
8286
  options: Object.assign({}, DEFAULT_OPTIONS),
8283
8287
  schema: null,
8284
8288
  get currentUserId() {
@@ -8596,7 +8600,7 @@
8596
8600
  }
8597
8601
  }
8598
8602
  // @ts-ignore
8599
- dexieCloud.version = "4.1.0-beta.47";
8603
+ dexieCloud.version = "4.1.0-beta.48";
8600
8604
  Dexie.Cloud = dexieCloud;
8601
8605
 
8602
8606
  // In case the SW lives for a while, let it reuse already opened connections: