Socket
Socket
Sign inDemoInstall

adbkit

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adbkit - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

16

lib/adb/client.js

@@ -260,10 +260,10 @@ (function() {

return tryConnect(1)["catch"](function(err) {
return this.transport(serial).then(function(transport) {
return new MonkeyCommand(transport).execute(port).then(function(out) {
return tryConnect(20).then(function(monkey) {
return monkey.once('end', function() {
return out.end();
});
});
});
return this.transport(serial);
}).then(function(transport) {
return new MonkeyCommand(transport).execute(port);
}).then(function(out) {
return tryConnect(20);
}).then(function(monkey) {
return monkey.once('end', function() {
return out.end();
});

@@ -270,0 +270,0 @@ }).nodeify(callback);

@@ -43,5 +43,19 @@ (function() {

}
if (options.category) {
if (Array.isArray(options.category)) {
options.category.forEach((function(_this) {
return function(category) {
return args.push('-c', _this._escape(category));
};
})(this));
} else {
args.push('-c', this._escape(options.category));
}
}
if (options.component) {
args.push('-n', this._escape(options.component));
}
if (options.flags) {
args.push('-f', this._escape(options.flags));
}
this._send("shell:am start " + (args.join(' ')));

@@ -48,0 +62,0 @@ return this.parser.readAscii(4).then((function(_this) {

@@ -215,3 +215,3 @@ (function() {

Parser.prototype.searchLine = function(re) {
return this.skipLine().then((function(_this) {
return this.readLine().then((function(_this) {
return function(line) {

@@ -228,3 +228,3 @@ var match;

Parser.prototype.skipLine = function() {
Parser.prototype.readLine = function() {
return this.readUntil(0x0a).then(function(line) {

@@ -231,0 +231,0 @@ if (line[line.length - 1] === 0x0d) {

{
"name": "adbkit",
"version": "2.0.3",
"version": "2.0.4",
"description": "A pure Node.js client for the Android Debug Bridge.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -591,3 +591,5 @@ # adbkit

- **action** The action.
- **category** The category. For multiple categories, pass an `Array`.
- **component** The component.
- **flags** Numeric flags.
- **extras** Any extra data.

@@ -594,0 +596,0 @@ * When an `Array`, each item must be an `Object` the following properties:

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