Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.fetch(params, mockSchema).then(() => {
if (mockDB.queryTree) {
const aql = getAQLQuery(mockDB.queryTree);
const str = ansi2html(aql.toColoredString()).replace(/\u001b/g, ''); // ansi2html does not remove the escape chars
document.getElementById('log-view').innerHTML = 'The last query would have used this AQL:\n\n' + str;
}
});
}