[Pkg-javascript-commits] [node-read-only-stream] 02/22: objectMode
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 20 13:52:18 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-read-only-stream.
commit 301bd597327f87896a2250bbb9b3e5192af7972c
Author: James Halliday <mail at substack.net>
Date: Mon Sep 8 11:07:19 2014 +0100
objectMode
---
index.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/index.js b/index.js
index 2537f7e..07f7e58 100644
--- a/index.js
+++ b/index.js
@@ -1,7 +1,8 @@
var Readable = require('readable-stream/readable');
module.exports = function (stream) {
- var ro = new Readable;
+ var opts = stream._readableState;
+ var ro = new Readable({ objectMode: opts && opts.objectMode });
var waiting = false;
stream.on('readable', function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-read-only-stream.git
More information about the Pkg-javascript-commits
mailing list