From e8d7ed76e60b64c2e5a554cd10173a1176e5e2b1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 4 May 2023 18:31:04 +0100 Subject: [PATCH] deps(dev): bump aegir from 38.1.8 to 39.0.5 (#175) * 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](https://github.com/ipfs/aegir/compare/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] * chore: fix linting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: achingbrain --- package.json | 2 +- src/index.ts | 18 +++++++----------- test/bootstrap.spec.ts | 14 +++++++------- test/compliance.spec.ts | 2 +- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index d0a5887..c9f6f19 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/src/index.ts b/src/index.ts index 5bf9857..ce35cd6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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') @@ -95,13 +95,9 @@ class Bootstrap extends EventEmitter 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) diff --git a/test/bootstrap.spec.ts b/test/bootstrap.spec.ts index c712f02..4213385 100644 --- a/test/bootstrap.spec.ts +++ b/test/bootstrap.spec.ts @@ -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', () => { diff --git a/test/compliance.spec.ts b/test/compliance.spec.ts index 8e0534b..7afc7db 100644 --- a/test/compliance.spec.ts +++ b/test/compliance.spec.ts @@ -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({