Socket
Socket
Sign inDemoInstall

@types/tcp-port-used

Package Overview
Dependencies
0
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

8

tcp-port-used/index.d.ts

@@ -8,6 +8,6 @@ // Type definitions for tcp-port-used 1.0

port: number;
host: string;
status: boolean;
retryTimeMs: number;
timeOutMs: number;
host?: string;
status?: boolean;
retryTimeMs?: number;
timeOutMs?: number;
}

@@ -14,0 +14,0 @@

{
"name": "@types/tcp-port-used",
"version": "1.0.0",
"version": "1.0.1",
"description": "TypeScript definitions for tcp-port-used",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used",
"license": "MIT",

@@ -14,11 +15,12 @@ "contributors": [

"main": "",
"types": "",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/tcp-port-used"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "d148d1349d31b1d96686cbb64adc8e6d15541e7f21cdb39317dd5785730b4296",
"typeScriptVersion": "2.0"
"typesPublisherContentHash": "a3e5fb541487a7c243746feac92497eaa1b2dbda4d7219d414ee840ccc3628ba",
"typeScriptVersion": "3.9"
}

@@ -8,6 +8,34 @@ # Installation

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/tcp-port-used/index.d.ts)
````ts
// Type definitions for tcp-port-used 1.0
// Project: https://github.com/stdarg/tcp-port-used
// Definitions by: Gaute Johansen <https://github.com/gautejohan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
Additional Details
* Last updated: Tue, 16 Oct 2018 16:25:04 GMT
export interface TcpPortUsedOptions {
port: number;
host?: string;
status?: boolean;
retryTimeMs?: number;
timeOutMs?: number;
}
export function check(port: number | TcpPortUsedOptions, host?: string): Promise<boolean>;
export function waitForStatus(port: number | TcpPortUsedOptions, host?: string, inUse?: boolean, retryTimeMs?: number, timeOutMs?: number): Promise<void>;
export function waitUntilFree(port: number | TcpPortUsedOptions, retryTimeMs?: number, timeOutMs?: number): Promise<void>;
export function waitUntilFreeOnHost(port: number | TcpPortUsedOptions, host?: string, retryTimeMs?: number, timeOutMs?: number): Promise<void>;
export function waitUntilUsed(port: number | TcpPortUsedOptions, retryTimeMs?: number, timeOutMs?: number): Promise<void>;
export function waitUntilUsedOnHost(port: number | TcpPortUsedOptions, host?: string, retryTimeMs?: number, timeOutMs?: number): Promise<void>;
````
### Additional Details
* Last updated: Wed, 16 Mar 2022 00:31:47 GMT
* Dependencies: none

@@ -17,2 +45,2 @@ * Global values: none

# Credits
These definitions were written by Gaute Johansen <https://github.com/gautejohan>.
These definitions were written by [Gaute Johansen](https://github.com/gautejohan).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc