Skip to content

Commit

Permalink
add support for AIX platform, require node 6
Browse files Browse the repository at this point in the history
default-gateway@3.1.0 added support for the AIX platform. Also updated
all dependencies and fixed one lint issue.
  • Loading branch information
silverwind committed Feb 15, 2019
1 parent 74b1c01 commit e5ce5de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function sync(family) {
try {
const result = defaultGateway[family].sync();
return findIp(result.gateway) || null;
} catch (err) {
} catch (error) {
return null;
}
}
Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "sindresorhus.com"
},
"engines": {
"node": ">=4"
"node": ">=6"
},
"scripts": {
"test": "xo && ava"
Expand All @@ -37,11 +37,12 @@
"linux",
"openbsd",
"sunos",
"win32"
"win32",
"aix"
],
"dependencies": {
"default-gateway": "^2.6.0",
"ipaddr.js": "^1.5.2"
"default-gateway": "^3.1.0",
"ipaddr.js": "^1.9.0"
},
"devDependencies": {
"ava": "*",
Expand Down

0 comments on commit e5ce5de

Please sign in to comment.