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;

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

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

export
default

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

rxGlob.hasMagic = glob.hasMagic;

Fix stray console.log that messed up output
Fix stray console.log that messed up output
