Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Observable.create(o => {
const unsub = listen(l => {
if (verbose) {
o.next(l.type + ": " + l.message);
} else if (!silent && l.type === "proxy") {
o.next(l.message);
}
});
let Transport;
let saveToFile = null;
let recordStore;
const getTransportLike = () => {
return {
open: () => open(device || ""),
create: () => open(device || "")
};