check-internet-connected
Advanced tools
Comparing version
@@ -13,7 +13,7 @@ const url = require('url'); | ||
if (urlInfo.port === null) { | ||
if (urlInfo.protocol === 'ftp') { | ||
if (urlInfo.protocol === 'ftp:') { | ||
urlInfo.port = '21'; | ||
} else if (urlInfo.protocol === 'http') { | ||
} else if (urlInfo.protocol === 'http:') { | ||
urlInfo.port = '80'; | ||
} else if (urlInfo.protocol === 'https') { | ||
} else if (urlInfo.protocol === 'https:') { | ||
urlInfo.port = '443'; | ||
@@ -20,0 +20,0 @@ } |
{ | ||
"name": "check-internet-connected", | ||
"version": "2.0.1", | ||
"version": "2.0.3", | ||
"description": "Utility to check if internet is connected or not", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4104
-71.24%4
-55.56%