Socket
Socket
Sign inDemoInstall

adb-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adb-toolkit - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

2

package.json
{
"name": "adb-toolkit",
"version": "0.4.6",
"version": "0.4.7",
"description": "ADB toolkit",

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

const shell = require('shelljs');
const adb = 'adb';
const options = {silent: true};
var options = {silent: true};
function getDevices() {
function getDevices(opt) {
if (typeof opt !== 'undefined') {
options = opt;
}
var adbDevices = shell.exec(`${adb} devices -l`, options).stdout.trim().split('\n');

@@ -129,3 +133,3 @@ adbDevices.shift();

},
launchUrl: function(url, selectedBrowser, addOptions) {
launchUrl: function(url, selectedBrowser) {
var browser = typeof selectedBrowser === 'undefined' ? this.getBrowsers()[0] : this.getBrowsers(selectedBrowser)[0];

@@ -136,5 +140,9 @@ if (!browser) {

}
var cmd = browser.launchCmd.replace('{URL}', url.replace(/&/gi, '\\&'));
var opt = typeof addOptions !== 'undefined' ? addOptions : options;
const output = shell.exec(cmd, opt);
url = url.replace(/\(/gi, '%28');
url = url.replace(/\)/gi, '%29');
url = encodeURIComponent(url);
var cmd = browser.launchCmd.replace('{URL}', url);
const output = shell.exec(cmd, options);
},

@@ -141,0 +149,0 @@ forceStop: function(package, callback) {

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