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

portfinder

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

portfinder - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

14

lib/portfinder.d.ts

@@ -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": {

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