diff --git a/package.json b/package.json index b27f8dc..a8ea998 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "release": "aegir release" }, "dependencies": { - "@libp2p/daemon-client": "^5.0.0", + "@libp2p/daemon-client": "^6.0.0", "@libp2p/interface-peer-id": "^2.0.1", "@libp2p/interface-peer-info": "^1.0.7", "@multiformats/multiaddr": "^12.0.0", @@ -144,7 +144,7 @@ "it-length-prefixed": "^9.0.0", "it-pb-stream": "^3.0.0", "it-pipe": "^3.0.0", - "it-stream-types": "^1.0.5", + "it-stream-types": "^2.0.1", "multiformats": "^11.0.0", "p-defer": "^4.0.0", "p-retry": "^5.1.0", diff --git a/src/relay/util.ts b/src/relay/util.ts index 2576394..b617317 100644 --- a/src/relay/util.ts +++ b/src/relay/util.ts @@ -1,7 +1,7 @@ import type { PeerId } from '@libp2p/interface-peer-id' import type { Daemon } from '../index.js' import { HopMessage } from './pb/index.js' -import type { Duplex } from 'it-stream-types' +import type { Duplex, Source } from 'it-stream-types' import type { Uint8ArrayList } from 'uint8arraylist' import { pipe } from 'it-pipe' import { pbStream } from 'it-pb-stream' @@ -22,7 +22,7 @@ export const reserve = async (d: Daemon, peerID: PeerId, message?: Partial>) => { + handler: async (stream: Duplex, Source, Promise>) => { await pipe( stream, async function * (src) {