Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7cedd59

Browse files
chore(deps): bump dompurify from 3.1.3 to 3.2.4 (#2667)
* chore(deps): bump dompurify from 3.1.3 to 3.2.4Bumps [dompurify](https://github.com/cure53/DOMPurify) from 3.1.3 to 3.2.4.- [Release notes](https://github.com/cure53/DOMPurify/releases)- [Commits](cure53/DOMPurify@3.1.3...3.2.4)---updated-dependencies:- dependency-name: dompurify dependency-type: direct:production...Signed-off-by: dependabot[bot] <support@github.com>* chore(deps): update dompurify---------Signed-off-by: dependabot[bot] <support@github.com>Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Co-authored-by: kanoru <kanoru3101@gmail.com>
1 parentcab07ba commit7cedd59

File tree

3 files changed

+28
-17
lines changed

3 files changed

+28
-17
lines changed

‎package-lock.json‎

Lines changed: 23 additions & 15 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"@redocly/openapi-core":"^1.4.0",
142142
"classnames":"^2.3.2",
143143
"decko":"^1.2.0",
144-
"dompurify":"^3.0.6",
144+
"dompurify":"^3.2.4",
145145
"eventemitter3":"^5.0.1",
146146
"json-pointer":"^0.6.2",
147147
"lunr":"^2.3.9",

‎src/components/Markdown/SanitizedMdBlock.tsx‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ import { StylingMarkdownProps } from './Markdown';
66
import{StyledMarkdownBlock}from'./styled.elements';
77
importstyledfrom'styled-components';
88

9+
// Workaround for DOMPurify type issues (https://github.com/cure53/DOMPurify/issues/1034)
10+
constdompurify=DOMPurify['default']asDOMPurify.DOMPurify;
11+
912
constStyledMarkdownSpan=styled(StyledMarkdownBlock)`
1013
display: inline;
1114
`;
1215

13-
constsanitize=(sanitize,html)=>(sanitize ?DOMPurify.sanitize(html) :html);
16+
constsanitize=(sanitize,html)=>(sanitize ?dompurify.sanitize(html) :html);
1417

1518
exportfunctionSanitizedMarkdownHTML({
1619
inline,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp