docker-stream-cleanser
Advanced tools
Comparing version 0.0.8 to 0.0.9
14
app.js
@@ -16,6 +16,5 @@ module.exports = function(data, encoding, fixCarriageReturns) { | ||
if (payload === null) break; | ||
if (fixCarriageReturns) { | ||
payload = payload.replace(/\r?\n/g, '\r\n'); | ||
} | ||
result += payload.toString(); | ||
payload = (fixCarriageReturns) ? | ||
payload.toString().replace(/\r?\n/g, '\r\n') : payload.toString(); | ||
result += payload; | ||
} | ||
@@ -50,6 +49,5 @@ return result; | ||
if (payload === null) break; | ||
if (fixCarriageReturns) { | ||
payload = payload.replace(/\r?\n/g, '\r\n'); | ||
} | ||
clientStream.write(payload.toString()); | ||
payload = (fixCarriageReturns) ? | ||
payload.toString().replace(/\r?\n/g, '\r\n') : payload.toString(); | ||
clientStream.write(payload); | ||
} | ||
@@ -56,0 +54,0 @@ } |
{ | ||
"name": "docker-stream-cleanser", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"main": "app.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
59551
124