Comparing version 2.4.0 to 2.4.1
@@ -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
972380
11975