Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

appium-adb

Package Overview
Dependencies
Maintainers
6
Versions
434
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appium-adb - npm Package Compare versions

Comparing version 2.0.0-beta1 to 2.0.0-beta2

lib/tools/.adb-commands.js.un~

15

lib/tools/adb-commands.js

@@ -469,2 +469,17 @@ import log from '../logger.js';

methods.getDeviceProperty = async function (property) {
let stdout = await this.shell(`getprop ${property}`);
let val = stdout.trim();
log.debug(`Current device property '${property}': ${val}`);
return val;
};
methods.getDeviceLanguage = async function () {
return this.getDeviceProperty("persist.sys.language");
};
methods.getDeviceCountry = async function () {
return this.getDeviceProperty("persist.sys.country");
};
export default methods;

2

package.json
{
"name": "appium-adb",
"version": "2.0.0-beta1",
"version": "2.0.0-beta2",
"description": "appium-adb",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

@@ -68,2 +68,6 @@ import chai from 'chai';

});
it('should get device language and country', async () => {
await adb.getDeviceLanguage().should.eventually.equal('en');
await adb.getDeviceCountry().should.eventually.equal('us');
});
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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