docker-stream-cleanser
Advanced tools
Comparing version 0.0.15 to 0.0.16
10
app.js
@@ -52,6 +52,3 @@ 'use strict'; | ||
// whole message (-8 to grab the header as well), and store it in the buffer | ||
if (8 + size > dataBuffer.length) { | ||
// If its too short, just return | ||
return; | ||
} else { | ||
if (8 + size <= dataBuffer.length) { | ||
@@ -67,7 +64,8 @@ // Basically do a splice here | ||
// Since we've moved the data to a buffer outside of the processing, we can use a | ||
// timeout to schedule the next iteration | ||
setTimeout(parseDataBuffer, 10); | ||
// timeout to schedule the next iteration. | ||
setImmediate(parseDataBuffer); | ||
} | ||
} | ||
} | ||
// Subscribe to the data event here. | ||
buildStream.on('data', function(data) { | ||
@@ -74,0 +72,0 @@ // First, make sure the data is a buffer |
{ | ||
"name": "docker-stream-cleanser", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"main": "app.js", | ||
@@ -5,0 +5,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
77619
329