@econ-v1/domain 7.6.163 → 7.6.164
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.
|
@@ -16,7 +16,8 @@ export class HomeGossipMirror implements GossipSyncStrategy {
|
|
|
16
16
|
homeCard(): Promise<SignedCard | null>;
|
|
17
17
|
/** @returns {Promise<SignedCard[]>} */
|
|
18
18
|
publicMembers(): Promise<SignedCard[]>;
|
|
19
|
-
/** Card timestamps and now are Unix
|
|
19
|
+
/** Card timestamps and `now` are Unix milliseconds (`timestamp_millis()` from
|
|
20
|
+
* node-app-gossip). Stale after 24 hours.
|
|
20
21
|
* @param {SignedCard} card @param {number} now */
|
|
21
22
|
isStale(card: SignedCard, now: number): boolean;
|
|
22
23
|
/** @param {import('../models/sync.js').SyncDelta<unknown>} delta
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home-gossip-mirror.d.ts","sourceRoot":"","sources":["../../src/services/home-gossip-mirror.js"],"names":[],"mappings":"AAGA,gEAAgE;AAChE,6MAA6M;AAC7M;;;GAGG;AACH,yCAFgB,kBAAkB;IAK9B,+CAA+C;IAC/C,qBADY,uBAAuB,EACa;IAHhD,qCAAqC;IACrC,MADW,sBAAsB,CACH;IAEP,iCAAsB;IAC7C,4BAA4B;IAC5B,qBADY,OAAO,oBAIlB;IAQD,0CAA0C;IAC1C,YADc,OAAO,CAAC,UAAU,GAAC,IAAI,CAAC,CAIrC;IACD,uCAAuC;IACvC,iBADc,OAAO,CAAC,UAAU,EAAE,CAAC,CAQlC;IACD;
|
|
1
|
+
{"version":3,"file":"home-gossip-mirror.d.ts","sourceRoot":"","sources":["../../src/services/home-gossip-mirror.js"],"names":[],"mappings":"AAGA,gEAAgE;AAChE,6MAA6M;AAC7M;;;GAGG;AACH,yCAFgB,kBAAkB;IAK9B,+CAA+C;IAC/C,qBADY,uBAAuB,EACa;IAHhD,qCAAqC;IACrC,MADW,sBAAsB,CACH;IAEP,iCAAsB;IAC7C,4BAA4B;IAC5B,qBADY,OAAO,oBAIlB;IAQD,0CAA0C;IAC1C,YADc,OAAO,CAAC,UAAU,GAAC,IAAI,CAAC,CAIrC;IACD,uCAAuC;IACvC,iBADc,OAAO,CAAC,UAAU,EAAE,CAAC,CAQlC;IACD;;sDAEkD;IAClD,cADW,UAAU,OAAe,MAAM,WACwC;IAClF;wEACoE;IACpE,kBAFY,OAAO,mBAAmB,EAAE,SAAS,CAAC,OAAO,CAAC,YAC/C,OAAO,mBAAmB,EAAE,gBAAgB;;OAYtD;;CACJ;iCAzDa,OAAO,mBAAmB,EAAE,YAAY,CAAC,OAAO,CAAC;yBAEjD,OAAO,gBAAgB,EAAE,UAAU;sCACnC;IAAE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,OAAO,gBAAgB,EAAE,oBAAoB,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,OAAO,gBAAgB,EAAE,kBAAkB,CAAA;CAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@econ-v1/domain",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.164",
|
|
4
4
|
"description": "Platform-neutral domain contracts and errors for Node clients",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"author": "Node contributors",
|
|
@@ -57,6 +57,6 @@
|
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@econ-v1/ports": "7.6.
|
|
60
|
+
"@econ-v1/ports": "7.6.164"
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -38,9 +38,10 @@ export class HomeGossipMirror {
|
|
|
38
38
|
}
|
|
39
39
|
return cards;
|
|
40
40
|
}
|
|
41
|
-
/** Card timestamps and now are Unix
|
|
41
|
+
/** Card timestamps and `now` are Unix milliseconds (`timestamp_millis()` from
|
|
42
|
+
* node-app-gossip). Stale after 24 hours.
|
|
42
43
|
* @param {SignedCard} card @param {number} now */
|
|
43
|
-
isStale(card, now) { return now - card.metadata.timestamp > 24 * 60 * 60; }
|
|
44
|
+
isStale(card, now) { return now - card.metadata.timestamp > 24 * 60 * 60 * 1000; }
|
|
44
45
|
/** @param {import('../models/sync.js').SyncDelta<unknown>} delta
|
|
45
46
|
* @param {import('../models/sync.js').SyncDeltaContext} _context */
|
|
46
47
|
async applyDelta(delta, _context) {
|