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

Commit

Permalink
deps: bump @chainsafe/libp2p-noise from 11.0.4 to 12.0.1 (#80)
Browse files Browse the repository at this point in the history
* deps: bump @chainsafe/libp2p-noise from 11.0.4 to 12.0.1

Bumps [@chainsafe/libp2p-noise](https://github.com/ChainSafe/js-libp2p-noise) from 11.0.4 to 12.0.1.
- [Release notes](https://github.com/ChainSafe/js-libp2p-noise/releases)
- [Changelog](https://github.com/ChainSafe/js-libp2p-noise/blob/master/CHANGELOG.md)
- [Commits](ChainSafe/js-libp2p-noise@v11.0.4...v12.0.1)

---
updated-dependencies:
- dependency-name: "@chainsafe/libp2p-noise"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix linting

* chore: update deps

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain committed Jun 15, 2023
1 parent 56ef477 commit 599dab1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
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

0 comments on commit 599dab1

Please sign in to comment.