Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (answers[prompt.name]) {
return;
}
if (prompt.default instanceof Function) {
answers[prompt.name] = prompt.default(answers);
} else {
answers[prompt.name] = prompt.default;
}
});
hooker.unhook(this.app, 'prompt');
done(answers);
return hooker.preempt(answers);
}.bind(this));
};