Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => {
// Report and show execution time
const hrtime = process.hrtime(start);
report.executionTime(hrtime);
log.info(`Bundling took ${pretty(hrtime)}`);
// Send report analytics data
report.sendAnalytics();
// Write report if requested
if (project.misc.reportFile) {
fs.writeFileSync(
project.misc.reportFile.asNative,
report.toHtml()
);
log.info(
`Report written to ${project.misc.reportFile.asNative}`
);
} else if (report.warningsPresent) {
log.debug('The build has emitted some warning messages.');
onWikiData(data => {
if (!hasLoggedOneWikiEdit) {
hasLoggedOneWikiEdit = true;
console.log('Data preview:', data);
}
stats.ongoingDataCount++;
const elapsedTime = process.hrtime(startTime);
if ((elapsedTime[0] % 200) === 0) {
console.log(`${stats.ongoingDataCount} wiki edits received after ${prettyTime(elapsedTime)}`);
}
io.emit('message', data);
writeWikiEditToDB(data);
});
htmlIf(_executionTime, () =>
htmlRow(
`Execution took:${pretty(_executionTime)}`
)
),