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

Commit 81ae1f2

Browse files
deps(dev): bump aegir from 37.12.1 to 38.1.7 (#163)
* 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]>
1 parent 04e60cf commit 81ae1f2

File tree

5 files changed

+21
-24
lines changed

5 files changed

+21
-24
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ dist
66
node_modules
77
package-lock.json
88
yarn.lock
9+
.vscode

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@
1212
- [Install](#install)
1313
- [Browser `<script>` tag](#browser-script-tag)
1414
- [Usage](#usage)
15-
- [Contribute](#contribute)
1615
- [API Docs](#api-docs)
1716
- [License](#license)
18-
- [Contribute](#contribute-1)
17+
- [Contribution](#contribution)
1918

2019
## Install
2120

@@ -88,13 +87,6 @@ async function start () {
8887
start()
8988
```
9089

91-
## Contribute
92-
93-
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:
94-
95-
- 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.
96-
- **Perform code reviews**. More eyes will help a) speed the project along b) ensure quality and c) reduce possible future bugs.
97-
9890
## API Docs
9991

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

109-
## Contribute
101+
## Contribution
110102

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@
152152
"@libp2p/interface-peer-discovery-compliance-tests": "^2.0.0",
153153
"@libp2p/interface-peer-id": "^2.0.0",
154154
"@libp2p/peer-id-factory": "^2.0.0",
155-
"@libp2p/peer-store": "^6.0.0",
156-
"aegir": "^37.9.1",
157-
"datastore-core": "^8.0.1",
155+
"@libp2p/peer-store": "^7.0.0",
156+
"aegir": "^38.1.7",
157+
"datastore-core": "^9.0.3",
158158
"delay": "^5.0.0"
159159
}
160160
}

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,18 +99,18 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
9999
return true
100100
}
101101

102-
get [Symbol.toStringTag] () {
102+
get [Symbol.toStringTag] (): '@libp2p/bootstrap' {
103103
return '@libp2p/bootstrap'
104104
}
105105

106-
isStarted () {
106+
isStarted (): boolean {
107107
return Boolean(this.timer)
108108
}
109109

110110
/**
111111
* Start emitting events
112112
*/
113-
start () {
113+
start (): void {
114114
if (this.isStarted()) {
115115
return
116116
}
@@ -127,7 +127,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
127127
/**
128128
* Emit each address in the list as a PeerInfo
129129
*/
130-
async _discoverBootstrapPeers () {
130+
async _discoverBootstrapPeers (): Promise<void> {
131131
if (this.timer == null) {
132132
return
133133
}
@@ -150,7 +150,7 @@ class Bootstrap extends EventEmitter<PeerDiscoveryEvents> implements PeerDiscove
150150
/**
151151
* Stop emitting events
152152
*/
153-
stop () {
153+
stop (): void {
154154
if (this.timer != null) {
155155
clearTimeout(this.timer)
156156
}

test/bootstrap.spec.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ describe('bootstrap', () => {
3939
timeout: 100
4040
})(components)
4141

42-
const p = new Promise((resolve) => r.addEventListener('peer', resolve, {
43-
once: true
44-
}))
42+
const p = new Promise((resolve) => {
43+
r.addEventListener('peer', resolve, {
44+
once: true
45+
})
46+
})
4547
await start(r)
4648

4749
await p
@@ -63,9 +65,11 @@ describe('bootstrap', () => {
6365
tagTTL
6466
})(components)
6567

66-
const p = new Promise((resolve) => r.addEventListener('peer', resolve, {
67-
once: true
68-
}))
68+
const p = new Promise((resolve) => {
69+
r.addEventListener('peer', resolve, {
70+
once: true
71+
})
72+
})
6973
await start(r)
7074

7175
await p

0 commit comments

Comments
 (0)