Socket
Socket
Sign inDemoInstall

appium-support

Package Overview
Dependencies
Maintainers
6
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.1.1 to 1.1.2

24

lib/system.js

@@ -18,11 +18,19 @@ "use strict";

function isOSWin64() {
return process.arch === 'x64' || process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432');
}
exports.arch = function (cb) {
exec("uname -m", function (err, stdout) {
if (err) return cb(err);
if (stdout.trim() === "i686") {
cb(null, "32");
} else {
cb(null, "64");
}
});
if (exports.isWindows() ) {
cb(null, isOSWin64() ? "64" : "32");
} else {
exec("uname -m", function (err, stdout) {
if (err) return cb(err);
if (stdout.trim() === "i686") {
cb(null, "32");
} else {
cb(null, "64");
}
});
}
};

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

],
"version": "1.1.1",
"version": "1.1.2",
"author": "appium",

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

@@ -14,11 +14,9 @@ "use strict";

});
if (system.isLinux || system.isMac) {
it('should know architecture', function (done) {
system.arch(function (err, arch) {
should.not.exist(err);
["32", "64"].should.contain(arch);
done();
});
it('should know architecture', function (done) {
system.arch(function (err, arch) {
should.not.exist(err);
["32", "64"].should.contain(arch);
done();
});
}
});
});
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