Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

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

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

---
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

---------

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 authored May 4, 2023
1 parent 33a6381 commit e8d7ed7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"devDependencies": {
"@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"aegir": "^38.1.7",
"aegir": "^39.0.5",
"sinon-ts": "^1.0.0"
}
}
18 changes: 7 additions & 11 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { multiaddr } from '@multiformats/multiaddr'
import { P2P } from '@multiformats/mafmt'
import { symbol } from '@libp2p/interface-peer-discovery'
import { EventEmitter } from '@libp2p/interfaces/events'
import { logger } from '@libp2p/logger'
import { peerIdFromString } from '@libp2p/peer-id'
import { P2P } from '@multiformats/mafmt'
import { multiaddr } from '@multiformats/multiaddr'
import type { PeerDiscovery, PeerDiscoveryEvents } from '@libp2p/interface-peer-discovery'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import { peerIdFromString } from '@libp2p/peer-id'
import { symbol } from '@libp2p/interface-peer-discovery'
import type { Startable } from '@libp2p/interfaces/dist/src/startable'
import type { PeerStore } from '@libp2p/interface-peer-store'
import type { Startable } from '@libp2p/interfaces/dist/src/startable'

const log = logger('libp2p:bootstrap')

Expand Down Expand Up @@ -95,13 +95,9 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
this._init = options
}

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

get [Symbol.toStringTag] (): '@libp2p/bootstrap' {
return '@libp2p/bootstrap'
}
readonly [Symbol.toStringTag] = '@libp2p/bootstrap'

isStarted (): boolean {
return Boolean(this.timer)
Expand Down
14 changes: 7 additions & 7 deletions test/bootstrap.spec.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/* eslint-env mocha */

import { expect } from 'aegir/chai'
import { isPeerId } from '@libp2p/interface-peer-id'
import { start, stop } from '@libp2p/interfaces/startable'
import { peerIdFromString } from '@libp2p/peer-id'
import { IPFS } from '@multiformats/mafmt'
import { bootstrap, BootstrapComponents } from '../src/index.js'
import { multiaddr } from '@multiformats/multiaddr'
import { expect } from 'aegir/chai'
import { type StubbedInstance, stubInterface } from 'sinon-ts'
import { bootstrap, type BootstrapComponents } from '../src/index.js'
import peerList from './fixtures/default-peers.js'
import partialValidPeerList from './fixtures/some-invalid-peers.js'
import { isPeerId } from '@libp2p/interface-peer-id'
import { multiaddr } from '@multiformats/multiaddr'
import { peerIdFromString } from '@libp2p/peer-id'
import { start, stop } from '@libp2p/interfaces/startable'
import { StubbedInstance, stubInterface } from 'sinon-ts'
import type { PeerStore } from '@libp2p/interface-peer-store'

describe('bootstrap', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/compliance.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/* eslint-env mocha */

import tests from '@libp2p/interface-peer-discovery-compliance-tests'
import { stubInterface } from 'sinon-ts'
import { bootstrap } from '../src/index.js'
import peerList from './fixtures/default-peers.js'
import type { PeerStore } from '@libp2p/interface-peer-store'
import { stubInterface } from 'sinon-ts'

describe('compliance tests', () => {
tests({
Expand Down

0 comments on commit e8d7ed7

Please sign in to comment.