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.
@@ -19,4 +19,5 @@ export interface UserLogin {
19
19
  nonExportablePrivateKey?: CryptoKey;
20
20
  publicKey?: CryptoKey;
21
21
  isLoggedIn?: boolean;
22
+ data?: any;
22
23
  }
@@ -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
  *
@@ -2223,6 +2223,9 @@
2223
2223
  if (response.userValidUntil != null) {
2224
2224
  login.license.validUntil = new Date(response.userValidUntil);
2225
2225
  }
2226
+ if (response.data) {
2227
+ login.data = response.data;
2228
+ }
2226
2229
  return login;
2227
2230
  });
2228
2231
  }
@@ -2277,6 +2280,7 @@
2277
2280
  type: response2.userType,
2278
2281
  status: response2.claims.license || 'ok',
2279
2282
  };
2283
+ context.data = response2.data;
2280
2284
  if (response2.evalDaysLeft != null) {
2281
2285
  context.license.evalDaysLeft = response2.evalDaysLeft;
2282
2286
  }
@@ -4222,6 +4226,7 @@
4222
4226
  accessTokenExpiration: refreshedLogin.accessTokenExpiration,
4223
4227
  claims: refreshedLogin.claims,
4224
4228
  license: refreshedLogin.license,
4229
+ data: refreshedLogin.data,
4225
4230
  });
4226
4231
  // Updating $logins will trigger emission of db.cloud.currentUser observable, which
4227
4232
  // 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
  }
@@ -6303,7 +6309,7 @@
6303
6309
  const syncComplete = new rxjs.Subject();
6304
6310
  dexie.cloud = {
6305
6311
  // @ts-ignore
6306
- version: "4.0.2",
6312
+ version: "4.0.3",
6307
6313
  options: Object.assign({}, DEFAULT_OPTIONS),
6308
6314
  schema: null,
6309
6315
  get currentUserId() {
@@ -6580,7 +6586,7 @@
6580
6586
  }
6581
6587
  }
6582
6588
  // @ts-ignore
6583
- dexieCloud.version = "4.0.2";
6589
+ dexieCloud.version = "4.0.3";
6584
6590
  Dexie.Cloud = dexieCloud;
6585
6591
 
6586
6592
  exports.default = dexieCloud;