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;
}
});
}
getProject() {
return new Project([
{
name: 'schema.graphqls',
body: this.state.schemaSource
}, {
name: 'permission-profiles.json',
body: permissionProfilesSource
}
]);
}
constructor() {
super();
this.state = {
schemaSource: initialSource,
query: initialQuery
};
this.db = new InMemoryAdapter();
}