This repository was archived by the owner on Apr 24, 2023. It is now read-only.
File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 66
66
"class-is" : " ^1.1.0" ,
67
67
"debug" : " ^4.1.1" ,
68
68
"err-code" : " ^2.0.0" ,
69
+ "ipfs-utils" : " ^2.3.0" ,
69
70
"it-pipe" : " ^1.0.1" ,
70
71
"libp2p-utils" : " ^0.1.0" ,
71
72
"mafmt" : " ^7.0.1" ,
72
73
"menoetius" : " 0.0.2" ,
73
74
"minimist" : " ^1.2.0" ,
74
75
"multiaddr" : " ^7.1.0" ,
75
76
"p-defer" : " ^3.0.0" ,
76
- "peer-id" : " ~0.13.2" ,
77
- "peer-info" : " ~0.17.0" ,
77
+ "peer-id" : " ~0.13.12" ,
78
78
"prom-client" : " ^12.0.0" ,
79
79
"simple-peer" : " ^9.6.0" ,
80
80
"socket.io" : " ^2.3.0" ,
81
81
"socket.io-client" : " ^2.3.0" ,
82
82
"stream-to-it" : " ^0.2.0" ,
83
- "streaming-iterables" : " ^4.1.0" ,
84
- "webrtcsupport" : " github:ipfs/webrtcsupport"
83
+ "streaming-iterables" : " ^4.1.0"
85
84
},
86
85
"contributors" : [
87
86
" David Dias <daviddias.p@gmail.com>" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const withIs = require('class-is')
10
10
11
11
const { AbortError } = require ( 'abortable-iterator' )
12
12
const SimplePeer = require ( 'simple-peer' )
13
- const webrtcSupport = require ( 'webrtcsupport ' )
13
+ const { supportsWebRTC : webrtcSupport } = require ( 'ipfs-utils/src/supports ' )
14
14
15
15
const multiaddr = require ( 'multiaddr' )
16
16
const mafmt = require ( 'mafmt' )
@@ -194,7 +194,7 @@ class WebRTCStar {
194
194
* @returns {Listener } A WebrtcStar listener
195
195
*/
196
196
createListener ( options = { } , handler ) {
197
- if ( ! webrtcSupport . support && ! this . wrtc ) {
197
+ if ( ! webrtcSupport && ! this . wrtc ) {
198
198
throw errcode ( new Error ( 'no WebRTC support' ) , 'ERR_NO_WEBRTC_SUPPORT' )
199
199
}
200
200
You can’t perform that action at this time.
0 commit comments