[Pkg-javascript-commits] [node-jsonstream] 11/214: allow end(data)
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Dec 1 12:58:32 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-jsonstream.
commit b62c97e7e73429d64758a64ae10cd3e30c06fde2
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date: Wed Oct 5 22:52:43 2011 +1100
allow end(data)
---
index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/index.js b/index.js
index 818aebf..bdec5ed 100644
--- a/index.js
+++ b/index.js
@@ -91,7 +91,7 @@ exports.stringify = function (op, sep, cl) {
}
- //else, what eve you like
+ //else, what ever you like
var stream = new Stream ()
, first = true
@@ -105,8 +105,8 @@ exports.stringify = function (op, sep, cl) {
if(ended)
return
ended = true
-// if(data)
- // stream.write(data)
+ if(data)
+ stream.write(data)
stream.emit('data', cl)
stream.emit('end')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-jsonstream.git
More information about the Pkg-javascript-commits
mailing list