check-internet-connected
Advanced tools
Comparing version
@@ -33,2 +33,3 @@ const url = require('url'); | ||
client.on('error', (err) => { | ||
client.destroy(); | ||
reject(err); | ||
@@ -46,2 +47,3 @@ }); | ||
} catch (ex) { | ||
console.log(ex); | ||
if (i === (retries - 1)) { | ||
@@ -48,0 +50,0 @@ throw ex; |
{ | ||
"name": "check-internet-connected", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Utility to check if internet is connected or not", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
50
4.17%14271
-2.63%