docker-stream-cleanser
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -6,5 +6,5 @@ | ||
module.exports = function(data) { | ||
module.exports = function(data, encoding) { | ||
if (!Buffer.isBuffer(data)) { | ||
data = new Buffer(data); | ||
data = new Buffer(data, encoding); | ||
} | ||
@@ -27,4 +27,7 @@ var result = ''; | ||
module.exports.cleanStreams = function (buildStream, clientStream) { | ||
module.exports.cleanStreams = function (buildStream, clientStream, encoding) { | ||
buildStream.on('data', function(data) { | ||
if (!Buffer.isBuffer(data)) { | ||
data = new Buffer(data, encoding); | ||
} | ||
var header = null, pointer = 0; | ||
@@ -31,0 +34,0 @@ if (!data || data.length < 8 || data[1] !== 0) { |
{ | ||
"name": "docker-stream-cleanser", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "app.js", | ||
"devDependencies": { | ||
"lab": "^4.0.2" | ||
"lab": "^4.0.2", | ||
"silly-string": "^1.0.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
59093
115
2