Skip to content

Commit

Permalink
fix(deps): upgraded lodash to 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FGRibreau committed Jan 25, 2016
1 parent 765d1b0 commit 8ab456e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/FGRibreau/network-config",
"dependencies": {
"lodash": "^3.5.0",
"lodash": "^4.0.0",
"when": "^3.7.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/ifconfig.configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function replaceInterface(name, content, interfaceDescription) {

function excludeInterface(name, content) {
var without = _.curry(function (name, content) {
return !_.include(content, name);
return !_.includes(content, name);
});

return _.chain(content)
Expand Down
10 changes: 5 additions & 5 deletions src/ifconfig.interfaces.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function getInterfaceName(firstLine) {
* @return {string} Mac address, format: "xx:xx:xx:xx:xx:xx"
*/
function getInterfaceMacAddr(firstLine) {
if (!_.include(firstLine, MAC)) {
if (!_.includes(firstLine, MAC)) {
return null;
}

Expand All @@ -95,7 +95,7 @@ function getInterfaceMacAddr(firstLine) {
* @return {string,null} xxx.xxx.xxx.xxx
*/
function getInterfaceIpAddr(line) {
if (!_.include(line, INET)) {
if (!_.includes(line, INET)) {
return null;
}
return _.first(line.split(':')[1].split(' '));
Expand All @@ -111,7 +111,7 @@ function getInterfaceIpAddr(line) {
* @return {string,null} xxx.xxx.xxx.xxx
*/
function getInterfaceNetmaskAddr(line) {
if (!_.include(line, INET)) {
if (!_.includes(line, INET)) {
return null;
}
return _.last(line.split(':'));
Expand All @@ -123,7 +123,7 @@ function getInterfaceNetmaskAddr(line) {
* @return {string,null} xxx.xxx.xxx.xxx
*/
function getBroadcastAddr(line) {
if (!_.include(line, BCAST)) {
if (!_.includes(line, BCAST)) {
return null;
}

Expand All @@ -150,7 +150,7 @@ function getGateway(stdout) {
.split('\n')
.filter(function (line) {
return _.some(DESTINATIONS, function (destination)  {
return _.include(line, destination);
return _.includes(line, destination);
});
})[0]
.split(/\s+/)[1]
Expand Down

0 comments on commit 8ab456e

Please sign in to comment.