Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return Rx.Observable.create( (subscriber) => {
figlet.metadata('Standard', function(err, options, headerComment) {
if (err) {
subscriber.onError(err);
return;
}
subscriber.onNext( { font:font, options:options, headerComment:headerComment });
subscriber.onCompleted();
});
} );
}
return Rx.Observable.create(function (subscriber) {
figlet.metadata('Standard', function (err, options, headerComment) {
if (err) {
subscriber.onError(err);
return;
}
subscriber.onNext({ font: font, options: options, headerComment: headerComment });
subscriber.onCompleted();
});
});
}