mirror of
https://github.com/fluencelabs/js-libp2p-websockets
synced 2025-05-03 22:32:24 +00:00
chore(deps-dev): bump aegir from 20.6.1 to 21.4.4 (#111)
* chore(deps-dev): bump aegir from 20.6.1 to 21.4.4 Bumps [aegir](https://github.com/ipfs/aegir) from 20.6.1 to 21.4.4. - [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/v20.6.1...v21.4.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * test(fix): fix aegir file for latest aegir Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Jacob Heun <jacobheun@gmail.com>
This commit is contained in:
parent
8065e07bad
commit
a17c5432e7
@ -10,16 +10,16 @@ const mockUpgrader = {
|
||||
}
|
||||
let listener
|
||||
|
||||
function boot (done) {
|
||||
async function boot () {
|
||||
const ws = new WS({ upgrader: mockUpgrader })
|
||||
const ma = multiaddr('/ip4/127.0.0.1/tcp/9095/ws')
|
||||
listener = ws.createListener(conn => pipe(conn, conn))
|
||||
listener.listen(ma).then(() => done()).catch(done)
|
||||
await listener.listen(ma)
|
||||
listener.on('error', console.error)
|
||||
}
|
||||
|
||||
function shutdown (done) {
|
||||
listener.close().then(done).catch(done)
|
||||
function shutdown () {
|
||||
return listener.close()
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
|
@ -52,7 +52,7 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"abort-controller": "^3.0.0",
|
||||
"aegir": "^20.3.1",
|
||||
"aegir": "^21.4.4",
|
||||
"bl": "^4.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"dirty-chai": "^2.0.1",
|
||||
|
Loading…
x
Reference in New Issue
Block a user