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

libp2p

Package Overview
Dependencies
Maintainers
2
Versions
1032
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

8

dist/src/address-manager/index.js

@@ -149,12 +149,12 @@ /* eslint-disable complexity */

let startingConfidence = true;
if (this.observed.has(addr)) {
if (options?.type === 'observed' || this.observed.has(addr)) {
startingConfidence = this.observed.confirm(addr, options?.ttl ?? this.addressVerificationTTL);
}
if (this.transportAddresses.has(addr)) {
if (options?.type === 'transport' || this.transportAddresses.has(addr)) {
startingConfidence = this.transportAddresses.confirm(addr, options?.ttl ?? this.addressVerificationTTL);
}
if (this.dnsMappings.has(addr)) {
if (options?.type === 'dns-mapping' || this.dnsMappings.has(addr)) {
startingConfidence = this.dnsMappings.confirm(addr, options?.ttl ?? this.addressVerificationTTL);
}
if (this.ipMappings.has(addr)) {
if (options?.type === 'ip-mapping' || this.ipMappings.has(addr)) {
startingConfidence = this.ipMappings.confirm(addr, options?.ttl ?? this.addressVerificationTTL);

@@ -161,0 +161,0 @@ }

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

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

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

export const version = '2.4.0';
export const version = '2.4.1';
export const name = 'js-libp2p';
//# sourceMappingURL=version.js.map
{
"name": "libp2p",
"version": "2.4.0",
"version": "2.4.1",
"description": "JavaScript implementation of libp2p, a modular peer to peer network stack",

@@ -92,3 +92,3 @@ "license": "Apache-2.0 OR MIT",

"@libp2p/interface": "^2.3.0",
"@libp2p/interface-internal": "^2.2.0",
"@libp2p/interface-internal": "^2.2.1",
"@libp2p/logger": "^5.1.5",

@@ -95,0 +95,0 @@ "@libp2p/multistream-select": "^6.0.10",

@@ -252,15 +252,15 @@ /* eslint-disable complexity */

if (this.observed.has(addr)) {
if (options?.type === 'observed' || this.observed.has(addr)) {
startingConfidence = this.observed.confirm(addr, options?.ttl ?? this.addressVerificationTTL)
}
if (this.transportAddresses.has(addr)) {
if (options?.type === 'transport' || this.transportAddresses.has(addr)) {
startingConfidence = this.transportAddresses.confirm(addr, options?.ttl ?? this.addressVerificationTTL)
}
if (this.dnsMappings.has(addr)) {
if (options?.type === 'dns-mapping' || this.dnsMappings.has(addr)) {
startingConfidence = this.dnsMappings.confirm(addr, options?.ttl ?? this.addressVerificationTTL)
}
if (this.ipMappings.has(addr)) {
if (options?.type === 'ip-mapping' || this.ipMappings.has(addr)) {
startingConfidence = this.ipMappings.confirm(addr, options?.ttl ?? this.addressVerificationTTL)

@@ -267,0 +267,0 @@ }

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

export const version = '2.4.0'
export const version = '2.4.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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc