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

@types/tcp-ping

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/tcp-ping - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

10

tcp-ping/index.d.ts

@@ -8,6 +8,6 @@ // Type definitions for tcp-ping 0.1

export interface Options {
address?: string;
port?: number;
attempts?: number;
timeout?: number;
address?: string | undefined;
port?: number | undefined;
attempts?: number | undefined;
timeout?: number | undefined;
}

@@ -18,3 +18,3 @@

time: number | undefined;
err?: Error;
err?: Error | undefined;
}

@@ -21,0 +21,0 @@

{
"name": "@types/tcp-ping",
"version": "0.1.2",
"version": "0.1.3",
"description": "TypeScript definitions for tcp-ping",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping",
"license": "MIT",

@@ -27,4 +28,4 @@ "contributors": [

"dependencies": {},
"typesPublisherContentHash": "9a4a87a1bd68e9fa5308d6195c490f447de567e8ec7a99d1d974397ab50b3c98",
"typeScriptVersion": "3.5"
"typesPublisherContentHash": "42789857b6cb602ee8fcd07e9b2f46cbf00ea96ca9ca2a738f45cd93a1fa5de2",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,40 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-ping/index.d.ts)
````ts
// Type definitions for tcp-ping 0.1
// Project: https://github.com/wesolyromek/tcp-ping
// Definitions by: JUNG YONG WOO <https://github.com/stegano>
// rymate1234 <https://github.com/rymate1234>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Options {
address?: string | undefined;
port?: number | undefined;
attempts?: number | undefined;
timeout?: number | undefined;
}
export interface Results {
seq: number;
time: number | undefined;
err?: Error | undefined;
}
export interface Result {
address: string;
port: number;
attempts: number;
avg: number;
max: number;
min: number;
results: Results[];
}
export function ping(options: Options, callback: (error: Error, result: Result) => void): void;
export function probe(address: string, port: number, callback: (error: Error, result: boolean) => void): void;
````
### Additional Details
* Last updated: Mon, 24 May 2021 19:31:42 GMT
* Last updated: Fri, 02 Jul 2021 21:32:13 GMT
* Dependencies: none

@@ -14,0 +49,0 @@ * Global values: none

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