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
|
*
|
|
@@ -4277,11 +4277,21 @@ function otpFetchTokenCallback(db) {
|
|
|
4277
4277
|
}
|
|
4278
4278
|
else {
|
|
4279
4279
|
const email = yield promptForEmail(userInteraction, 'Enter email address', hints === null || hints === void 0 ? void 0 : hints.email);
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
|
|
4284
|
-
|
|
4280
|
+
if (/@demo.local$/.test(email)) {
|
|
4281
|
+
tokenRequest = {
|
|
4282
|
+
demo_user: email,
|
|
4283
|
+
grant_type: 'demo',
|
|
4284
|
+
scopes: ['ACCESS_DB'],
|
|
4285
|
+
public_key
|
|
4286
|
+
};
|
|
4287
|
+
}
|
|
4288
|
+
else {
|
|
4289
|
+
tokenRequest = {
|
|
4290
|
+
email,
|
|
4291
|
+
grant_type: 'otp',
|
|
4292
|
+
scopes: ['ACCESS_DB'],
|
|
4293
|
+
};
|
|
4294
|
+
}
|
|
4285
4295
|
}
|
|
4286
4296
|
const res1 = yield fetch(`${url}/token`, {
|
|
4287
4297
|
body: JSON.stringify(tokenRequest),
|
|
@@ -6283,7 +6293,7 @@ function dexieCloud(dexie) {
|
|
|
6283
6293
|
const syncComplete = new Subject();
|
|
6284
6294
|
dexie.cloud = {
|
|
6285
6295
|
// @ts-ignore
|
|
6286
|
-
version: "4.0.
|
|
6296
|
+
version: "4.0.2",
|
|
6287
6297
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6288
6298
|
schema: null,
|
|
6289
6299
|
get currentUserId() {
|
|
@@ -6560,7 +6570,7 @@ function dexieCloud(dexie) {
|
|
|
6560
6570
|
}
|
|
6561
6571
|
}
|
|
6562
6572
|
// @ts-ignore
|
|
6563
|
-
dexieCloud.version = "4.0.
|
|
6573
|
+
dexieCloud.version = "4.0.2";
|
|
6564
6574
|
Dexie.Cloud = dexieCloud;
|
|
6565
6575
|
|
|
6566
6576
|
// In case the SW lives for a while, let it reuse already opened connections:
|