@mdbase-dev/sdk 0.2.66 → 0.2.69
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/application/asset-pins.json +4 -4
- package/dist/application/worker.js +9 -7
- package/dist/browser/mdbase-sdk.js +9 -7
- package/dist/browser/mdbase-sdk.min.js +2 -2
- package/dist/native/provenance.json +5 -5
- package/dist/native/runtime.wasm +0 -0
- package/dist/records/session.js +11 -2
- package/dist/records/session.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"runtime": {
|
|
3
|
-
"sha256": "
|
|
4
|
-
"bytes":
|
|
5
|
-
"maxBytes":
|
|
3
|
+
"sha256": "680f47912d0be8f548b26157852219e9b46a62633847cc22e2ca036bf9f5b3ce",
|
|
4
|
+
"bytes": 4139925,
|
|
5
|
+
"maxBytes": 4139925,
|
|
6
6
|
"source": {
|
|
7
7
|
"repository": "mdbase-dev/mdbase-connect",
|
|
8
|
-
"commit": "
|
|
8
|
+
"commit": "03f43ebc5c97e7d35dbabdfa4fca344ad8b61b4b"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"sqlite": {
|
|
@@ -15698,12 +15698,12 @@ function appReleaseTrust() {
|
|
|
15698
15698
|
// src/application/asset-pins.json
|
|
15699
15699
|
var asset_pins_default = {
|
|
15700
15700
|
runtime: {
|
|
15701
|
-
sha256: "
|
|
15702
|
-
bytes:
|
|
15703
|
-
maxBytes:
|
|
15701
|
+
sha256: "680f47912d0be8f548b26157852219e9b46a62633847cc22e2ca036bf9f5b3ce",
|
|
15702
|
+
bytes: 4139925,
|
|
15703
|
+
maxBytes: 4139925,
|
|
15704
15704
|
source: {
|
|
15705
15705
|
repository: "mdbase-dev/mdbase-connect",
|
|
15706
|
-
commit: "
|
|
15706
|
+
commit: "03f43ebc5c97e7d35dbabdfa4fca344ad8b61b4b"
|
|
15707
15707
|
}
|
|
15708
15708
|
},
|
|
15709
15709
|
sqlite: {
|
|
@@ -19833,9 +19833,10 @@ var RecordSessionImpl = class {
|
|
|
19833
19833
|
"native receipt belongs to another mutation",
|
|
19834
19834
|
"mutation_identity_mismatch"
|
|
19835
19835
|
);
|
|
19836
|
-
const
|
|
19836
|
+
const linkedRecord = receipt3.records?.find(
|
|
19837
19837
|
(record3) => record3.id === original.recordId
|
|
19838
|
-
)
|
|
19838
|
+
);
|
|
19839
|
+
const linked = linkedRecord !== void 0;
|
|
19839
19840
|
if (receipt3.records?.length && !linked || !captured.bound && receipt3.state === "confirmed" && !linked) {
|
|
19840
19841
|
throw refusal(
|
|
19841
19842
|
"outcome_unknown",
|
|
@@ -19878,7 +19879,8 @@ var RecordSessionImpl = class {
|
|
|
19878
19879
|
"unqualified_readback"
|
|
19879
19880
|
);
|
|
19880
19881
|
const sameBody = this.body === captured.body;
|
|
19881
|
-
const
|
|
19882
|
+
const acknowledgedOwnRevision = linkedRecord?.revision !== void 0 && current2.revision === linkedRecord.revision;
|
|
19883
|
+
const conflict2 = !kept && !sameBody && !acknowledgedOwnRevision && current2.body !== captured.body && current2.body !== this.body;
|
|
19882
19884
|
this.charge(this.body, this.patch, current2, conflict2 ? current2 : null, receipt3, null, edits);
|
|
19883
19885
|
this.pendingEdits = edits;
|
|
19884
19886
|
for (const [key3, value2] of captured.patch) {
|
|
@@ -5589,9 +5589,10 @@ var MdbaseSDK = (() => {
|
|
|
5589
5589
|
"native receipt belongs to another mutation",
|
|
5590
5590
|
"mutation_identity_mismatch"
|
|
5591
5591
|
);
|
|
5592
|
-
const
|
|
5592
|
+
const linkedRecord = receipt4.records?.find(
|
|
5593
5593
|
(record5) => record5.id === original.recordId
|
|
5594
|
-
)
|
|
5594
|
+
);
|
|
5595
|
+
const linked = linkedRecord !== void 0;
|
|
5595
5596
|
if (receipt4.records?.length && !linked || !captured.bound && receipt4.state === "confirmed" && !linked) {
|
|
5596
5597
|
throw refusal(
|
|
5597
5598
|
"outcome_unknown",
|
|
@@ -5634,7 +5635,8 @@ var MdbaseSDK = (() => {
|
|
|
5634
5635
|
"unqualified_readback"
|
|
5635
5636
|
);
|
|
5636
5637
|
const sameBody = this.body === captured.body;
|
|
5637
|
-
const
|
|
5638
|
+
const acknowledgedOwnRevision = linkedRecord?.revision !== void 0 && current3.revision === linkedRecord.revision;
|
|
5639
|
+
const conflict2 = !kept && !sameBody && !acknowledgedOwnRevision && current3.body !== captured.body && current3.body !== this.body;
|
|
5638
5640
|
this.charge(this.body, this.patch, current3, conflict2 ? current3 : null, receipt4, null, edits);
|
|
5639
5641
|
this.pendingEdits = edits;
|
|
5640
5642
|
for (const [key3, value2] of captured.patch) {
|
|
@@ -51237,12 +51239,12 @@ ${end.comment}` : end.comment;
|
|
|
51237
51239
|
// src/application/asset-pins.json
|
|
51238
51240
|
var asset_pins_default = {
|
|
51239
51241
|
runtime: {
|
|
51240
|
-
sha256: "
|
|
51241
|
-
bytes:
|
|
51242
|
-
maxBytes:
|
|
51242
|
+
sha256: "680f47912d0be8f548b26157852219e9b46a62633847cc22e2ca036bf9f5b3ce",
|
|
51243
|
+
bytes: 4139925,
|
|
51244
|
+
maxBytes: 4139925,
|
|
51243
51245
|
source: {
|
|
51244
51246
|
repository: "mdbase-dev/mdbase-connect",
|
|
51245
|
-
commit: "
|
|
51247
|
+
commit: "03f43ebc5c97e7d35dbabdfa4fca344ad8b61b4b"
|
|
51246
51248
|
}
|
|
51247
51249
|
},
|
|
51248
51250
|
sqlite: {
|