port dump-db and other tools to TS

This commit is contained in:
Jin
2024-08-10 18:23:49 +02:00
parent 2cc34efbde
commit b83c6023c4
18 changed files with 1197 additions and 518 deletions

View File

@@ -99,7 +99,7 @@ function executeScript(script: string, params: ScriptParams, startNoteId: string
}
function execute(ctx: ScriptContext, script: string) {
return function () { return eval(`const apiContext = this;\r\n(${script}\r\n)()`); }.call(ctx);
return function () { return (0, eval)(`const apiContext = this;\r\n(${script}\r\n)()`); }.call(ctx);
}
function getParams(params?: ScriptParams) {