Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
app.listen(options.port, options.host, function (err, result) {
if (err) { throw err };
console.log(clc.erase.screen);
console.log(clc.red(banner));
console.log(clc.red('> > > > Galaxy of Covers dev server running at ' + clc.underline('http://' + options.host + ':' + options.port) + ' < < < <') + '\n');
});
};
const erase = () => {
return clc.move(0, -1) + clc.erase.line;
};
module.exports.moveUp = () => {
process.stdout.write(clc.move.up(1));
process.stdout.write(clc.erase.line);
};
var
vm = require('vm'),
Promise = require('promise'),
specialColor = require('util').inspect.styles.special,
clc = require('cli-color'),
color = clc[specialColor],
erase = clc.move.up(1) + clc.erase.line;
module.exports = function Evaler (options, console)
{
var
vmEvaler,
noDisplay = { displayErrors: false },
slowThrs = 350;
if (options.useGlobal)
{
vmEvaler = function (script)
{
return script.runInThisContext(noDisplay);
}
}
.then(function() {
clearInterval(progressInterval);
if (!debugging) {
process.stdout.write(clc.erase.line + clc.move.left(9999));
}
utils.logLabeledSuccess("hosting[" + deploy.site + "]", "file upload complete");
var dt = Date.now() - t0;
logger.debug("[hosting] deploy completed after " + dt + "ms");
return track("Hosting Deploy", "success", dt);
})
.catch(function(err) {
function clearBeforeOutput ()
{
_write(clc.erase.line);
_write('\n');
_write(clc.move.up(1));
}