change infoDb db export

This commit is contained in:
Yokozuna59
2023-06-15 01:01:35 +03:00
parent f630fba392
commit 689ffbf5a5
2 changed files with 2 additions and 4 deletions

View File

@@ -16,10 +16,8 @@ const clear = (): void => {
info = DEFAULT_INFO_DB.info; info = DEFAULT_INFO_DB.info;
}; };
const db: InfoDB = { export const db: InfoDB = {
clear, clear,
setInfo, setInfo,
getInfo, getInfo,
}; };
export { db };

View File

@@ -10,7 +10,7 @@ import type { DrawDefinition, HTML, SVG } from '../../diagram-api/types.js';
* @param id - The id of the diagram which will be used as a DOM element id. * @param id - The id of the diagram which will be used as a DOM element id.
* @param version - MermaidJS version. * @param version - MermaidJS version.
*/ */
export const draw: DrawDefinition = (text, id, version) => { const draw: DrawDefinition = (text, id, version) => {
try { try {
log.debug('rendering info diagram\n' + text); log.debug('rendering info diagram\n' + text);