Comparing version 6.1.1 to 6.1.2
@@ -163,7 +163,7 @@ import net from 'node:net'; | ||
if (to < minPort || to > maxPort + 1) { | ||
throw new RangeError(`'to' must be between ${minPort} and ${maxPort + 1}`); | ||
if (to < minPort || to > maxPort) { | ||
throw new RangeError(`'to' must be between ${minPort} and ${maxPort}`); | ||
} | ||
if (to < from) { | ||
if (from > to) { | ||
throw new RangeError('`to` must be greater than or equal to `from`'); | ||
@@ -170,0 +170,0 @@ } |
{ | ||
"name": "get-port", | ||
"version": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Get an available port", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
11144