Skip to content

Commit c8d5409

Browse files
committed
add dompurify resolution to just use a typesafe version
1 parent 32ad0a3 commit c8d5409

File tree

2 files changed

+16
-21
lines changed

2 files changed

+16
-21
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@
5454
"@radix-ui/themes": "^3.1.3",
5555
"@sentry-internal/global-search": "^1.1.0",
5656
"@sentry/nextjs": "8.36.0",
57-
"@types/dompurify": "^3.0.5",
5857
"@types/mdx": "^2.0.9",
5958
"algoliasearch": "^4.23.3",
60-
"dompurify": "3.1.6",
6159
"esbuild": "^0.19.8",
6260
"framer-motion": "^10.12.16",
6361
"gray-matter": "^4.0.3",
@@ -99,7 +97,8 @@
9997
"server-only": "^0.0.1",
10098
"sharp": "^0.33.4",
10199
"tailwindcss-scoped-preflight": "^3.0.4",
102-
"textarea-markdown-editor": "^1.0.4"
100+
"textarea-markdown-editor": "^1.0.4",
101+
"dompurify": "3.1.7"
103102
},
104103
"devDependencies": {
105104
"@babel/preset-typescript": "^7.15.0",
@@ -111,6 +110,7 @@
111110
"@types/react": "18.3.12",
112111
"@types/react-dom": "18.3.1",
113112
"@types/ws": "^8.5.10",
113+
"@types/dompurify": "3.0.5",
114114
"autoprefixer": "^10.4.17",
115115
"concurrently": "^8.2.2",
116116
"dotenv-cli": "^7.4.1",
@@ -130,7 +130,9 @@
130130
"ws": "^8.17.1"
131131
},
132132
"resolutions": {
133-
"strip-ansi": "6.0.1"
133+
"strip-ansi": "6.0.1",
134+
"dompurify": "3.1.7",
135+
"@types/dompurify": "3.0.5"
134136
},
135137
"volta": {
136138
"node": "20.11.0",

yarn.lock

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3662,12 +3662,12 @@
36623662
dependencies:
36633663
"@types/ms" "*"
36643664

3665-
"@types/dompurify@^3.0.5":
3666-
version "3.2.0"
3667-
resolved "https://registry.yarnpkg.com/@types/dompurify/-/dompurify-3.2.0.tgz#56610bf3e4250df57744d61fbd95422e07dfb840"
3668-
integrity sha512-Fgg31wv9QbLDA0SpTOXO3MaxySc4DKGLi8sna4/Utjo4r3ZRPdCt4UQee8BWr+Q5z21yifghREPJGYaEOEIACg==
3665+
"@types/dompurify@3.0.5", "@types/dompurify@^3.0.5":
3666+
version "3.0.5"
3667+
resolved "https://registry.yarnpkg.com/@types/dompurify/-/dompurify-3.0.5.tgz#02069a2fcb89a163bacf1a788f73cb415dd75cb7"
3668+
integrity sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==
36693669
dependencies:
3670-
dompurify "*"
3670+
"@types/trusted-types" "*"
36713671

36723672
"@types/estree-jsx@^1.0.0":
36733673
version "1.0.5"
@@ -3911,7 +3911,7 @@
39113911
resolved "https://registry.yarnpkg.com/@types/tough-cookie/-/tough-cookie-4.0.5.tgz#cb6e2a691b70cb177c6e3ae9c1d2e8b2ea8cd304"
39123912
integrity sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==
39133913

3914-
"@types/trusted-types@^2.0.7":
3914+
"@types/trusted-types@*":
39153915
version "2.0.7"
39163916
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11"
39173917
integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==
@@ -5760,17 +5760,10 @@ domhandler@^4.2.0, domhandler@^4.3.1:
57605760
dependencies:
57615761
domelementtype "^2.2.0"
57625762

5763-
dompurify@*, dompurify@^3.0.0:
5764-
version "3.2.1"
5765-
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.1.tgz#d480972aeb1a59eb8ac47cba95558fbd72a0127b"
5766-
integrity sha512-NBHEsc0/kzRYQd+AY6HR6B/IgsqzBABrqJbpCDQII/OK6h7B7LXzweZTDsqSW2LkTRpoxf18YUP+YjGySk6B3w==
5767-
optionalDependencies:
5768-
"@types/trusted-types" "^2.0.7"
5769-
5770-
[email protected], "dompurify@^3.0.11 <3.1.7":
5771-
version "3.1.6"
5772-
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.1.6.tgz#43c714a94c6a7b8801850f82e756685300a027e2"
5773-
integrity sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ==
5763+
[email protected], dompurify@^3.0.0, "dompurify@^3.0.11 <3.1.7":
5764+
version "3.1.7"
5765+
resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.1.7.tgz#711a8c96479fb6ced93453732c160c3c72418a6a"
5766+
integrity sha512-VaTstWtsneJY8xzy7DekmYWEOZcmzIe3Qb3zPd4STve1OBTa+e+WmS1ITQec1fZYXI3HCsOZZiSMpG6oxoWMWQ==
57745767

57755768
domutils@^2.0.0, domutils@^2.8.0:
57765769
version "2.8.0"

0 commit comments

Comments
 (0)