dexie-cloud-addon 4.1.0-beta.38 → 4.1.0-beta.39
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 +23 -15
- 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 +23 -15
- 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 +23 -15
- 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 +23 -15
- 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.1.0-beta.
|
|
11
|
+
* Version 4.1.0-beta.39, Mon Jan 20 2025
|
|
12
12
|
*
|
|
13
13
|
* https://dexie.org
|
|
14
14
|
*
|
|
@@ -4225,7 +4225,7 @@
|
|
|
4225
4225
|
},
|
|
4226
4226
|
};
|
|
4227
4227
|
|
|
4228
|
-
const bigIntDef = {
|
|
4228
|
+
const bigIntDef$1 = {
|
|
4229
4229
|
bigint: {
|
|
4230
4230
|
replace: (realVal) => {
|
|
4231
4231
|
return { $t: "bigint", v: "" + realVal };
|
|
@@ -4468,7 +4468,7 @@
|
|
|
4468
4468
|
|
|
4469
4469
|
const builtin = {
|
|
4470
4470
|
...numberDef,
|
|
4471
|
-
...bigIntDef,
|
|
4471
|
+
...bigIntDef$1,
|
|
4472
4472
|
...DateDef,
|
|
4473
4473
|
...SetDef,
|
|
4474
4474
|
...MapDef,
|
|
@@ -4578,7 +4578,7 @@
|
|
|
4578
4578
|
this.v = value;
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
|
-
const
|
|
4581
|
+
const bigIntDef = hasBigIntSupport
|
|
4582
4582
|
? {}
|
|
4583
4583
|
: {
|
|
4584
4584
|
bigint: {
|
|
@@ -4586,17 +4586,19 @@
|
|
|
4586
4586
|
replace: (fakeBigInt) => {
|
|
4587
4587
|
return Object.assign({ $t: 'bigint' }, fakeBigInt);
|
|
4588
4588
|
},
|
|
4589
|
-
revive: ({ v
|
|
4590
|
-
}
|
|
4591
|
-
}
|
|
4589
|
+
revive: ({ v }) => new FakeBigInt(v),
|
|
4590
|
+
},
|
|
4591
|
+
};
|
|
4592
|
+
const defs = Object.assign(Object.assign(Object.assign({}, undefinedDef), bigIntDef), { PropModification: {
|
|
4592
4593
|
test: (val) => val instanceof Dexie.PropModification,
|
|
4593
4594
|
replace: (propModification) => {
|
|
4594
|
-
return Object.assign({ $t: 'PropModification' }, propModification);
|
|
4595
|
+
return Object.assign({ $t: 'PropModification' }, propModification['@@propmod']);
|
|
4595
4596
|
},
|
|
4596
4597
|
revive: (_a) => {
|
|
4597
|
-
var
|
|
4598
|
-
|
|
4599
|
-
|
|
4598
|
+
var propModSpec = __rest(_a, ["$t"]) // keep the rest
|
|
4599
|
+
;
|
|
4600
|
+
return new Dexie.PropModification(propModSpec);
|
|
4601
|
+
},
|
|
4600
4602
|
} });
|
|
4601
4603
|
const TSON = TypesonSimplified(builtin, defs);
|
|
4602
4604
|
const BISON = Bison(defs);
|
|
@@ -4744,11 +4746,12 @@
|
|
|
4744
4746
|
db.syncStateChangedEvent.next({
|
|
4745
4747
|
phase: 'pushing',
|
|
4746
4748
|
});
|
|
4749
|
+
const body = TSON.stringify(syncRequest);
|
|
4747
4750
|
const res = yield fetch(`${databaseUrl}/sync`, {
|
|
4748
4751
|
method: 'post',
|
|
4749
4752
|
headers,
|
|
4750
4753
|
credentials: 'include', // For Arr Affinity cookie only, for better Rate-Limit counting only.
|
|
4751
|
-
body
|
|
4754
|
+
body,
|
|
4752
4755
|
});
|
|
4753
4756
|
//const contentLength = Number(res.headers.get('content-length'));
|
|
4754
4757
|
db.syncStateChangedEvent.next({
|
|
@@ -5583,7 +5586,12 @@
|
|
|
5583
5586
|
const usingYProps = Object.values(schema).some(tbl => { var _a; return (_a = tbl.yProps) === null || _a === void 0 ? void 0 : _a.length; });
|
|
5584
5587
|
const serverSupportsYprops = !!res.yMessages;
|
|
5585
5588
|
if (usingYProps && serverSupportsYprops) {
|
|
5586
|
-
|
|
5589
|
+
try {
|
|
5590
|
+
yield downloadYDocsFromServer(db, databaseUrl, newSyncState);
|
|
5591
|
+
}
|
|
5592
|
+
catch (error) {
|
|
5593
|
+
console.error('Failed to download Yjs documents from server', error);
|
|
5594
|
+
}
|
|
5587
5595
|
}
|
|
5588
5596
|
console.debug('SYNC DONE', { isInitialSync });
|
|
5589
5597
|
db.syncCompleteEvent.next();
|
|
@@ -8160,7 +8168,7 @@
|
|
|
8160
8168
|
const syncComplete = new rxjs.Subject();
|
|
8161
8169
|
dexie.cloud = {
|
|
8162
8170
|
// @ts-ignore
|
|
8163
|
-
version: "4.1.0-beta.
|
|
8171
|
+
version: "4.1.0-beta.39",
|
|
8164
8172
|
options: Object.assign({}, DEFAULT_OPTIONS),
|
|
8165
8173
|
schema: null,
|
|
8166
8174
|
get currentUserId() {
|
|
@@ -8478,7 +8486,7 @@
|
|
|
8478
8486
|
}
|
|
8479
8487
|
}
|
|
8480
8488
|
// @ts-ignore
|
|
8481
|
-
dexieCloud.version = "4.1.0-beta.
|
|
8489
|
+
dexieCloud.version = "4.1.0-beta.39";
|
|
8482
8490
|
Dexie.Cloud = dexieCloud;
|
|
8483
8491
|
|
|
8484
8492
|
const ydocTriggers = {};
|