mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(build): 🐛 Fix happy-dom
This commit is contained in:
parent
4f0db2dfba
commit
a430db5c30
|
|
@ -80,7 +80,7 @@
|
||||||
"dompurify": "^3.1.2",
|
"dompurify": "^3.1.2",
|
||||||
"drizzle-orm": "^0.30.7",
|
"drizzle-orm": "^0.30.7",
|
||||||
"extract-zip": "^2.0.1",
|
"extract-zip": "^2.0.1",
|
||||||
"happy-dom": "14.5.0",
|
"happy-dom": "14.7.1",
|
||||||
"html-to-text": "^9.0.5",
|
"html-to-text": "^9.0.5",
|
||||||
"ioredis": "^5.3.2",
|
"ioredis": "^5.3.2",
|
||||||
"ip-matching": "^2.1.2",
|
"ip-matching": "^2.1.2",
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
import { config } from "config-manager";
|
import { config } from "config-manager";
|
||||||
import DOMPurify from "dompurify";
|
import DOMPurify from "dompurify";
|
||||||
import { Window } from "happy-dom";
|
import { GlobalWindow } from "happy-dom";
|
||||||
|
|
||||||
const window = new Window();
|
const window = new GlobalWindow();
|
||||||
|
|
||||||
export const sanitizeHtml = async (
|
export const sanitizeHtml = async (
|
||||||
html: string,
|
html: string,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue