@kumiai/mls-rpc 0.10.1 → 0.10.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.
Files changed (2) hide show
  1. package/lib/recovery.js +6 -2
  2. package/package.json +4 -4
package/lib/recovery.js CHANGED
@@ -27,7 +27,8 @@ export function createRecoveryBindingState(identity, host) {
27
27
  const bindingID = (value)=>JSON.stringify([
28
28
  value.id,
29
29
  value.prefix,
30
- value.capability
30
+ value.capability,
31
+ value.holderGrant
31
32
  ]);
32
33
  function markBindingUnusable(id) {
33
34
  if (id == null) return;
@@ -56,7 +57,10 @@ export function createRecoveryBindingState(identity, host) {
56
57
  return leaf?.controller == null || leaf.prefix == null || leaf.capability == null ? undefined : {
57
58
  id: leaf.controller,
58
59
  prefix: leaf.prefix,
59
- capability: leaf.capability
60
+ capability: leaf.capability,
61
+ ...leaf.holderGrant == null ? {} : {
62
+ holderGrant: leaf.holderGrant
63
+ }
60
64
  };
61
65
  }
62
66
  async function request(group) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumiai/mls-rpc",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "The @kumiai/rpc consumer ports (GroupCrypto, GroupMLS) implemented over @kumiai/mls",
5
5
  "keywords": [
6
6
  "mls",
@@ -25,9 +25,9 @@
25
25
  "lib/*"
26
26
  ],
27
27
  "dependencies": {
28
- "@kokuin/token": "^0.5.0",
29
- "@kumiai/mls": "^0.10.1",
30
- "@kumiai/rpc": "^0.10.3",
28
+ "@kokuin/token": "^0.5.1",
29
+ "@kumiai/mls": "^0.10.2",
30
+ "@kumiai/rpc": "^0.10.7",
31
31
  "@noble/ciphers": "^2.4.0",
32
32
  "@sozai/runtime": "^0.1.0"
33
33
  },