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

@libp2p/tcp

Package Overview
Dependencies
Maintainers
4
Versions
576
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libp2p/tcp - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

3

dist/src/index.d.ts

@@ -6,6 +6,7 @@ /// <reference types="node" />

import type { AbortOptions } from '@libp2p/interfaces';
import type { Connection } from '@libp2p/interface-connection';
export declare class TCP implements Transport {
get [symbol](): true;
get [Symbol.toStringTag](): string;
dial(ma: Multiaddr, options: DialOptions): Promise<import("@libp2p/interface-connection/dist/src").Connection>;
dial(ma: Multiaddr, options: DialOptions): Promise<Connection>;
_connect(ma: Multiaddr, options?: AbortOptions): Promise<net.Socket>;

@@ -12,0 +13,0 @@ /**

{
"name": "@libp2p/tcp",
"version": "3.0.0",
"version": "3.0.1",
"description": "Node.js implementation of the TCP module that libp2p uses, which implements the interface-connection and interface-transport interfaces",

@@ -5,0 +5,0 @@ "license": "Apache-2.0 OR MIT",

@@ -14,2 +14,3 @@ import net from 'net'

import type { AbortOptions } from '@libp2p/interfaces'
import type { Connection } from '@libp2p/interface-connection'

@@ -27,3 +28,3 @@ const log = logger('libp2p:tcp')

async dial (ma: Multiaddr, options: DialOptions) {
async dial (ma: Multiaddr, options: DialOptions): Promise<Connection> {
const socket = await this._connect(ma, options)

@@ -30,0 +31,0 @@

Sorry, the diff of this file is not supported yet

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