🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

check-internet-connected

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-internet-connected - npm Package Compare versions

Comparing version

to
2.0.3

6

index.js

@@ -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",