import assert from 'node:assert/strict'; import { readFile } from 'node:fs/promises'; import vm from 'node:vm'; const csrfSource = await readFile( new URL('../public/theme/venix/js/admin-csrf.js', import.meta.url), 'utf8', ); const template = await readFile( new URL('../resources/views/venix/admin/object_storage.tpl', import.meta.url), 'utf8', ); const scriptMatch = template.match( /\{literal\}