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

@libp2p/interface-internal

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/interface-internal - npm Package Compare versions

Comparing version 2.0.10 to 2.1.0-656db81cf

@@ -36,3 +36,14 @@ import type { Multiaddr } from '@multiformats/multiaddr';

getAddresses(): Multiaddr[];
/**
* Adds a mapping between one or more IP addresses and a domain name - when
* `getAddresses` is invoked, where the IP addresses are present in a
* multiaddr, an additional multiaddr will be added with `ip4` and `ip6`
* tuples replaced with `dns4` and `dns6 ones respectively.
*/
addDNSMapping(domain: string, ipAddresses: string[]): void;
/**
* Remove a mapping previously added with `addDNSMapping`.
*/
removeDNSMapping(domain: string): void;
}
//# sourceMappingURL=index.d.ts.map
{
"name": "@libp2p/interface-internal",
"version": "2.0.10",
"version": "2.1.0-656db81cf",
"description": "Interfaces implemented by internal libp2p components",

@@ -51,4 +51,4 @@ "license": "Apache-2.0 OR MIT",

"dependencies": {
"@libp2p/interface": "^2.2.0",
"@libp2p/peer-collections": "^6.0.10",
"@libp2p/interface": "2.2.0-656db81cf",
"@libp2p/peer-collections": "6.0.11-656db81cf",
"@multiformats/multiaddr": "^12.2.3",

@@ -55,0 +55,0 @@ "progress-events": "^1.0.0",

@@ -43,2 +43,15 @@ import type { Multiaddr } from '@multiformats/multiaddr'

getAddresses(): Multiaddr[]
/**
* Adds a mapping between one or more IP addresses and a domain name - when
* `getAddresses` is invoked, where the IP addresses are present in a
* multiaddr, an additional multiaddr will be added with `ip4` and `ip6`
* tuples replaced with `dns4` and `dns6 ones respectively.
*/
addDNSMapping(domain: string, ipAddresses: string[]): void
/**
* Remove a mapping previously added with `addDNSMapping`.
*/
removeDNSMapping(domain: string): void
}

Sorry, the diff of this file is not supported yet