New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

libp2p

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2-285dab7d7

@@ -267,3 +267,3 @@ /* eslint-disable max-depth */

try {
const peerInfo = await this.components.peerRouting.findPeer(peerId);
const peerInfo = await this.components.peerRouting.findPeer(peerId, options);
this.log('found multiaddrs for %p in the peer routing', peerId, addrs.map(({ multiaddr }) => multiaddr.toString()));

@@ -270,0 +270,0 @@ addrs.push(...peerInfo.multiaddrs.map(multiaddr => ({

@@ -1,3 +0,3 @@

export declare const version = "2.4.1";
export declare const version = "2.4.2-285dab7d7";
export declare const name = "js-libp2p";
//# sourceMappingURL=version.d.ts.map

@@ -1,3 +0,3 @@

export const version = '2.4.1';
export const version = '2.4.2-285dab7d7';
export const name = 'js-libp2p';
//# sourceMappingURL=version.js.map
{
"name": "libp2p",
"version": "2.4.1",
"version": "2.4.2-285dab7d7",
"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.8",
"@libp2p/interface": "^2.3.0",
"@libp2p/interface-internal": "^2.2.1",
"@libp2p/logger": "^5.1.5",
"@libp2p/multistream-select": "^6.0.10",
"@libp2p/peer-collections": "^6.0.13",
"@libp2p/peer-id": "^5.0.9",
"@libp2p/peer-store": "^11.0.13",
"@libp2p/utils": "^6.3.0",
"@libp2p/crypto": "5.0.8-285dab7d7",
"@libp2p/interface": "2.3.0-285dab7d7",
"@libp2p/interface-internal": "2.2.1-285dab7d7",
"@libp2p/logger": "5.1.5-285dab7d7",
"@libp2p/multistream-select": "6.0.10-285dab7d7",
"@libp2p/peer-collections": "6.0.13-285dab7d7",
"@libp2p/peer-id": "5.0.9-285dab7d7",
"@libp2p/peer-store": "11.0.13-285dab7d7",
"@libp2p/utils": "6.3.0-285dab7d7",
"@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 @@

@@ -352,3 +352,3 @@ /* eslint-disable max-depth */

try {
const peerInfo = await this.components.peerRouting.findPeer(peerId)
const peerInfo = await this.components.peerRouting.findPeer(peerId, options)

@@ -355,0 +355,0 @@ this.log('found multiaddrs for %p in the peer routing', peerId, addrs.map(({ multiaddr }) => multiaddr.toString()))

@@ -1,2 +0,2 @@

export const version = '2.4.1'
export const version = '2.4.2-285dab7d7'
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