Run yarn dedupe and upgrade TS (#13853)

Upgrading TS to the latest version, and cleaning up packages with yarn
dedupe
This commit is contained in:
Félix Malfait
2025-08-12 15:18:59 +02:00
committed by GitHub
parent 62352901ba
commit 3c0f3fd2ae
17 changed files with 330 additions and 4909 deletions
@@ -1,7 +1,6 @@
import { Injectable, Logger } from '@nestjs/common';
import DOMPurify from 'dompurify';
import { JSDOM } from 'jsdom';
import { isDefined, isValidUuid } from 'twenty-shared/utils';
import { z } from 'zod';
@@ -116,6 +115,7 @@ export class SendEmailTool implements Tool {
workspaceId,
);
const { JSDOM } = await import('jsdom');
const window = new JSDOM('').window;
const purify = DOMPurify(window);
const safeBody = purify.sanitize(body || '');