Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => {
signale.timeEnd('global setup');
done();
})
.catch((err) => {
let crittr;
let resultObj = {critical: null, rest: null};
try {
crittr = new Crittr(options);
} catch (err) {
reject(err);
}
try {
(resultObj = await crittr.run());
} catch (err) {
reject(err);
}
resolve(resultObj);
log.timeEnd("Crittr Run");
});
};
tty.onopened = () => {
signale.success("Connected to frontend!");
signale.timeEnd("Startup");
};
tty.onresized = (cols, rows) => {