dexie-cloud-addon 4.0.1 → 4.0.2
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.
- package/dist/modern/dexie-cloud-addon.js +18 -8
- package/dist/modern/dexie-cloud-addon.js.map +1 -1
- package/dist/modern/dexie-cloud-addon.min.js +1 -1
- package/dist/modern/dexie-cloud-addon.min.js.map +1 -1
- package/dist/modern/service-worker.js +18 -8
- package/dist/modern/service-worker.js.map +1 -1
- package/dist/modern/service-worker.min.js +1 -1
- package/dist/modern/service-worker.min.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.js +18 -8
- package/dist/umd/dexie-cloud-addon.js.map +1 -1
- package/dist/umd/dexie-cloud-addon.min.js +1 -1
- package/dist/umd/dexie-cloud-addon.min.js.map +1 -1
- package/dist/umd/service-worker.js +18 -8
- package/dist/umd/service-worker.js.map +1 -1
- package/dist/umd/service-worker.min.js +1 -1
- package/dist/umd/service-worker.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* ==========================================================================
|
|
10
10
|
*
|
|
11
|
-
* Version 4.0.
|
|
11
|
+
* Version 4.0.2, Wed Apr 10 2024
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -2479,11 +2479,21 @@ function otpFetchTokenCallback(db) {
|
|
|
2479
2479
|
}
|
|
2480
2480
|
else {
|
|
2481
2481
|
const email = yield promptForEmail(userInteraction, 'Enter email address', hints === null || hints === void 0 ? void 0 : hints.email);
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2482
|
+
if (/@demo.local$/.test(email)) {
|
|
2483
|
+
tokenRequest = {
|
|
2484
|
+
demo_user: email,
|
|
2485
|
+
grant_type: 'demo',
|
|
2486
|
+
scopes: ['ACCESS_DB'],
|
|
2487
|
+
public_key
|
|
2488
|
+
};
|
|
2489
|
+
}
|
|
2490
|
+
else {
|
|
2491
|
+
tokenRequest = {
|
|
2492
|
+
email,
|
|
2493
|
+
grant_type: 'otp',
|
|
2494
|
+
scopes: ['ACCESS_DB'],
|
|
2495
|
+
};
|
|
2496
|
+
}
|
|
2487
2497
|
}
|
|
2488
2498
|
const res1 = yield fetch(`${url}/token`, {
|
|
2489
2499
|
body: JSON.stringify(tokenRequest),
|
|
@@ -6290,7 +6300,7 @@ function dexieCloud(dexie) {
|
|
|
6290
6300
|
const syncComplete = new Subject();
|
|
6291
6301
|
dexie.cloud = {
|
|
6292
6302
|
// @ts-ignore
|
|
6293
|
-
version: "4.0.
|
|
6303
|
+
version: "4.0.2",
|
|
6294
6304
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6295
6305
|
schema: null,
|
|
6296
6306
|
get currentUserId() {
|
|
@@ -6567,7 +6577,7 @@ function dexieCloud(dexie) {
|
|
|
6567
6577
|
}
|
|
6568
6578
|
}
|
|
6569
6579
|
// @ts-ignore
|
|
6570
|
-
dexieCloud.version = "4.0.
|
|
6580
|
+
dexieCloud.version = "4.0.2";
|
|
6571
6581
|
Dexie.Cloud = dexieCloud;
|
|
6572
6582
|
|
|
6573
6583
|
export { dexieCloud as default, dexieCloud, getTiedObjectId, getTiedRealmId, resolveText };
|