chore: upgrade @waku/*
This commit is contained in:
parent
b688b42e86
commit
5e240d0e3b
File diff suppressed because it is too large
Load Diff
|
@ -5,13 +5,13 @@
|
||||||
"homepage": "/web-chat",
|
"homepage": "/web-chat",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@libp2p/bootstrap": "^8.0.0",
|
"@libp2p/bootstrap": "^8.0.0",
|
||||||
"@waku/react": "^0.0.4-fe5b4c4",
|
"@waku/react": "^0.0.5-effaf55",
|
||||||
"@waku/dns-discovery": "^0.0.15",
|
"@waku/dns-discovery": "^0.0.17",
|
||||||
"@waku/interfaces": "^0.0.17",
|
"@waku/interfaces": "^0.0.18",
|
||||||
"@waku/peer-exchange": "^0.0.15",
|
"@waku/peer-exchange": "^0.0.16",
|
||||||
"@livechat/ui-kit": "^0.5.0-24",
|
"@livechat/ui-kit": "^0.5.0-24",
|
||||||
"@multiformats/multiaddr": "12.1.5",
|
"@multiformats/multiaddr": "12.1.5",
|
||||||
"@waku/sdk": "^0.0.18",
|
"@waku/sdk": "^0.0.19",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
"protons-runtime": "^4.0.1",
|
"protons-runtime": "^4.0.1",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
|
|
@ -90,7 +90,13 @@ function connections(waku: LightNode | undefined): string[] {
|
||||||
let strConnections = " connections: \n";
|
let strConnections = " connections: \n";
|
||||||
waku.libp2p.getConnections().forEach((connection) => {
|
waku.libp2p.getConnections().forEach((connection) => {
|
||||||
strConnections += connection.remotePeer.toString() + ", ";
|
strConnections += connection.remotePeer.toString() + ", ";
|
||||||
strConnections += JSON.stringify(connection.stat);
|
strConnections += JSON.stringify({
|
||||||
|
direction: connection.direction,
|
||||||
|
timeline: connection.timeline,
|
||||||
|
multiplexer: connection.multiplexer,
|
||||||
|
encryption: connection.encryption,
|
||||||
|
status: connection.status,
|
||||||
|
});
|
||||||
strConnections += "; " + JSON.stringify(connection.streams);
|
strConnections += "; " + JSON.stringify(connection.streams);
|
||||||
strConnections += "\n";
|
strConnections += "\n";
|
||||||
});
|
});
|
||||||
|
|
|
@ -188,7 +188,7 @@ export const usePeers = (params: UsePeersParams): UsePeersResults => {
|
||||||
setPeers({
|
setPeers({
|
||||||
allConnected: peers.map((p) => p.id),
|
allConnected: peers.map((p) => p.id),
|
||||||
storePeers: peers
|
storePeers: peers
|
||||||
.filter((p) => p.protocols.includes(waku.StoreCodec))
|
.filter((p) => p.protocols.includes(waku.waku_store.StoreCodec))
|
||||||
.map((p) => p.id),
|
.map((p) => p.id),
|
||||||
//TODO: use from import
|
//TODO: use from import
|
||||||
filterPeers: peers
|
filterPeers: peers
|
||||||
|
@ -197,7 +197,7 @@ export const usePeers = (params: UsePeersParams): UsePeersResults => {
|
||||||
)
|
)
|
||||||
.map((p) => p.id), // hardcoding codec since we don't export it currently
|
.map((p) => p.id), // hardcoding codec since we don't export it currently
|
||||||
lightPushPeers: peers
|
lightPushPeers: peers
|
||||||
.filter((p) => p.protocols.includes(waku.LightPushCodec))
|
.filter((p) => p.protocols.includes(waku.waku_store.StoreCodec))
|
||||||
.map((p) => p.id),
|
.map((p) => p.id),
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue