2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

Unit Test Fixes (#8245)

* Add @types/dompurify

* JS fix

* Update allowed tags
This commit is contained in:
Oliver 2024-10-07 20:17:31 +11:00 committed by GitHub
parent 846b17aa1d
commit 36e3159c1a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 0 deletions

View File

@ -1277,6 +1277,7 @@ MARKDOWNIFY = {
'li', 'li',
'ol', 'ol',
'p', 'p',
'pre',
's', 's',
'strong', 'strong',
'table', 'table',

View File

@ -1,6 +1,7 @@
{% load i18n %} {% load i18n %}
/* globals /* globals
DOMPurify,
EasyMDE, EasyMDE,
inventreeFormDataUpload, inventreeFormDataUpload,
inventreeGet, inventreeGet,

View File

@ -40,6 +40,7 @@
"@sentry/react": "^8.31.0", "@sentry/react": "^8.31.0",
"@tabler/icons-react": "^3.17.0", "@tabler/icons-react": "^3.17.0",
"@tanstack/react-query": "^5.56.2", "@tanstack/react-query": "^5.56.2",
"@types/dompurify": "^3.0.5",
"@uiw/codemirror-theme-vscode": "^4.23.3", "@uiw/codemirror-theme-vscode": "^4.23.3",
"@uiw/react-codemirror": "^4.23.3", "@uiw/react-codemirror": "^4.23.3",
"@uiw/react-split": "^5.9.3", "@uiw/react-split": "^5.9.3",

View File

@ -1710,6 +1710,13 @@
resolved "https://registry.yarnpkg.com/@types/d3-timer/-/d3-timer-3.0.2.tgz#70bbda77dc23aa727413e22e214afa3f0e852f70" resolved "https://registry.yarnpkg.com/@types/d3-timer/-/d3-timer-3.0.2.tgz#70bbda77dc23aa727413e22e214afa3f0e852f70"
integrity sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw== integrity sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==
"@types/dompurify@^3.0.5":
version "3.0.5"
resolved "https://registry.yarnpkg.com/@types/dompurify/-/dompurify-3.0.5.tgz#02069a2fcb89a163bacf1a788f73cb415dd75cb7"
integrity sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==
dependencies:
"@types/trusted-types" "*"
"@types/estree@*": "@types/estree@*":
version "1.0.5" version "1.0.5"
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
@ -1838,6 +1845,11 @@
dependencies: dependencies:
"@types/estree" "*" "@types/estree" "*"
"@types/trusted-types@*":
version "2.0.7"
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11"
integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==
"@types/yargs-parser@*": "@types/yargs-parser@*":
version "21.0.3" version "21.0.3"
resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15" resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-21.0.3.tgz#815e30b786d2e8f0dcd85fd5bcf5e1a04d008f15"