@dotrino/identity 0.40.0 → 0.41.0
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/package.json +1 -1
- package/src/index.js +2 -0
- package/src/node.js +11 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -269,6 +269,8 @@ export class Identity {
|
|
|
269
269
|
|
|
270
270
|
/** Dónde estoy yo: { inProfile, profileId, seq, isMaster, caps, id }. */
|
|
271
271
|
async myMembership () { return this._call('myMembership') }
|
|
272
|
+
/** La cadena de actas desde `sinceSeq` (ver la nota en `node.js`). */
|
|
273
|
+
async actaHistory (opts) { return this._call('actaHistory', opts || {}) }
|
|
272
274
|
|
|
273
275
|
/** ¿Es ESTE dispositivo el master (el único que puede cambiar el acta)? */
|
|
274
276
|
async isMaster () { return this._call('isMaster') }
|
package/src/node.js
CHANGED
|
@@ -165,6 +165,17 @@ export class Identity {
|
|
|
165
165
|
profileActa () { return this._h('profileActa') }
|
|
166
166
|
profileMembers () { return this._h('profileMembers') }
|
|
167
167
|
myMembership () { return this._h('myMembership') }
|
|
168
|
+
/**
|
|
169
|
+
* La CADENA de actas desde `sinceSeq` (para que un dispositivo que estuvo apagado
|
|
170
|
+
* compruebe el encadenamiento en vez de tragarse un salto a ciegas).
|
|
171
|
+
*
|
|
172
|
+
* Vivía en el núcleo pero NO estaba aquí, así que `identity.actaHistory` era
|
|
173
|
+
* `undefined` en el daemon: al pedir la lista de dispositivos con un `sinceSeq`
|
|
174
|
+
* —que es lo que manda SIEMPRE un navegador ya emparejado— reventaba con
|
|
175
|
+
* «is not a function», la bóveda respondía error, y el aparato NUNCA volvía a
|
|
176
|
+
* sincronizar su acta. Se quedaba con la copia del día que emparejó.
|
|
177
|
+
*/
|
|
178
|
+
actaHistory (opts) { return this._h('actaHistory', opts || {}) }
|
|
168
179
|
isMaster () { return this._h('isMaster') }
|
|
169
180
|
admitMember (member) { return this._h('admitMember', member) }
|
|
170
181
|
setCaps (pub, caps) { return this._h('setCaps', { pub, caps }) }
|