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 37.12.1 to 38.1.7 (#163)
Browse files Browse the repository at this point in the history
* deps(dev): bump aegir from 37.12.1 to 38.1.7

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

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

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

* chore: fix project and linting

* chore: update dev 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 authored Mar 17, 2023
1 parent 04e60cf commit 81ae1f2
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 24 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
node_modules
package-lock.json
yarn.lock
.vscode
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
- [Install](#install)
- [Browser `<script>` tag](#browser-script-tag)
- [Usage](#usage)
- [Contribute](#contribute)
- [API Docs](#api-docs)
- [License](#license)
- [Contribute](#contribute-1)
- [Contribution](#contribution)

## Install

Expand Down Expand Up @@ -88,13 +87,6 @@ async function start () {
start()
```

## Contribute

The libp2p implementation in JavaScript is a work in progress. As such, there are a few things you can do right now to help out:

- Go through the modules and **check out existing issues**. This is especially useful for modules in active development. Some knowledge of IPFS/libp2p may be required, as well as the infrastructure behind it - for instance, you may need to read up on p2p and more complex operations like muxing to be able to help technically.
- **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.

## API Docs

- <https://libp2p.github.io/js-libp2p-bootstrap>
Expand All @@ -106,6 +98,6 @@ Licensed under either of
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

## Contribute
## Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,9 @@
"@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0",
"@libp2p/interface-peer-id": "^2.0.0",
"@libp2p/peer-id-factory": "^2.0.0",
"@libp2p/peer-store": "^6.0.0",
"aegir": "^37.9.1",
"datastore-core": "^8.0.1",
"@libp2p/peer-store": "^7.0.0",
"aegir": "^38.1.7",
"datastore-core": "^9.0.3",
"delay": "^5.0.0"
}
}
10 changes: 5 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,18 +99,18 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
return true
}

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

isStarted () {
isStarted (): boolean {
return Boolean(this.timer)
}

/**
* Start emitting events
*/
start () {
start (): void {
if (this.isStarted()) {
return
}
Expand All @@ -127,7 +127,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
/**
* Emit each address in the list as a PeerInfo
*/
async _discoverBootstrapPeers () {
async _discoverBootstrapPeers (): Promise<void> {
if (this.timer == null) {
return
}
Expand All @@ -150,7 +150,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
/**
* Stop emitting events
*/
stop () {
stop (): void {
if (this.timer != null) {
clearTimeout(this.timer)
}
Expand Down
16 changes: 10 additions & 6 deletions test/bootstrap.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ describe('bootstrap', () => {
timeout: 100
})(components)

const p = new Promise((resolve) => r.addEventListener('peer', resolve, {
once: true
}))
const p = new Promise((resolve) => {
r.addEventListener('peer', resolve, {
once: true
})
})
await start(r)

await p
Expand All @@ -63,9 +65,11 @@ describe('bootstrap', () => {
tagTTL
})(components)

const p = new Promise((resolve) => r.addEventListener('peer', resolve, {
once: true
}))
const p = new Promise((resolve) => {
r.addEventListener('peer', resolve, {
once: true
})
})
await start(r)

await p
Expand Down

0 comments on commit 81ae1f2

Please sign in to comment.