portfinder
Advanced tools
Comparing version 1.0.29 to 1.0.30
@@ -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": { |
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
19907
501