Skip to content

Commit

Permalink
fix(deps): use isomorphic-dompurify
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsTheGlidingSquirrel committed Dec 23, 2024
1 parent 834d64b commit 094e484
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"autoprefixer": "^10.4.20",
"canvas-confetti": "^1.9.3",
"clsx": "^2.1.1",
"dompurify": "^3.2.3",
"fast-xml-parser": "^4.5.0",
"fp-ts": "^2.16.9",
"graphiql": "^3.7.2",
Expand Down
1 change: 0 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"@open-iframe-resizer/react": "1.2.1",
"@serlo/katex-styles": "1.0.1",
"@vidstack/react": "next",
"dompurify": "^3.2.3",
"isomorphic-dompurify": "^2.19.0",
"lit": "^3.2.1",
"motion": "^11.11.17",
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/plugins/edusharing-asset/renderer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import EdusharingIcon from '@editor/editor-ui/assets/edusharing.svg'
import { IframeResizer } from '@open-iframe-resizer/react'
import DOMPurify from 'dompurify'
import * as t from 'io-ts'
import DOMPurify from 'isomorphic-dompurify'
import { memo, useEffect, useState } from 'react'

type EmbedType =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { sanitizeLatex } from '@editor/plugins/text/utils/sanitize-latex'
import { cn } from '@editor/utils/cn'
import DOMPurify from 'dompurify'
import DOMPurify from 'isomorphic-dompurify'
import KaTeX from 'katex'
// eslint-disable-next-line import/no-unassigned-import
import 'katex/contrib/mhchem'
Expand Down
2 changes: 0 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5798,7 +5798,6 @@ __metadata:
"@vitejs/plugin-react": ^4.3.3
autoprefixer: ^10.4.20
clsx: ^2.1.1
dompurify: ^3.2.3
eslint: ^9.14.0
eslint-config-next: ^15.0.3
eslint-config-prettier: ^9.1.0
Expand Down Expand Up @@ -5925,7 +5924,6 @@ __metadata:
canvas-confetti: ^1.9.3
clsx: ^2.1.1
cross-env: ^7.0.3
dompurify: ^3.2.3
dotenv: ^16.4.5
eslint: ^9.14.0
eslint-config-next: ^15.0.3
Expand Down

0 comments on commit 094e484

Please sign in to comment.