portfinder
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -7,13 +7,13 @@ /** | ||
declare type PortfinderHandler = (err: Error, port: number) => void; | ||
type PortfinderCallback = (err: Error, port: number) => void; | ||
declare interface PortFinderOptions{ | ||
interface PortFinderOptions{ | ||
/** | ||
* Host to find available port on. | ||
*/ | ||
host: string; | ||
host?: string; | ||
/** | ||
* Minimum port (takes precedence over `basePort`). | ||
*/ | ||
port: number; | ||
port?: number; | ||
} | ||
@@ -24,3 +24,3 @@ | ||
*/ | ||
export declare let basePort: number; | ||
export let basePort: number; | ||
@@ -30,3 +30,3 @@ /** | ||
*/ | ||
export declare function getPort(options: PortFinderOptions, callback: PortfinderHandler): void; | ||
export declare function getPort(callback: PortfinderHandler): void; | ||
export function getPort(callback: PortfinderCallback): void; | ||
export function getPort(options: PortFinderOptions, callback: PortfinderCallback): void; |
{ | ||
"name": "portfinder", | ||
"description": "A simple tool to find an open port on the current machine", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"author": "Charlie Robbins <charlie.robbins@gmail.com>", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
15842