detect-port
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -26,6 +26,6 @@ /* ================================================================ | ||
const port = args[0]; | ||
const port = parseInt(args[0], 10); | ||
if (typeof port !== 'number') { | ||
reject(`wrong type of arguments with: ${port}`); | ||
if (isNaN(port)) { | ||
reject(`wrong type of arguments with: '${args[0]}'`); | ||
} | ||
@@ -32,0 +32,0 @@ |
{ | ||
"name": "detect-port", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "detect available port", | ||
@@ -26,3 +26,4 @@ "keywords": [ | ||
"pre-commit": "^1.1.3", | ||
"should": "~6.0.3" | ||
"should": "~6.0.3", | ||
"startserver": "^1.3.1" | ||
}, | ||
@@ -29,0 +30,0 @@ "scripts": { |
31169
8