Socket
Socket
Sign inDemoInstall

appium-support

Package Overview
Dependencies
Maintainers
5
Versions
145
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-support - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

13

lib/util.js

@@ -5,2 +5,3 @@ "use strict";

, fs = require('fs')
, os = require('os')
, B = require('bluebird');

@@ -68,1 +69,13 @@

};
exports.localIp = function () {
var ip = _.chain(os.networkInterfaces())
.values()
.flatten()
.filter(function (val) {
return (val.family === 'IPv4' && val.internal === false);
})
.pluck('address')
.first().value();
return ip;
};

2

package.json

@@ -7,3 +7,3 @@ {

],
"version": "1.0.4",
"version": "1.0.5",
"author": "appium",

@@ -10,0 +10,0 @@ "license": "Apache License 2.0",

@@ -87,2 +87,9 @@ "use strict";

});
describe("localIp", function () {
it("should find a local ip address", function () {
var ip = util.localIp();
ip.should.match(/\d*\.\d*\.\d*\.\d*/);
});
});
});
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc