Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@libp2p/interface-internal

Package Overview
Dependencies
Maintainers
0
Versions
549
Alerts
File Explorer

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.1.1-0862522fe to 2.1.1-4a85eb033

15

dist/src/address-manager/index.d.ts

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

removeDNSMapping(domain: string): void;
/**
* Add a publicly routable address/port/protocol tuple that this node is
* reachable on. Where this node listens on a link-local (e.g. LAN) address
* with the same protocol for any transport, an additional listen address will
* be added with the IP and port replaced with this IP and port.
*
* It's possible to add a IPv6 address here and have it added to the address
* list, this is for the case when a router has an external IPv6 address with
* port forwarding configured, but it does IPv6 -> IPv4 NAT.
*/
addPublicAddressMapping(internalIp: string, internalPort: number, externalIp: string, externalPort?: number, protocol?: 'tcp' | 'udp'): void;
/**
* Remove a publicly routable address that this node is no longer reachable on
*/
removePublicAddressMapping(internalIp: string, internalPort: number, externalIp: string, externalPort?: number, protocol?: 'tcp' | 'udp'): void;
}
//# sourceMappingURL=index.d.ts.map

6

package.json
{
"name": "@libp2p/interface-internal",
"version": "2.1.1-0862522fe",
"version": "2.1.1-4a85eb033",
"description": "Interfaces implemented by internal libp2p components",

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

"dependencies": {
"@libp2p/interface": "2.2.1-0862522fe",
"@libp2p/peer-collections": "6.0.12-0862522fe",
"@libp2p/interface": "2.2.1-4a85eb033",
"@libp2p/peer-collections": "6.0.12-4a85eb033",
"@multiformats/multiaddr": "^12.2.3",

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

@@ -56,2 +56,19 @@ import type { Multiaddr } from '@multiformats/multiaddr'

removeDNSMapping(domain: string): void
/**
* Add a publicly routable address/port/protocol tuple that this node is
* reachable on. Where this node listens on a link-local (e.g. LAN) address
* with the same protocol for any transport, an additional listen address will
* be added with the IP and port replaced with this IP and port.
*
* It's possible to add a IPv6 address here and have it added to the address
* list, this is for the case when a router has an external IPv6 address with
* port forwarding configured, but it does IPv6 -> IPv4 NAT.
*/
addPublicAddressMapping (internalIp: string, internalPort: number, externalIp: string, externalPort?: number, protocol?: 'tcp' | 'udp'): void
/**
* Remove a publicly routable address that this node is no longer reachable on
*/
removePublicAddressMapping (internalIp: string, internalPort: number, externalIp: string, externalPort?: number, protocol?: 'tcp' | 'udp'): void
}

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