From b9da64ffd7e42d7d1baab6e9cc2eae5a057c8262 Mon Sep 17 00:00:00 2001 From: Victor Rubezhny Date: Tue, 26 Nov 2024 17:29:32 +0100 Subject: [PATCH] [build] Fix build errors after auto-fixing Client-side cross-site scripting #4667 Signed-off-by: Victor Rubezhny --- package-lock.json | 19 +++++++++++++++++++ package.json | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2c8715d01..99b356db4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -62,6 +62,7 @@ "codecov": "^3.8.3", "codemirror": "^6.0.1", "dockerode": "^4.0.2", + "dompurify": "^3.2.1", "dpdm": "^3.14.0", "esbuild": "^0.19.12", "esbuild-node-externals": "^1.15.0", @@ -3795,6 +3796,14 @@ "integrity": "sha512-chhaNf2oKHlRkDGt+tiKE2Z5aJ6qalm7Z9rlLdBwmOiAAf09YQvvoLXjWK4HWPF1xU/fqvMgfNfpVoBscA/tKA==", "dev": true }, + "node_modules/@types/trusted-types": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", + "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", + "dev": true, + "license": "MIT", + "optional": true + }, "node_modules/@types/unzip-stream": { "version": "0.3.4", "resolved": "https://registry.npmjs.org/@types/unzip-stream/-/unzip-stream-0.3.4.tgz", @@ -6991,6 +7000,16 @@ "url": "https://github.com/fb55/domhandler?sponsor=1" } }, + "node_modules/dompurify": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.1.tgz", + "integrity": "sha512-NBHEsc0/kzRYQd+AY6HR6B/IgsqzBABrqJbpCDQII/OK6h7B7LXzweZTDsqSW2LkTRpoxf18YUP+YjGySk6B3w==", + "dev": true, + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, "node_modules/domutils": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/domutils/-/domutils-3.1.0.tgz", diff --git a/package.json b/package.json index 07d9d5edf..6ab4617f6 100644 --- a/package.json +++ b/package.json @@ -74,8 +74,7 @@ "public-ui-test": "extest setup-tests -e ./test-resources/extensions -c max -i && npm run test:prepare && extest run-tests out/test/ui/public-ui-test.js -o test/ui/settings.json -m test/ui/.mocharc.js -e ./test-resources/extensions -c max" }, "dependencies": { - "shelljs": "^0.8.5", - "dompurify": "^3.2.1" + "shelljs": "^0.8.5" }, "devDependencies": { "@codemirror/lang-yaml": "^6.1.1", @@ -128,6 +127,7 @@ "codecov": "^3.8.3", "codemirror": "^6.0.1", "dockerode": "^4.0.2", + "dompurify": "^3.2.1", "dpdm": "^3.14.0", "esbuild": "^0.19.12", "esbuild-node-externals": "^1.15.0",