File tree 8 files changed +5
-16
lines changed
8 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 20
20
"libp2p-bootstrap" : " ^0.12.1" ,
21
21
"libp2p-mplex" : " ^0.10.0" ,
22
22
"libp2p-noise" : " ^2.0.0" ,
23
- "libp2p-webrtc-star" : " ^0.20 .0" ,
23
+ "libp2p-webrtc-star" : " ^0.22 .0" ,
24
24
"libp2p-websockets" : " ^0.15.0"
25
25
},
26
26
"devDependencies" : {
Original file line number Diff line number Diff line change 24
24
"libp2p-bootstrap" : " ^0.12.1" ,
25
25
"libp2p-mplex" : " ^0.10.1" ,
26
26
"libp2p-noise" : " ^2.0.1" ,
27
- "libp2p-webrtc-direct" : " ^0.5 .0" ,
27
+ "libp2p-webrtc-direct" : " ^0.6 .0" ,
28
28
"peer-id" : " ^0.14.3"
29
29
},
30
30
"browser" : {
Original file line number Diff line number Diff line change 137
137
"@types/varint" : " ^6.0.0" ,
138
138
"abortable-iterator" : " ^3.0.0" ,
139
139
"aegir" : " ^33.0.0" ,
140
+ "buffer" : " ^6.0.3" ,
140
141
"chai-bytes" : " ^0.1.2" ,
141
142
"chai-string" : " ^1.5.0" ,
142
143
"delay" : " ^5.0.0" ,
157
158
"libp2p-mplex" : " ^0.10.1" ,
158
159
"libp2p-noise" : " ^2.0.0" ,
159
160
"libp2p-tcp" : " ^0.15.1" ,
160
- "libp2p-webrtc-star" : " ^0.21.2 " ,
161
+ "libp2p-webrtc-star" : " ^0.22.0 " ,
161
162
"libp2p-websockets" : " ^0.15.0" ,
162
163
"multihashes" : " ^4.0.2" ,
163
164
"nock" : " ^13.0.3" ,
167
168
"rimraf" : " ^3.0.2" ,
168
169
"sinon" : " ^10.0.0" ,
169
170
"uint8arrays" : " ^2.1.3" ,
170
- "url" : " ^0.11.0" ,
171
171
"util" : " ^0.12.3"
172
172
},
173
173
"contributors" : [
Original file line number Diff line number Diff line change 1
1
// @ts -nocheck
2
2
export const { Buffer } = require ( 'buffer' )
3
- export const url = require ( 'url' )
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
const mergeOptions = require ( 'merge-options' )
4
- // @ts -ignore no types in multiaddr
4
+ // @ts -ignore no types in multiaddr path
5
5
const { dnsaddrResolver } = require ( 'multiaddr/src/resolvers' )
6
6
7
7
const Constants = require ( './constants' )
Original file line number Diff line number Diff line change @@ -192,11 +192,6 @@ class Libp2p extends EventEmitter {
192
192
this . _discovery = new Map ( ) // Discovery service instances/references
193
193
194
194
// Create the Connection Manager
195
- // @ts -ignore deprecated, needs to be removed on breaking change
196
- if ( this . _options . connectionManager . minPeers ) {
197
- // @ts -ignore deprecated, needs to be removed on breaking change
198
- this . _options . connectionManager . minConnections = this . _options . connectionManager . minPeers
199
- }
200
195
this . connectionManager = new ConnectionManager ( this , {
201
196
autoDial : this . _config . peerDiscovery . autoDial ,
202
197
...this . _options . connectionManager
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const lp = require('it-length-prefixed')
10
10
const PeerId = require ( 'peer-id' )
11
11
const { UnexpectedPeerError, InvalidCryptoExchangeError } = require ( 'libp2p-interfaces/src/crypto/errors' )
12
12
13
- // @ts -ignore protons do not export types
14
13
const { Exchange, KeyType } = require ( './proto' )
15
14
const protocol = '/plaintext/2.0.0'
16
15
Original file line number Diff line number Diff line change @@ -72,17 +72,13 @@ class Stats extends EventEmitter {
72
72
73
73
/**
74
74
* Returns a clone of the current stats.
75
- *
76
- * @returns {Object }
77
75
*/
78
76
get snapshot ( ) {
79
77
return Object . assign ( { } , this . _stats )
80
78
}
81
79
82
80
/**
83
81
* Returns a clone of the internal movingAverages
84
- *
85
- * @returns {typeof Object.assign }
86
82
*/
87
83
get movingAverages ( ) {
88
84
return Object . assign ( { } , this . _movingAverages )
You can’t perform that action at this time.
0 commit comments