From 2fe969ec5f4aba4c654f0f0d5c15b141eca7f458 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 May 2023 11:10:47 +0000 Subject: [PATCH 1/3] deps(dev): bump aegir from 38.1.8 to 39.0.7 Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.7. - [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.7) --- updated-dependencies: - dependency-name: aegir dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e75b03..4e0bb0f 100644 --- a/package.json +++ b/package.json @@ -151,7 +151,7 @@ }, "devDependencies": { "@libp2p/peer-id-factory": "^2.0.3", - "aegir": "^38.1.2", + "aegir": "^39.0.7", "body-parser": "^1.20.2", "it-all": "^3.0.1" } From e7bac861cbd784afb603c8422acb2cf9865f084d Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 19 May 2023 14:36:43 +0100 Subject: [PATCH 2/3] chore: fix linting and deps --- src/index.ts | 22 +++++++++++----------- test/index.spec.ts | 6 +++--- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/index.ts b/src/index.ts index 415dc3c..284bd33 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,19 +1,19 @@ +import { CodeError } from '@libp2p/interfaces/errors' +import { logger } from '@libp2p/logger' +import { peerIdFromString } from '@libp2p/peer-id' +import { multiaddr } from '@multiformats/multiaddr' +import { anySignal } from 'any-signal' +import toIt from 'browser-readablestream-to-it' +import ndjson from 'iterable-ndjson' +import defer from 'p-defer' import PQueue from 'p-queue' -import type { AbortOptions } from '@libp2p/interfaces' import type { ContentRouting } from '@libp2p/interface-content-routing' import type { PeerInfo } from '@libp2p/interface-peer-info' +import type { AbortOptions } from '@libp2p/interfaces' import type { Startable } from '@libp2p/interfaces/startable' -import type { CID } from 'multiformats/cid' -import { peerIdFromString } from '@libp2p/peer-id' -import { multiaddr } from '@multiformats/multiaddr' -import { logger } from '@libp2p/logger' -import defer from 'p-defer' -import { anySignal } from 'any-signal' import type { Multiaddr } from '@multiformats/multiaddr' -import { CodeError } from '@libp2p/interfaces/errors' -import toIt from 'browser-readablestream-to-it' +import type { CID } from 'multiformats/cid' // @ts-expect-error no types -import ndjson from 'iterable-ndjson' const log = logger('ipni-content-routing') @@ -92,7 +92,7 @@ class IpniContentRouting implements ContentRouting, Startable { void this.httpQueue.add(async () => { onStart.resolve() - return await onFinish.promise + return onFinish.promise }) try { diff --git a/test/index.spec.ts b/test/index.spec.ts index df88494..3996dd3 100644 --- a/test/index.spec.ts +++ b/test/index.spec.ts @@ -1,10 +1,10 @@ /* eslint-env mocha */ -import { expect } from 'aegir/chai' import { createEd25519PeerId } from '@libp2p/peer-id-factory' -import { ipniContentRouting } from '../src/index.js' -import { CID } from 'multiformats/cid' +import { expect } from 'aegir/chai' import all from 'it-all' +import { CID } from 'multiformats/cid' +import { ipniContentRouting } from '../src/index.js' if (process.env.ECHO_SERVER == null) { throw new Error('Echo server not configured correctly') From da24328ea037a5c8751f3c4677a16339b16d2322 Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 19 May 2023 14:40:29 +0100 Subject: [PATCH 3/3] chore: linting --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 284bd33..de91ce1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -4,6 +4,7 @@ import { peerIdFromString } from '@libp2p/peer-id' import { multiaddr } from '@multiformats/multiaddr' import { anySignal } from 'any-signal' import toIt from 'browser-readablestream-to-it' +// @ts-expect-error no types import ndjson from 'iterable-ndjson' import defer from 'p-defer' import PQueue from 'p-queue' @@ -13,7 +14,6 @@ import type { AbortOptions } from '@libp2p/interfaces' import type { Startable } from '@libp2p/interfaces/startable' import type { Multiaddr } from '@multiformats/multiaddr' import type { CID } from 'multiformats/cid' -// @ts-expect-error no types const log = logger('ipni-content-routing')