Comparing version 2.5.0 to 2.5.1
@@ -128,3 +128,8 @@ import { InvalidMultiaddrError, TooManyInboundProtocolStreamsError, TooManyOutboundProtocolStreamsError, LimitedConnectionError, setMaxListeners, InvalidPeerIdError } from '@libp2p/interface'; | ||
} | ||
return await this._performUpgrade(maConn, 'outbound', opts); | ||
let direction = 'outbound'; | ||
// act as the multistream-select server if we are not to be the initiator | ||
if (opts.initiator === false) { | ||
direction = 'inbound'; | ||
} | ||
return await this._performUpgrade(maConn, direction, opts); | ||
} | ||
@@ -131,0 +136,0 @@ catch (err) { |
@@ -1,3 +0,3 @@ | ||
export declare const version = "2.5.0"; | ||
export declare const version = "2.5.1"; | ||
export declare const name = "js-libp2p"; | ||
//# sourceMappingURL=version.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export const version = '2.5.0'; | ||
export const version = '2.5.1'; | ||
export const name = 'js-libp2p'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "libp2p", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack", | ||
@@ -90,11 +90,11 @@ "license": "Apache-2.0 OR MIT", | ||
"@chainsafe/netmask": "^2.0.0", | ||
"@libp2p/crypto": "^5.0.9", | ||
"@libp2p/interface": "^2.4.0", | ||
"@libp2p/interface-internal": "^2.2.2", | ||
"@libp2p/logger": "^5.1.6", | ||
"@libp2p/multistream-select": "^6.0.11", | ||
"@libp2p/peer-collections": "^6.0.14", | ||
"@libp2p/peer-id": "^5.0.10", | ||
"@libp2p/peer-store": "^11.0.14", | ||
"@libp2p/utils": "^6.3.1", | ||
"@libp2p/crypto": "^5.0.10", | ||
"@libp2p/interface": "^2.4.1", | ||
"@libp2p/interface-internal": "^2.2.3", | ||
"@libp2p/logger": "^5.1.7", | ||
"@libp2p/multistream-select": "^6.0.12", | ||
"@libp2p/peer-collections": "^6.0.15", | ||
"@libp2p/peer-id": "^5.0.11", | ||
"@libp2p/peer-store": "^11.0.15", | ||
"@libp2p/utils": "^6.4.0", | ||
"@multiformats/dns": "^1.0.6", | ||
@@ -101,0 +101,0 @@ "@multiformats/multiaddr": "^12.3.3", |
@@ -231,3 +231,10 @@ import { InvalidMultiaddrError, TooManyInboundProtocolStreamsError, TooManyOutboundProtocolStreamsError, LimitedConnectionError, setMaxListeners, InvalidPeerIdError } from '@libp2p/interface' | ||
return await this._performUpgrade(maConn, 'outbound', opts) | ||
let direction: 'inbound' | 'outbound' = 'outbound' | ||
// act as the multistream-select server if we are not to be the initiator | ||
if (opts.initiator === false) { | ||
direction = 'inbound' | ||
} | ||
return await this._performUpgrade(maConn, direction, opts) | ||
} catch (err) { | ||
@@ -234,0 +241,0 @@ this.metrics.errors?.increment({ |
@@ -1,2 +0,2 @@ | ||
export const version = '2.5.0' | ||
export const version = '2.5.1' | ||
export const name = 'js-libp2p' |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
979031
12126
Updated@libp2p/crypto@^5.0.10
Updated@libp2p/interface@^2.4.1
Updated@libp2p/logger@^5.1.7
Updated@libp2p/peer-id@^5.0.11
Updated@libp2p/peer-store@^11.0.15
Updated@libp2p/utils@^6.4.0