Comparing version 2.0.7 to 2.0.8
@@ -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", |
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
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
158987
2942
Updatedadbkit-logcat@~1.0.3