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
|
*
|
|
@@ -4280,11 +4280,21 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
else {
|
|
4282
4282
|
const email = yield promptForEmail(userInteraction, 'Enter email address', hints === null || hints === void 0 ? void 0 : hints.email);
|
|
4283
|
-
|
|
4284
|
-
|
|
4285
|
-
|
|
4286
|
-
|
|
4287
|
-
|
|
4283
|
+
if (/@demo.local$/.test(email)) {
|
|
4284
|
+
tokenRequest = {
|
|
4285
|
+
demo_user: email,
|
|
4286
|
+
grant_type: 'demo',
|
|
4287
|
+
scopes: ['ACCESS_DB'],
|
|
4288
|
+
public_key
|
|
4289
|
+
};
|
|
4290
|
+
}
|
|
4291
|
+
else {
|
|
4292
|
+
tokenRequest = {
|
|
4293
|
+
email,
|
|
4294
|
+
grant_type: 'otp',
|
|
4295
|
+
scopes: ['ACCESS_DB'],
|
|
4296
|
+
};
|
|
4297
|
+
}
|
|
4288
4298
|
}
|
|
4289
4299
|
const res1 = yield fetch(`${url}/token`, {
|
|
4290
4300
|
body: JSON.stringify(tokenRequest),
|
|
@@ -6286,7 +6296,7 @@
|
|
|
6286
6296
|
const syncComplete = new rxjs.Subject();
|
|
6287
6297
|
dexie.cloud = {
|
|
6288
6298
|
// @ts-ignore
|
|
6289
|
-
version: "4.0.
|
|
6299
|
+
version: "4.0.2",
|
|
6290
6300
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
6291
6301
|
schema: null,
|
|
6292
6302
|
get currentUserId() {
|
|
@@ -6563,7 +6573,7 @@
|
|
|
6563
6573
|
}
|
|
6564
6574
|
}
|
|
6565
6575
|
// @ts-ignore
|
|
6566
|
-
dexieCloud.version = "4.0.
|
|
6576
|
+
dexieCloud.version = "4.0.2";
|
|
6567
6577
|
Dexie.Cloud = dexieCloud;
|
|
6568
6578
|
|
|
6569
6579
|
// In case the SW lives for a while, let it reuse already opened connections:
|