[Pkg-javascript-commits] [node-browser-pack] 87/141: bufferize output

Bastien Roucariès rouca at moszumanska.debian.org
Thu May 4 10:23:27 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-browser-pack.

commit 8a80081038c2f1a2c61b28e1c380f9846e40c3ce
Author: James Halliday <mail at substack.net>
Date:   Thu Jul 24 01:41:09 2014 -0700

    bufferize output
---
 index.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/index.js b/index.js
index 0ff4b57..b19a3da 100644
--- a/index.js
+++ b/index.js
@@ -1,6 +1,7 @@
 var JSONStream = require('JSONStream');
 var through = require('through2');
 var umd = require('umd');
+var duplexer = require('duplexer2');
 
 var fs = require('fs');
 var path = require('path');
@@ -36,7 +37,8 @@ module.exports = function (opts) {
     var lineno = 1 + newlinesIn(prelude);
     var sourcemap;
     
-    return stream;
+    var output = stream.pipe(through());
+    return duplexer(stream, output);
     
     function write (row, enc, next) {
         if (first && opts.standalone) {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browser-pack.git



More information about the Pkg-javascript-commits mailing list