import Rx from 'rx';
import glob from 'glob';

var rxGlobArray = Rx.Observable.fromNodeCallback(glob);

export
default

function rxGlob(...args) {
    console.log(...args);
    return rxGlobArray(...args).flatMap(Rx.Observable.from)
        .tapOnNext(console.log);
}

rxGlob.hasMagic = glob.hasMagic;

@@ -144,34 +144,8 @@
 ) %7B%0A
-    console.log(...args);%0A
     

Fix stray console.log that messed up output