Skip to content

Commit

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

Bumps [aegir](https://github.com/ipfs/aegir) from 38.1.8 to 39.0.9.
- [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.9)

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

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

* chore: linting

---------

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 authored May 31, 2023
1 parent 1c5d8fb commit 797c287
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
},
"devDependencies": {
"@libp2p/peer-id-factory": "^2.0.0",
"aegir": "^38.1.2",
"aegir": "^39.0.9",
"go-ipfs": "^0.15.0",
"ipfs-http-client": "^59.0.0",
"ipfsd-ctl": "^13.0.0",
Expand Down
16 changes: 8 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { CodeError } from '@libp2p/interfaces/errors'
import { logger } from '@libp2p/logger'
import { peerIdFromBytes } from '@libp2p/peer-id'
import anySignal from 'any-signal'
import { CID } from 'multiformats/cid'
import PQueue from 'p-queue'
import defer from 'p-defer'
import { CodeError } from '@libp2p/interfaces/errors'
import anySignal from 'any-signal'
import PQueue from 'p-queue'
import type { PeerId } from '@libp2p/interface-peer-id'
import type { AbortOptions } from 'ipfs-core-types/src/utils'
import type { PeerRouting } from '@libp2p/interface-peer-routing'
import type { PeerInfo } from '@libp2p/interface-peer-info'
import type { PeerRouting } from '@libp2p/interface-peer-routing'
import type { Startable } from '@libp2p/interfaces/startable'
import { peerIdFromBytes } from '@libp2p/peer-id'
import type { AbortOptions } from 'ipfs-core-types/src/utils'

const log = logger('libp2p:delegated-peer-routing')

Expand Down Expand Up @@ -176,7 +176,7 @@ class DelegatedPeerRouting implements PeerRouting, Startable {

void this.httpQueue.add(async () => {
onStart.resolve()
return await onFinish.promise
return onFinish.promise
})

try {
Expand Down Expand Up @@ -227,7 +227,7 @@ class DelegatedPeerRouting implements PeerRouting, Startable {

void this.httpQueue.add(async () => {
onStart.resolve()
return await onFinish.promise
return onFinish.promise
})

try {
Expand Down
24 changes: 12 additions & 12 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
/* eslint-env mocha */

import { stop } from '@libp2p/interfaces/startable'
import { peerIdFromString } from '@libp2p/peer-id'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
import { expect } from 'aegir/chai'
import { Controller, createFactory } from 'ipfsd-ctl'
import { isElectronMain, isNode } from 'wherearewe'
import { create, Options, CID as IPFSCID } from 'ipfs-http-client'
import { delegatedPeerRouting } from '../src/index.js'
// @ts-expect-error no types
import goIpfs from 'go-ipfs'
import { peerIdFromString } from '@libp2p/peer-id'
import { createEd25519PeerId } from '@libp2p/peer-id-factory'
import { create, type Options, CID as IPFSCID } from 'ipfs-http-client'
import { type Controller, createFactory } from 'ipfsd-ctl'
import all from 'it-all'
import pDefer from 'p-defer'
import drain from 'it-drain'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import type { IDResult } from 'ipfs-core-types/src/root'
import { CID } from 'multiformats/cid'
import type { AbortOptions } from '@libp2p/interfaces'
import pDefer from 'p-defer'
import { fromString as uint8ArrayFromString } from 'uint8arrays/from-string'
import { isElectronMain, isNode } from 'wherearewe'
import { delegatedPeerRouting } from '../src/index.js'
import type { PeerId } from '@libp2p/interface-peer-id'
import { stop } from '@libp2p/interfaces/startable'
import type { AbortOptions } from '@libp2p/interfaces'
import type { IDResult } from 'ipfs-core-types/src/root'

const factory = createFactory({
type: 'go',
Expand Down Expand Up @@ -99,7 +99,7 @@ describe('DelegatedPeerRouting', function () {
})

after(async () => {
return await Promise.all([
return Promise.all([
nodeToFind.stop(),
delegatedNode.stop(),
bootstrapNode.stop()
Expand Down

0 comments on commit 797c287

Please sign in to comment.