@libp2p/tcp
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54554
802