Skip to content

Commit

Permalink
fix(frontend): fixing cve (low severity and type check), build(deps):…
Browse files Browse the repository at this point in the history
… bump sass from 1.80.6 to 1.83.0, and also type check

Signed-off-by: Eder Ignatowicz <ignatowicz@gmail.com>
  • Loading branch information
ederign committed Dec 16, 2024
1 parent 6c40612 commit d6bc756
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
24 changes: 12 additions & 12 deletions clients/ui/frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions clients/ui/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"react-refresh": "^0.14.2",
"react-router-dom": "^7.0.2",
"regenerator-runtime": "^0.14.1",
"sass": "^1.56.2",
"sass": "^1.83.0",
"sass-loader": "^13.2.0",
"serve": "^14.2.4",
"speed-measure-webpack-plugin": "^1.5.0",
Expand Down Expand Up @@ -115,7 +115,7 @@
"react": "^18",
"react-dom": "^18",
"react-router": "^7.0.2",
"sass": "^1.78.0",
"sass": "^1.83.0",
"dompurify": "^3.2.3",
"showdown": "^2.1.0",
"classnames": "^2.2.6"
Expand Down
3 changes: 1 addition & 2 deletions clients/ui/frontend/src/shared/utilities/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ export const markdownConverter = {

// add hook to transform anchor tags
DOMPurify.addHook('beforeSanitizeElements', (node) => {
// nodeType 1 = element type
if (node.nodeType === 1 && node.nodeName.toLowerCase() === 'a') {
if (node instanceof HTMLAnchorElement) {
node.setAttribute('rel', 'noopener noreferrer');
}
});
Expand Down

0 comments on commit d6bc756

Please sign in to comment.