Skip to content

Commit

Permalink
Merge pull request #4122 from ProjectMirador/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
jcoyne authored Mar 1, 2025
2 parents f22e042 + cf90138 commit a6f1586
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion __tests__/src/components/SanitizedHtml.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ describe('SanitizedHtml', () => {
htmlString="
<b>Don't worry!</b>
<a>Some link</a>
<script type='module'>doBadThings()</script>"
<script data-testid='script' type='module'></script>"
ruleSet="iiif"
/>,
);
Expand All @@ -29,4 +29,8 @@ describe('SanitizedHtml', () => {
expect(screen.getByText('Some link')).toHaveAttribute('target', '_blank');
expect(screen.getByText('Some link')).toHaveAttribute('rel', 'noopener noreferrer');
});

it('removes script tags', () => {
expect(screen.queryByTestId('script')).not.toBeInTheDocument();
});
});
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@custom-react-hooks/use-element-size": "^1.5.1",
"@emotion/cache": "^11.11.0",
"@hello-pangea/dnd": "^16.0.1 || ^17.0.0",
"@hello-pangea/dnd": "^16.0.1 || ^17.0.0 || ^18.0.0",
"@mui/icons-material": "^6.0.0",
"@mui/utils": "^6.0.0",
"@mui/x-tree-view": "^7.25.0",
Expand All @@ -45,7 +45,7 @@
"classnames": "^2.2.6",
"deepmerge": "^4.2.2",
"dompurify": "^3.0.0",
"i18next": "^21.0.0 || ^22.0.0 || ^23.0.0",
"i18next": "^21.0.0 || ^22.0.0 || ^23.0.0 || ^24.0.0",
"lodash": "^4.17.11",
"manifesto.js": "^4.2.0",
"merge-refs": "^1.3.0",
Expand Down Expand Up @@ -104,7 +104,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-testing-library": "^6.2.0",
"glob": "^10.3.0",
"happy-dom": "^16.8.1",
"happy-dom": "^17.0",
"react": "^18.0.0",
"react-dnd-test-backend": "^16.0.1",
"react-dom": "^18.0.0",
Expand Down

0 comments on commit a6f1586

Please sign in to comment.