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
  *
@@ -3065,8 +3065,12 @@ const b64encode = typeof Buffer !== "undefined"
3065
3065
  }
3066
3066
  }
3067
3067
  : hasArrayBufferToBase64
3068
- ? // @ts-ignore https://github.com/tc39/proposal-arraybuffer-base64
3069
- (b) => b.toBase64() // Modern Javascript standard
3068
+ ? (b) => {
3069
+ // Uint8Array.prototype.toBase64 is available in modern browsers
3070
+ const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
3071
+ // @ts-ignore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/toBase64
3072
+ return u8a.toBase64();
3073
+ }
3070
3074
  : (b) => {
3071
3075
  // Legacy DOM workaround
3072
3076
  const u8a = ArrayBuffer.isView(b) ? b : new Uint8Array(b);
@@ -8446,7 +8450,7 @@ function dexieCloud(dexie) {
8446
8450
  const syncComplete = new Subject();
8447
8451
  dexie.cloud = {
8448
8452
  // @ts-ignore
8449
- version: "4.1.0-beta.47",
8453
+ version: "4.1.0-beta.48",
8450
8454
  options: Object.assign({}, DEFAULT_OPTIONS),
8451
8455
  schema: null,
8452
8456
  get currentUserId() {
@@ -8764,7 +8768,7 @@ function dexieCloud(dexie) {
8764
8768
  }
8765
8769
  }
8766
8770
  // @ts-ignore
8767
- dexieCloud.version = "4.1.0-beta.47";
8771
+ dexieCloud.version = "4.1.0-beta.48";
8768
8772
  Dexie.Cloud = dexieCloud;
8769
8773
 
8770
8774
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };