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

Commit 5b19a56

Browse files
authored
chore: update deps (#176)
1 parent 0bddddc commit 5b19a56

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@
152152
"wherearewe": "^1.0.1"
153153
},
154154
"devDependencies": {
155-
"@libp2p/interface-mocks": "^1.0.1",
156-
"@libp2p/interface-transport-compliance-tests": "^1.0.0",
155+
"@libp2p/interface-mocks": "^2.0.1",
156+
"@libp2p/interface-transport-compliance-tests": "^2.0.0",
157157
"@mapbox/node-pre-gyp": "^1.0.8",
158158
"aegir": "^37.2.0",
159159
"it-all": "^1.0.6",

test/dial.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
3838
it('dial on IPv4', async () => {
3939
const wd = await create()
4040
const conn = await wd.dial(REMOTE_MULTIADDR_IP4, { upgrader })
41-
const { stream } = await conn.newStream(ECHO_PROTOCOL)
41+
const stream = await conn.newStream(ECHO_PROTOCOL)
4242
const data = fromString('some data')
4343

4444
const values = await pipe(
@@ -58,7 +58,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
5858

5959
const values = await Promise.all(
6060
[conn1, conn2].map(async conn => {
61-
const { stream } = await conn1.newStream(ECHO_PROTOCOL)
61+
const stream = await conn1.newStream(ECHO_PROTOCOL)
6262
const data = fromString('some data ' + conn.id)
6363

6464
const values = await pipe(
@@ -91,7 +91,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
9191
it('dial on IPv6', async () => {
9292
const wd = await create()
9393
const conn = await wd.dial(REMOTE_MULTIADDR_IP6, { upgrader })
94-
const { stream } = await conn.newStream(['/echo/1.0.0'])
94+
const stream = await conn.newStream(['/echo/1.0.0'])
9595
const data = fromString('some data')
9696

9797
const values = await pipe(

test/listen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
120120
upgrader,
121121
handler: (conn) => {
122122
void conn.newStream([ECHO_PROTOCOL])
123-
.then(({ stream }) => {
123+
.then((stream) => {
124124
void pipe(stream, stream)
125125
})
126126
}
@@ -169,7 +169,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
169169
expect(conn.remoteAddr).to.exist()
170170

171171
void conn.newStream([ECHO_PROTOCOL])
172-
.then(({ stream }) => {
172+
.then((stream) => {
173173
void pipe(stream, stream)
174174
})
175175
},

0 commit comments

Comments
 (0)