Comparing version 0.1.13 to 0.1.14
@@ -11,18 +11,3 @@ var util = require('util'), | ||
self.reader = reader; | ||
if (!separator) { | ||
separator = /\r?\n/; | ||
} | ||
if (listener) { | ||
self.addListener('line', listener); | ||
} | ||
var buffer = ''; | ||
if (typeof reader.setEncoding === 'function') | ||
reader.setEncoding(encoding); | ||
reader.on(event, function(data) { | ||
var onEvent = function carrierOnEvent(data) { | ||
var args = Array.prototype.slice.call(arguments, 1); | ||
@@ -46,4 +31,21 @@ | ||
}); | ||
}); | ||
} | ||
self.reader = reader; | ||
if (!separator) { | ||
separator = /\r?\n/; | ||
} | ||
if (listener) { | ||
self.addListener('line', listener); | ||
} | ||
var buffer = ''; | ||
if (typeof reader.setEncoding === 'function') | ||
reader.setEncoding(encoding); | ||
reader.on(event, onEvent); | ||
var ender = function() { | ||
@@ -50,0 +52,0 @@ if (buffer.length > 0) { |
{ "name" : "carrier" | ||
, "description" : "Evented stream line reader for node.js" | ||
, "version" : "0.1.13" | ||
, "version" : "0.1.14" | ||
, "homepage" : "http://github.com/pgte/carrier" | ||
@@ -5,0 +5,0 @@ , "author" : |
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
10549
259