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

fix: update all deps #184

Merged
merged 1 commit into from
Aug 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@
"release": "aegir release"
},
"dependencies": {
"@libp2p/interface-transport": "^1.0.0",
"@libp2p/interfaces": "^3.0.2",
"@libp2p/interface-transport": "^1.0.3",
"@libp2p/interfaces": "^3.0.3",
"@libp2p/logger": "^2.0.0",
"@libp2p/utils": "^2.0.0",
"@libp2p/utils": "^3.0.1",
"@libp2p/webrtc-peer": "^2.0.0",
"@multiformats/mafmt": "^11.0.2",
"@multiformats/multiaddr": "^10.1.7",
Expand All @@ -152,13 +152,15 @@
"wherearewe": "^1.0.1"
},
"devDependencies": {
"@libp2p/interface-mocks": "^2.0.1",
"@libp2p/interface-transport-compliance-tests": "^2.0.0",
"@libp2p/interface-mocks": "^4.0.1",
"@libp2p/interface-transport-compliance-tests": "^2.0.5",
"@mapbox/node-pre-gyp": "^1.0.8",
"aegir": "^37.2.0",
"it-all": "^1.0.6",
"it-pipe": "^2.0.3",
"it-stream-types": "^1.0.4",
"multiaddr": "^10.0.0",
"uint8arraylist": "^2.3.2",
"wrtc": "^0.4.6"
},
"browser": {
Expand Down
12 changes: 11 additions & 1 deletion test/dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,20 @@ import { fromString } from 'uint8arrays/from-string'
import { mockRegistrar, mockUpgrader } from '@libp2p/interface-mocks'
import type { WebRTCDirect } from '../src/index.js'
import type { Upgrader } from '@libp2p/interface-transport'
import type { Uint8ArrayList } from 'uint8arraylist'
import type { Source } from 'it-stream-types'

// this node is started in aegir.cjs before the test run
const REMOTE_MULTIADDR_IP4 = multiaddr('/ip4/127.0.0.1/tcp/12345/http/p2p-webrtc-direct')
const REMOTE_MULTIADDR_IP6 = multiaddr('/ip6/::1/tcp/12346/http/p2p-webrtc-direct')

const ECHO_PROTOCOL = '/echo/1.0.0'

async function * toBytes (source: Source<Uint8ArrayList>) {
for await (const list of source) {
yield * list
}
}

export default (create: () => Promise<WebRTCDirect>) => {
describe('dial', function () {
this.timeout(20 * 1000)
Expand Down Expand Up @@ -44,6 +51,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
const values = await pipe(
[data],
stream,
toBytes,
async (source) => await all(source)
)

Expand All @@ -64,6 +72,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
const values = await pipe(
[data],
stream,
toBytes,
async (source) => await all(source)
)

Expand Down Expand Up @@ -97,6 +106,7 @@ export default (create: () => Promise<WebRTCDirect>) => {
const values = await pipe(
[data],
stream,
toBytes,
async (source) => await all(source)
)

Expand Down