Socket
Socket
Sign inDemoInstall

check-internet-connected

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.1.0

7

index.js

@@ -18,5 +18,6 @@ const url = require('url');

let result6 = null;
let promise4 = resolve4(hostname).timeout(timeout);
let promise6 = resolve6(hostname).timeout(timeout);
try {
result4 = await resolve4(hostname).timeout(timeout);
result4 = await promise4;
} catch (ex) {

@@ -27,3 +28,3 @@ lastErrorV4 = ex;

try {
result6 = await resolve6(hostname).timeout(timeout);
result6 = await promise6;
} catch (ex) {

@@ -30,0 +31,0 @@ /* swallow up v6 errors for now */

{
"name": "check-internet-connected",
"version": "1.0.0",
"version": "1.1.0",
"description": "Utility to check if internet is connected or not",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc