appium-support
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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(); | ||
}); | ||
} | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
386
14447
18
5