Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

deps: bump @chainsafe/libp2p-noise from 11.0.4 to 12.0.1 #80

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions examples/fetch-file-from-kubo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"test": "npm run build && test-browser-example tests"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^11.0.0",
"@chainsafe/libp2p-noise": "^12.0.1",
"@libp2p/webtransport": "../..",
"@multiformats/multiaddr": "^12.1.2",
"blockstore-core": "^4.1.0",
"ipfs-bitswap": "^17.0.2",
"libp2p": "^0.44.0",
"ipfs-bitswap": "^18.0.1",
"libp2p": "^0.45.9",
"multiformats": "^11.0.2"
},
"devDependencies": {
Expand Down
6 changes: 5 additions & 1 deletion examples/fetch-file-from-kubo/src/libp2p.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ export async function setup (): Promise<{ libp2p: Libp2p, bitswap: Bitswap }> {

const node = await createLibp2p({
transports: [webTransport()],
connectionEncryption: [noise()]
connectionEncryption: [noise()],
// this is only necessary when dialing local addresses
connectionGater: {
denyDialMultiaddr: async () => false
}
})

await node.start()
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"docs": "aegir docs"
},
"dependencies": {
"@chainsafe/libp2p-noise": "^11.0.0",
"@chainsafe/libp2p-noise": "^12.0.1",
"@libp2p/interface-connection": "^5.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-stream-muxer": "^4.0.0",
Expand All @@ -169,7 +169,7 @@
},
"devDependencies": {
"aegir": "^39.0.3",
"libp2p": "^0.44.0",
"libp2p": "^0.45.9",
"p-defer": "^4.0.0"
},
"browser": {
Expand Down
20 changes: 16 additions & 4 deletions test/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ describe('libp2p-webtransport', () => {
const ma = multiaddr(maStr)
const node = await createLibp2p({
transports: [webTransport()],
connectionEncryption: [noise()]
connectionEncryption: [noise()],
connectionGater: {
denyDialMultiaddr: async () => false
}
})

await node.start()
Expand Down Expand Up @@ -85,7 +88,10 @@ describe('libp2p-webtransport', () => {

const node = await createLibp2p({
transports: [webTransport()],
connectionEncryption: [noise()]
connectionEncryption: [noise()],
connectionGater: {
denyDialMultiaddr: async () => false
}
})
await node.start()

Expand All @@ -103,7 +109,10 @@ describe('libp2p-webtransport', () => {
const ma = multiaddr(process.env.serverAddr6)
const node = await createLibp2p({
transports: [webTransport()],
connectionEncryption: [noise()]
connectionEncryption: [noise()],
connectionGater: {
denyDialMultiaddr: async () => false
}
})

await node.start()
Expand All @@ -125,7 +134,10 @@ describe('libp2p-webtransport', () => {
const ma = multiaddr(maStr)
const node = await createLibp2p({
transports: [webTransport()],
connectionEncryption: [noise()]
connectionEncryption: [noise()],
connectionGater: {
denyDialMultiaddr: async () => false
}
})

async function * gen (): AsyncGenerator<Uint8Array, void, unknown> {
Expand Down