Skip to content

Commit

Permalink
deps(dev): bump aegir from 37.12.1 to 38.1.8 (libp2p#31)
Browse files Browse the repository at this point in the history
* deps(dev): bump aegir from 37.12.1 to 38.1.8

Bumps [aegir](https://github.com/ipfs/aegir) from 37.12.1 to 38.1.8.
- [Release notes](https://github.com/ipfs/aegir/releases)
- [Changelog](https://github.com/ipfs/aegir/blob/master/CHANGELOG.md)
- [Commits](ipfs/aegir@v37.12.1...v38.1.8)

---
updated-dependencies:
- dependency-name: aegir
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* chore: fix linting

* chore: deps and linting

* chore: fix deps

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <[email protected]>
  • Loading branch information
dependabot[bot] and achingbrain committed Jun 15, 2023
1 parent 05ebf8b commit 628f1a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,9 @@
},
"dependencies": {
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/interface-registrar": "^2.0.3",
"@libp2p/logger": "^2.0.1",
"it-all": "^3.0.1"
"@libp2p/interface-registrar": "^2.0.3"
},
"devDependencies": {
"aegir": "^37.5.3"
"aegir": "^39.0.10"
}
}
12 changes: 5 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { topologySymbol as symbol } from '@libp2p/interface-registrar'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { Topology, TopologyInit, onConnectHandler, onDisconnectHandler, Registrar } from '@libp2p/interface-registrar'

const noop = () => {}
const noop = (): void => {}

class TopologyImpl implements Topology {
public min: number
Expand All @@ -26,22 +26,20 @@ class TopologyImpl implements Topology {
this.onDisconnect = init.onDisconnect ?? noop
}

get [Symbol.toStringTag] () {
get [Symbol.toStringTag] (): string {
return symbol.toString()
}

get [symbol] () {
return true
}
readonly [symbol] = true

async setRegistrar (registrar: Registrar) {
async setRegistrar (registrar: Registrar): Promise<void> {
this.registrar = registrar
}

/**
* Notify about peer disconnected event
*/
disconnect (peerId: PeerId) {
disconnect (peerId: PeerId): void {
this.onDisconnect(peerId)
}
}
Expand Down

0 comments on commit 628f1a8

Please sign in to comment.