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.29 to 1.0.30

6

lib/portfinder.d.ts

@@ -9,3 +9,3 @@ /**

interface PortFinderOptions{
interface PortFinderOptions {
/**

@@ -40,3 +40,3 @@ * Host to find available port on.

*/
export setBasePort(port: number);
export function setBasePort(port: number);

@@ -51,3 +51,3 @@ /**

*/
export setHighestPort(port: number);
export function setHighestPort(port: number);

@@ -54,0 +54,0 @@ /**

@@ -145,15 +145,5 @@ /*

if (options.host) {
var hasUserGivenHost;
for (var i = 0; i < exports._defaultHosts.length; i++) {
if (exports._defaultHosts[i] === options.host) {
hasUserGivenHost = true;
break;
}
if (exports._defaultHosts.indexOf(options.host) !== -1) {
exports._defaultHosts.push(options.host)
}
if (!hasUserGivenHost) {
exports._defaultHosts.push(options.host);
}
}

@@ -160,0 +150,0 @@

{
"name": "portfinder",
"description": "A simple tool to find an open port on the current machine",
"version": "1.0.29",
"version": "1.0.30",
"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