This repository was archived by the owner on Aug 29, 2023. It is now read-only.
File tree 7 files changed +215
-124
lines changed
7 files changed +215
-124
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,23 @@ stages:
9
9
node_js :
10
10
- ' 10'
11
11
12
- os :
13
- - linux
14
- - osx
15
-
16
12
script : npx nyc -s npm run test:node -- --bail
17
13
after_success : npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
18
14
19
15
jobs :
20
16
include :
17
+ - os : linux
18
+ sudo : false
19
+ before_script : sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6'
20
+
21
21
- os : windows
22
22
filter_secrets : false
23
23
cache : false
24
24
25
+ - os : osx
26
+
25
27
- stage : check
28
+ os : linux
26
29
script :
27
30
- npx aegir build --bundlesize
28
31
- npx aegir commitlint --travis
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ const multiaddr = require('multiaddr')
44
44
const pipe = require (' it-pipe' )
45
45
const { collect } = require (' streaming-iterables' )
46
46
47
- const mh = multiaddr (' /ip4/127.0.0.1/tcp/9090' )
47
+ const addr = multiaddr (' /ip4/127.0.0.1/tcp/9090' )
48
48
49
49
const tcp = new TCP ()
50
50
@@ -56,10 +56,10 @@ const listener = tcp.createListener((socket) => {
56
56
)
57
57
})
58
58
59
- await listener .listen (mh )
59
+ await listener .listen ([addr] )
60
60
console .log (' listening' )
61
61
62
- const socket = await tcp .dial (mh )
62
+ const socket = await tcp .dial (addr )
63
63
const values = await pipe (
64
64
socket,
65
65
collect
Original file line number Diff line number Diff line change 40
40
"aegir" : " ^18.1.1" ,
41
41
"chai" : " ^4.1.2" ,
42
42
"dirty-chai" : " ^2.0.1" ,
43
- "interface-transport" : " ~0.3.6" ,
44
43
"lodash.isfunction" : " ^3.0.9" ,
45
44
"pull-stream" : " ^3.6.9" ,
46
45
"sinon" : " ^7.3.1"
47
46
},
48
47
"dependencies" : {
49
48
"abort-controller" : " ^3.0.0" ,
50
49
"class-is" : " ^1.1.0" ,
51
- "debug" : " ^3 .1.0 " ,
50
+ "debug" : " ^4 .1.1 " ,
52
51
"err-code" : " ^1.1.2" ,
53
52
"interface-connection" : " ~0.3.3" ,
54
- "interface-transport" : " libp2p/interface-transport#feat/async-await " ,
53
+ "interface-transport" : " ~0.4.0 " ,
55
54
"ip-address" : " ^5.8.9" ,
55
+ "it-pipe" : " ^1.0.0" ,
56
56
"lodash.includes" : " ^4.3.0" ,
57
57
"lodash.isfunction" : " ^3.0.9" ,
58
- "mafmt" : " ^6.0.2" ,
59
- "multiaddr" : " ^5.0.0"
58
+ "mafmt" : " ^6.0.7" ,
59
+ "multiaddr" : " ^6.0.6" ,
60
+ "streaming-iterables" : " ^4.1.0"
60
61
},
61
62
"contributors" : [
62
63
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ class TCP {
78
78
}
79
79
80
80
handler = handler || noop
81
- return createListener ( handler )
81
+ return createListener ( options , handler )
82
82
}
83
83
84
84
filter ( multiaddrs ) {
You can’t perform that action at this time.
0 commit comments