Skip to content

Commit

Permalink
Merge pull request #1357 from opencomponents/ban-eval-on-oc
Browse files Browse the repository at this point in the history
ban eval from ocs
  • Loading branch information
ricardo-devis-agullo authored Feb 15, 2024
2 parents 970418b + cfd8564 commit 64681b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/registry/routes/helpers/get-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ export default function getComponent(conf: Config, repository: Repository) {
console: conf.local ? console : noopConsole,
setTimeout,
Buffer,
eval: undefined,
fetch: globalThis?.fetch
};

Expand Down

0 comments on commit 64681b3

Please sign in to comment.