Comparing version 2.2.0 to 2.2.1
@@ -179,3 +179,3 @@ (function() { | ||
Parser.prototype.readByteFlow = function(howMany) { | ||
Parser.prototype.readByteFlow = function(howMany, targetStream) { | ||
var endListener, errorListener, resolver, tryRead; | ||
@@ -191,7 +191,7 @@ resolver = Promise.defer(); | ||
if (howMany === 0) { | ||
resolver.progress(chunk); | ||
targetStream.write(chunk); | ||
resolver.resolve(); | ||
break; | ||
} | ||
results.push(resolver.progress(chunk)); | ||
results.push(targetStream.write(chunk)); | ||
} | ||
@@ -198,0 +198,0 @@ return results; |
@@ -256,7 +256,3 @@ (function() { | ||
length = lengthData.readUInt32LE(0); | ||
return _this.parser.readByteFlow(length).progressed(function(chunk) { | ||
return transfer.write(chunk); | ||
}).then(function() { | ||
return readNext(); | ||
}); | ||
return _this.parser.readByteFlow(length, transfer).then(readNext); | ||
}); | ||
@@ -263,0 +259,0 @@ case Protocol.DONE: |
{ | ||
"name": "adbkit", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
212288
4061