Socket
Socket
Sign inDemoInstall

is-reachable

Package Overview
Dependencies
23
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

9

browser.js

@@ -5,2 +5,3 @@ /* eslint-env browser */

const pAny = require('p-any');
const urlParseLax = require('url-parse-lax');

@@ -12,8 +13,14 @@ module.exports = hosts => {

x = urlParseLax(x);
const protocol = x.protocol || '';
const host = x.hostname;
const port = x.port ? `:${x.port}` : '';
img.onload = () => resolve(true);
img.onerror = () => resolve(false);
img.src = `//${x}/favicon.ico?${Date.now()}`;
img.src = `${protocol}//${host}${port}/favicon.ico?${Date.now()}`;
});
}));
};

2

package.json
{
"name": "is-reachable",
"version": "2.0.0",
"version": "2.1.0",
"description": "Check if servers are reachable",

@@ -5,0 +5,0 @@ "license": "MIT",

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