Skip to content

Commit e5b30d6

Browse files
committed
fix: Fix potential security vulnerability in transpiler.ts
1 parent 05c2d6a commit e5b30d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transpiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function evaluateValue(expression: string): EvaluateReturn {
2929
) {
3030
const node = ast.program.body[0].declarations[0].init
3131
if (node != null && (node.type === 'StringLiteral' || node.type === 'ObjectExpression')) {
32-
// eslint-disable-next-line @typescript-eslint/no-implied-eval, @typescript-eslint/no-unsafe-call
32+
// eslint-disable-next-line @typescript-eslint/no-implied-eval
3333
const val = new Function(`return ${expression.trim()} `)() as unknown
3434
ret.status = 'ok'
3535
ret.value = val

0 commit comments

Comments
 (0)