mirror of https://codeberg.org/pzp/pzp-net.git
fix typescript for net.peers()
This commit is contained in:
parent
7f5ef18bd7
commit
0ce68f2770
|
@ -14,6 +14,7 @@ We're not on npm yet. In your package.json, include this as
|
||||||
- [x] stage
|
- [x] stage
|
||||||
- [x] stats.json
|
- [x] stats.json
|
||||||
- [x] interpool glue
|
- [x] interpool glue
|
||||||
- [ ] writing hubs to stats.json
|
- [x] writing peers to stats.json
|
||||||
|
- [ ] ONLY writing hubs to stats.json
|
||||||
- [ ] firewall
|
- [ ] firewall
|
||||||
- [ ] scheduler
|
- [ ] scheduler
|
||||||
|
|
|
@ -117,6 +117,9 @@ class Infos {
|
||||||
return this.#map.entries()
|
return this.#map.entries()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @returns {pull.Source<[Address, Info]>}
|
||||||
|
*/
|
||||||
liveEntries() {
|
liveEntries() {
|
||||||
return pullConcat([
|
return pullConcat([
|
||||||
pull.values([Array.from(this.#map.entries())]),
|
pull.values([Array.from(this.#map.entries())]),
|
||||||
|
|
Loading…
Reference in New Issue