Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!progress.message) {
throw new Error('Message is missing.');
}
const type = progress.type || 'verbose';
const spinnerRequiresPause = internalStopWaiting && (type !== 'verbose' || verbose);
if (spinnerRequiresPause) {
internalStopWaiting();
}
buntstift[type](progress.message.trim());
if (spinnerRequiresPause) {
internalStopWaiting = buntstift.wait();
}
};
};
show () {
stop = buntstift.wait();
},
hide () {