Accept stream options in constructors, pass to internal transform streams.

Includes tests.
This commit is contained in:
Dan
2014-09-15 15:01:39 -04:00
parent 25b8d6da5f
commit b78a3eb845
4 changed files with 37 additions and 19 deletions
+4 -4
View File
@@ -1,12 +1,12 @@
module.exports = function(txt) {
return new CopyStreamQuery(txt)
module.exports = function(txt, options) {
return new CopyStreamQuery(txt, options)
}
var Transform = require('stream').Transform
var util = require('util')
var CopyStreamQuery = function(text) {
Transform.call(this)
var CopyStreamQuery = function(text, options) {
Transform.call(this, options)
this.text = text
this._listeners = {}
this._copyOutResponse = null