@kumiai/rpc 0.12.2 → 0.12.3
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/lib/app-lane.js +8 -4
- package/package.json +2 -2
package/lib/app-lane.js
CHANGED
|
@@ -277,12 +277,16 @@ function frameID(topicID, bytes) {
|
|
|
277
277
|
const restored = pendingRecords.find((record)=>record.frame.protocol === name && record.frame.topicID === topicID && record.frame.position === position);
|
|
278
278
|
takeAppFrame(frames, {
|
|
279
279
|
position,
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
} : {
|
|
280
|
+
// This member's own frame, read back from the log: MLS cannot open what its own
|
|
281
|
+
// sender ratchet sealed, and the drain would drop it as its own echo anyway.
|
|
282
|
+
sealed: restored != null ? {
|
|
284
283
|
state: 'pending',
|
|
285
284
|
id: restored.frame.id
|
|
285
|
+
} : normalizeDID(message.senderDID) === localDID ? {
|
|
286
|
+
state: 'done'
|
|
287
|
+
} : {
|
|
288
|
+
state: 'sealed',
|
|
289
|
+
bytes: message.payload
|
|
286
290
|
}
|
|
287
291
|
}, crypto.pending != null);
|
|
288
292
|
after = position;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumiai/rpc",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3",
|
|
4
4
|
"description": "High-level MLS-aware group RPC for Enkaku: bus broadcast/anycast/gather plus directed RPC over the pub/sub hub",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rpc",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"@kokuin/token": "^0.6.4",
|
|
34
34
|
"@kumiai/broadcast": "^0.12.0",
|
|
35
35
|
"@kumiai/hub-protocol": "^0.12.0",
|
|
36
|
-
"@kumiai/hub-tunnel": "^0.12.
|
|
36
|
+
"@kumiai/hub-tunnel": "^0.12.1",
|
|
37
37
|
"@noble/hashes": "^2.4.0",
|
|
38
38
|
"@sozai/codec": "^0.4.3",
|
|
39
39
|
"@sozai/event": "^0.1.6",
|