dexie-cloud-addon 4.1.0-beta.46 → 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.46, Thu Apr 03 2025
11
+ * Version 4.1.0-beta.47, Mon May 12 2025
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -3037,10 +3037,11 @@ function triggerSync(db, purpose) {
3037
3037
  }
3038
3038
  }
3039
3039
 
3040
- const hasArrayBufferB64 = "fromBase64" in Uint8Array; // https://github.com/tc39/proposal-arraybuffer-base64;
3040
+ const hasArrayBufferFromBase64 = "fromBase64" in Uint8Array; // https://github.com/tc39/proposal-arraybuffer-base64;
3041
+ const hasArrayBufferToBase64 = "toBase64" in Uint8Array.prototype; // https://github.com/tc39/proposal-arraybuffer-base64;
3041
3042
  const b64decode = typeof Buffer !== "undefined"
3042
3043
  ? (base64) => Buffer.from(base64, "base64") // Node
3043
- : hasArrayBufferB64
3044
+ : hasArrayBufferFromBase64
3044
3045
  ? // @ts-ignore: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array/fromBase64
3045
3046
  (base64) => Uint8Array.fromBase64(base64) // Modern javascript standard
3046
3047
  : (base64) => {
@@ -3063,7 +3064,7 @@ const b64encode = typeof Buffer !== "undefined"
3063
3064
  return Buffer.from(b).toString("base64");
3064
3065
  }
3065
3066
  }
3066
- : hasArrayBufferB64
3067
+ : hasArrayBufferToBase64
3067
3068
  ? // @ts-ignore https://github.com/tc39/proposal-arraybuffer-base64
3068
3069
  (b) => b.toBase64() // Modern Javascript standard
3069
3070
  : (b) => {
@@ -3247,6 +3248,7 @@ function loadAccessToken(db) {
3247
3248
  accessTokenExpiration: refreshedLogin.accessTokenExpiration,
3248
3249
  claims: refreshedLogin.claims,
3249
3250
  license: refreshedLogin.license,
3251
+ data: refreshedLogin.data,
3250
3252
  });
3251
3253
  return refreshedLogin;
3252
3254
  });
@@ -8444,7 +8446,7 @@ function dexieCloud(dexie) {
8444
8446
  const syncComplete = new Subject();
8445
8447
  dexie.cloud = {
8446
8448
  // @ts-ignore
8447
- version: "4.1.0-beta.46",
8449
+ version: "4.1.0-beta.47",
8448
8450
  options: Object.assign({}, DEFAULT_OPTIONS),
8449
8451
  schema: null,
8450
8452
  get currentUserId() {
@@ -8762,7 +8764,7 @@ function dexieCloud(dexie) {
8762
8764
  }
8763
8765
  }
8764
8766
  // @ts-ignore
8765
- dexieCloud.version = "4.1.0-beta.46";
8767
+ dexieCloud.version = "4.1.0-beta.47";
8766
8768
  Dexie.Cloud = dexieCloud;
8767
8769
 
8768
8770
  export { dexieCloud as default, defineYDocTrigger, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };