Comparing version 2.5.0 to 2.5.1-66c3ec5e1
@@ -64,2 +64,3 @@ import { isLinkLocal } from '@libp2p/utils/multiaddr/is-link-local'; | ||
metadata.verified = true; | ||
metadata.expires = Date.now() + ttl; | ||
metadata.lastVerified = Date.now(); | ||
@@ -66,0 +67,0 @@ this.log('marking observed address %a as verified', addrString); |
@@ -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-66c3ec5e1"; | ||
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-66c3ec5e1'; | ||
export const name = 'js-libp2p'; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "libp2p", | ||
"version": "2.5.0", | ||
"version": "2.5.1-66c3ec5e1", | ||
"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-66c3ec5e1", | ||
"@libp2p/interface": "2.4.1-66c3ec5e1", | ||
"@libp2p/interface-internal": "2.2.3-66c3ec5e1", | ||
"@libp2p/logger": "5.1.7-66c3ec5e1", | ||
"@libp2p/multistream-select": "6.0.12-66c3ec5e1", | ||
"@libp2p/peer-collections": "6.0.15-66c3ec5e1", | ||
"@libp2p/peer-id": "5.0.11-66c3ec5e1", | ||
"@libp2p/peer-store": "11.0.15-66c3ec5e1", | ||
"@libp2p/utils": "6.4.0-66c3ec5e1", | ||
"@multiformats/dns": "^1.0.6", | ||
@@ -101,0 +101,0 @@ "@multiformats/multiaddr": "^12.3.3", |
@@ -11,6 +11,35 @@ <h1 align="center"> | ||
[![Matrix](https://img.shields.io/badge/matrix-%23libp2p--implementers%3Aipfs.io-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p) | ||
[![Discord](https://img.shields.io/discord/806902334369824788?color=blueviolet\&label=discord\&style=flat-square)](https://discord.com/invite/Ae4TbahHaT) | ||
[![Discord](https://img.shields.io/discord/806902334369824788?color=blueviolet&label=discord&style=flat-square)](https://discord.com/invite/Ae4TbahHaT) | ||
[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p) | ||
[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain) | ||
# About | ||
<!-- | ||
!IMPORTANT! | ||
Everything in this README between "# About" and "# Install" is automatically | ||
generated and will be overwritten the next time the doc generator is run. | ||
To make changes to this section, please update the @packageDocumentation section | ||
of src/index.js or src/index.ts | ||
To experiment with formatting, please run "npm run docs" from the root of this | ||
repo and examine the changes made. | ||
--> | ||
Use the `createLibp2p` function to create a libp2p node. | ||
## Example | ||
```typescript | ||
import { createLibp2p } from 'libp2p' | ||
const node = await createLibp2p({ | ||
// ...other options | ||
}) | ||
``` | ||
# Background | ||
@@ -17,0 +46,0 @@ |
@@ -87,2 +87,3 @@ import { isLinkLocal } from '@libp2p/utils/multiaddr/is-link-local' | ||
metadata.verified = true | ||
metadata.expires = Date.now() + ttl | ||
metadata.lastVerified = Date.now() | ||
@@ -89,0 +90,0 @@ |
@@ -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-66c3ec5e1' | ||
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
978226
191
158
12110
1
+ Added@libp2p/crypto@5.0.10-66c3ec5e1(transitive)
+ Added@libp2p/interface@2.4.1-66c3ec5e1(transitive)
+ Added@libp2p/interface-internal@2.2.3-66c3ec5e1(transitive)
+ Added@libp2p/logger@5.1.7-66c3ec5e1(transitive)
+ Added@libp2p/multistream-select@6.0.12-66c3ec5e1(transitive)
+ Added@libp2p/peer-collections@6.0.15-66c3ec5e1(transitive)
+ Added@libp2p/peer-id@5.0.11-66c3ec5e1(transitive)
+ Added@libp2p/peer-record@8.0.15-66c3ec5e1(transitive)
+ Added@libp2p/peer-store@11.0.15-66c3ec5e1(transitive)
+ Added@libp2p/utils@6.4.0-66c3ec5e1(transitive)
+ Added@types/murmurhash3js-revisited@3.0.3(transitive)
+ Addedmurmurhash3js-revisited@3.0.0(transitive)
- Removed@libp2p/crypto@5.0.11(transitive)
- Removed@libp2p/interface-internal@2.3.0(transitive)
- Removed@libp2p/multistream-select@6.0.13(transitive)
- Removed@libp2p/peer-collections@6.0.17(transitive)
- Removed@libp2p/peer-id@5.0.12(transitive)
- Removed@libp2p/peer-record@8.0.17(transitive)
- Removed@libp2p/peer-store@11.0.17(transitive)
- Removed@libp2p/utils@6.5.1(transitive)