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.7 to 2.0.8

13

lib/adb/command/host-transport/clear.js

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

ClearCommand.prototype.execute = function(pkg) {
this._send("shell:pm clear " + pkg + " 2>/dev/null");
this._send("shell:pm clear " + pkg);
return this.parser.readAscii(4).then((function(_this) {

@@ -24,12 +24,9 @@ return function(reply) {

case Protocol.OKAY:
return _this.parser.readAscii(6).then(function(reply) {
switch (reply) {
case 'Succes':
return _this.parser.searchLine(/^(Success|Failed)$/).then(function(result) {
switch (result[0]) {
case 'Success':
return true;
case 'Failed':
_this.connection.end();
throw new Error("Data of " + pkg + " could not be cleared");
break;
default:
return _this.parser.unexpected(reply, "'Success' or 'Failed'");
throw new Error("Package '" + pkg + "' could not be cleared");
}

@@ -36,0 +33,0 @@ });

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

@@ -32,3 +32,3 @@ "keywords": [

"dependencies": {
"adbkit-logcat": "~1.0.0",
"adbkit-logcat": "~1.0.3",
"adbkit-monkey": "~1.0.1",

@@ -35,0 +35,0 @@ "debug": "~0.7.4",

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