dexie-cloud-addon 4.0.2 → 4.0.3

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.0.2, Wed Apr 10 2024
11
+ * Version 4.0.3, Sat Apr 13 2024
12
12
  *
13
13
  * https://dexie.org
14
14
  *
@@ -2540,6 +2540,9 @@
2540
2540
  if (response.userValidUntil != null) {
2541
2541
  login.license.validUntil = new Date(response.userValidUntil);
2542
2542
  }
2543
+ if (response.data) {
2544
+ login.data = response.data;
2545
+ }
2543
2546
  return login;
2544
2547
  });
2545
2548
  }
@@ -2594,6 +2597,7 @@
2594
2597
  type: response2.userType,
2595
2598
  status: response2.claims.license || 'ok',
2596
2599
  };
2600
+ context.data = response2.data;
2597
2601
  if (response2.evalDaysLeft != null) {
2598
2602
  context.license.evalDaysLeft = response2.evalDaysLeft;
2599
2603
  }
@@ -3922,6 +3926,7 @@
3922
3926
  accessTokenExpiration: refreshedLogin.accessTokenExpiration,
3923
3927
  claims: refreshedLogin.claims,
3924
3928
  license: refreshedLogin.license,
3929
+ data: refreshedLogin.data,
3925
3930
  });
3926
3931
  // Updating $logins will trigger emission of db.cloud.currentUser observable, which
3927
3932
  // in turn will lead to that connectWebSocket.ts will reconnect the socket with the
@@ -5470,6 +5475,7 @@
5470
5475
  accessTokenExpiration: refreshedLogin.accessTokenExpiration,
5471
5476
  claims: refreshedLogin.claims,
5472
5477
  license: refreshedLogin.license,
5478
+ data: refreshedLogin.data
5473
5479
  });
5474
5480
  })), switchMap(() => createObservable()));
5475
5481
  }
@@ -6296,7 +6302,7 @@
6296
6302
  const syncComplete = new rxjs.Subject();
6297
6303
  dexie.cloud = {
6298
6304
  // @ts-ignore
6299
- version: "4.0.2",
6305
+ version: "4.0.3",
6300
6306
  options: Object.assign({}, DEFAULT_OPTIONS),
6301
6307
  schema: null,
6302
6308
  get currentUserId() {
@@ -6573,7 +6579,7 @@
6573
6579
  }
6574
6580
  }
6575
6581
  // @ts-ignore
6576
- dexieCloud.version = "4.0.2";
6582
+ dexieCloud.version = "4.0.3";
6577
6583
  Dexie.Cloud = dexieCloud;
6578
6584
 
6579
6585
  // In case the SW lives for a while, let it reuse already opened connections: