From cfd856456f654e02923faffdb1d85f32cea3270f Mon Sep 17 00:00:00 2001 From: Ricardo Devis Agullo Date: Thu, 15 Feb 2024 12:37:03 +0100 Subject: [PATCH] ban eval from ocs --- src/registry/routes/helpers/get-component.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/registry/routes/helpers/get-component.ts b/src/registry/routes/helpers/get-component.ts index d58c75db8..7212574fa 100644 --- a/src/registry/routes/helpers/get-component.ts +++ b/src/registry/routes/helpers/get-component.ts @@ -551,6 +551,7 @@ export default function getComponent(conf: Config, repository: Repository) { console: conf.local ? console : noopConsole, setTimeout, Buffer, + eval: undefined, fetch: globalThis?.fetch };