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

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.
@@ -1,5 +1,5 @@
1
1
  /* ==========================================================================
2
- * dexie-cloud-addom.js
2
+ * dexie-cloud-addon.js
3
3
  * ==========================================================================
4
4
  *
5
5
  * Dexie addon that syncs IndexedDB with Dexie Cloud.
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * ==========================================================================
10
10
  *
11
- * Version 4.1.0-beta.45, Mon Mar 31 2025
11
+ * Version 4.1.0-beta.47, Mon May 12 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -3040,10 +3040,11 @@
3040
3040
  }
3041
3041
  }
3042
3042
 
3043
- const hasArrayBufferB64 = "fromBase64" in Uint8Array; // https://github.com/tc39/proposal-arraybuffer-base64;
3043
+ const hasArrayBufferFromBase64 = "fromBase64" in Uint8Array; // https://github.com/tc39/proposal-arraybuffer-base64;
3044
+ const hasArrayBufferToBase64 = "toBase64" in Uint8Array.prototype; // https://github.com/tc39/proposal-arraybuffer-base64;
3044
3045
  const b64decode = typeof Buffer !== "undefined"
3045
3046
  ? (base64) => Buffer.from(base64, "base64") // Node
3046
- : hasArrayBufferB64
3047
+ : hasArrayBufferFromBase64
3047
3048
  ? // @ts-ignore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/fromBase64
3048
3049
  (base64) => Uint8Array.fromBase64(base64) // Modern javascript standard
3049
3050
  : (base64) => {
@@ -3066,7 +3067,7 @@
3066
3067
  return Buffer.from(b).toString("base64");
3067
3068
  }
3068
3069
  }
3069
- : hasArrayBufferB64
3070
+ : hasArrayBufferToBase64
3070
3071
  ? // @ts-ignore https://github.com/tc39/proposal-arraybuffer-base64
3071
3072
  (b) => b.toBase64() // Modern Javascript standard
3072
3073
  : (b) => {
@@ -3250,6 +3251,7 @@
3250
3251
  accessTokenExpiration: refreshedLogin.accessTokenExpiration,
3251
3252
  claims: refreshedLogin.claims,
3252
3253
  license: refreshedLogin.license,
3254
+ data: refreshedLogin.data,
3253
3255
  });
3254
3256
  return refreshedLogin;
3255
3257
  });
@@ -8447,7 +8449,7 @@
8447
8449
  const syncComplete = new rxjs.Subject();
8448
8450
  dexie.cloud = {
8449
8451
  // @ts-ignore
8450
- version: "4.1.0-beta.45",
8452
+ version: "4.1.0-beta.47",
8451
8453
  options: Object.assign({}, DEFAULT_OPTIONS),
8452
8454
  schema: null,
8453
8455
  get currentUserId() {
@@ -8765,7 +8767,7 @@
8765
8767
  }
8766
8768
  }
8767
8769
  // @ts-ignore
8768
- dexieCloud.version = "4.1.0-beta.45";
8770
+ dexieCloud.version = "4.1.0-beta.47";
8769
8771
  Dexie.Cloud = dexieCloud;
8770
8772
 
8771
8773
  exports.default = dexieCloud;