Socket
Socket
Sign inDemoInstall

default-gateway

Package Overview
Dependencies
20
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.0.1

2

ibmi.js

@@ -15,3 +15,3 @@ "use strict";

result = {gateway, iface};
} catch (err) {}
} catch {}
if (!result) {

@@ -18,0 +18,0 @@ throw new Error("Unable to determine default gateway");

@@ -5,5 +5,16 @@ "use strict";

const supportedPlatforms = new Set([
"aix",
"android",
"darwin",
"freebsd",
"linux",
"openbsd",
"sunos",
"win32"
]);
const plat = platform();
if (["aix", "android", "darwin", "freebsd", "linux", "openbsd", "sunos", "win32"].includes(plat)) {
if (supportedPlatforms.has(plat)) {
let file;

@@ -23,7 +34,7 @@ if (plat === "aix") {

} else {
const unsupported = () => {throw new Error(`Unsupported Platform: ${plat}`)};
module.exports.v4 = unsupported;
module.exports.v6 = unsupported;
module.exports.v4.sync = unsupported;
module.exports.v6.sync = unsupported;
const err = new Error(`Unsupported Platform: ${plat}`);
module.exports.v4 = () => Promise.reject(err);
module.exports.v6 = () => Promise.reject(err);
module.exports.v4.sync = () => {throw err; };
module.exports.v6.sync = () => {throw err; };
}
{
"name": "default-gateway",
"version": "6.0.0",
"version": "6.0.1",
"description": "Get the default network gateway, cross-platform.",

@@ -27,10 +27,10 @@ "author": "silverwind <me@silverwind.io>",

"dependencies": {
"execa": "^4.0.0"
"execa": "^4.0.2"
},
"devDependencies": {
"eslint": "6.8.0",
"eslint-config-silverwind": "10.0.1",
"jest": "25.1.0",
"updates": "10.2.2",
"versions": "8.2.4"
"eslint": "7.1.0",
"eslint-config-silverwind": "13.4.2",
"jest": "26.0.1",
"updates": "10.2.12",
"versions": "8.2.10"
},

@@ -37,0 +37,0 @@ "keywords": [

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