Fix types for dompurify and toastr
| @@ -59,9 +59,10 @@ | |||
| 59 | "sillytavern": "server.js" | 59 | "sillytavern": "server.js" |
| 60 | }, | 60 | }, |
| 61 | "devDependencies": { | 61 | "devDependencies": { |
| 62 | "@types/dompurify": "^3.0.5", | ||
| 62 | "@types/jquery": "^3.5.29", | 63 | "@types/jquery": "^3.5.29", |
| 63 | "eslint": "^8.57.0", | 64 | "@types/toastr": "^2.1.43", |
| 64 | "jquery": "^3.6.4" | 65 | "eslint": "^8.57.0" |
| 65 | }, | 66 | }, |
| 66 | "engines": { | 67 | "engines": { |
| 67 | "node": ">= 18" | 68 | "node": ">= 18" |
| @@ -960,6 +961,16 @@ | |||
| 960 | "@types/responselike": "^1.0.0" | 961 | "@types/responselike": "^1.0.0" |
| 961 | } | 962 | } |
| 962 | }, | 963 | }, |
| 964 | "node_modules/@types/dompurify": { | ||
| 965 | "version": "3.0.5", | ||
| 966 | "resolved": "https://registry.npmjs.org/@types/dompurify/-/dompurify-3.0.5.tgz", | ||
| 967 | "integrity": "sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg==", | ||
| 968 | "dev": true, | ||
| 969 | "license": "MIT", | ||
| 970 | "dependencies": { | ||
| 971 | "@types/trusted-types": "*" | ||
| 972 | } | ||
| 973 | }, | ||
| 963 | "node_modules/@types/http-cache-semantics": { | 974 | "node_modules/@types/http-cache-semantics": { |
| 964 | "version": "4.0.2", | 975 | "version": "4.0.2", |
| 965 | "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", | 976 | "resolved": "https://registry.npmjs.org/@types/http-cache-semantics/-/http-cache-semantics-4.0.2.tgz", |
| @@ -967,10 +978,11 @@ | |||
| 967 | "license": "MIT" | 978 | "license": "MIT" |
| 968 | }, | 979 | }, |
| 969 | "node_modules/@types/jquery": { | 980 | "node_modules/@types/jquery": { |
| 970 | "version": "3.5.29", | 981 | "version": "3.5.31", |
| 971 | "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.29.tgz", | 982 | "resolved": "https://registry.npmjs.org/@types/jquery/-/jquery-3.5.31.tgz", |
| 972 | "integrity": "sha512-oXQQC9X9MOPRrMhPHHOsXqeQDnWeCDT3PelUIg/Oy8FAbzSZtFHRjc7IpbfFVmpLtJ+UOoywpRsuO5Jxjybyeg==", | 983 | "integrity": "sha512-rf/iB+cPJ/YZfMwr+FVuQbm7IaWC4y3FVYfVDxRGqmUCFjjPII0HWaP0vTPJGp6m4o13AXySCcMbWfrWtBFAKw==", |
| 973 | "dev": true, | 984 | "dev": true, |
| 985 | "license": "MIT", | ||
| 974 | "dependencies": { | 986 | "dependencies": { |
| 975 | "@types/sizzle": "*" | 987 | "@types/sizzle": "*" |
| 976 | } | 988 | } |
| @@ -1021,6 +1033,23 @@ | |||
| 1021 | "integrity": "sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==", | 1033 | "integrity": "sha512-0vWLNK2D5MT9dg0iOo8GlKguPAU02QjmZitPEsXRuJXU/OGIOt9vT9Fc26wtYuavLxtO45v9PGleoL9Z0k1LHg==", |
| 1022 | "dev": true | 1034 | "dev": true |
| 1023 | }, | 1035 | }, |
| 1036 | "node_modules/@types/toastr": { | ||
| 1037 | "version": "2.1.43", | ||
| 1038 | "resolved": "https://registry.npmjs.org/@types/toastr/-/toastr-2.1.43.tgz", | ||
| 1039 | "integrity": "sha512-sLC2fr2OXeE1iyhUixpQ64wQ2tA26awmLidn4tXTLBz4yP/VhtYUKHpmiIyDtztKkHjucdiTLH8F5uRRyhNi2Q==", | ||
| 1040 | "dev": true, | ||
| 1041 | "license": "MIT", | ||
| 1042 | "dependencies": { | ||
| 1043 | "@types/jquery": "*" | ||
| 1044 | } | ||
| 1045 | }, | ||
| 1046 | "node_modules/@types/trusted-types": { | ||
| 1047 | "version": "2.0.7", | ||
| 1048 | "resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz", | ||
| 1049 | "integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==", | ||
| 1050 | "dev": true, | ||
| 1051 | "license": "MIT" | ||
| 1052 | }, | ||
| 1024 | "node_modules/@ungap/structured-clone": { | 1053 | "node_modules/@ungap/structured-clone": { |
| 1025 | "version": "1.2.0", | 1054 | "version": "1.2.0", |
| 1026 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", | 1055 | "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", |
| @@ -3881,13 +3910,6 @@ | |||
| 3881 | "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", | 3910 | "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==", |
| 3882 | "license": "BSD-3-Clause" | 3911 | "license": "BSD-3-Clause" |
| 3883 | }, | 3912 | }, |
| 3884 | "node_modules/jquery": { | ||
| 3885 | "version": "3.7.0", | ||
| 3886 | "resolved": "https://registry.npmjs.org/jquery/-/jquery-3.7.0.tgz", | ||
| 3887 | "integrity": "sha512-umpJ0/k8X0MvD1ds0P9SfowREz2LenHsQaxSohMZ5OMNEU2r0tf8pdeEFTHMFxWVxKNyU9rTtK3CWzUCTKJUeQ==", | ||
| 3888 | "dev": true, | ||
| 3889 | "license": "MIT" | ||
| 3890 | }, | ||
| 3891 | "node_modules/js-yaml": { | 3913 | "node_modules/js-yaml": { |
| 3892 | "version": "4.1.0", | 3914 | "version": "4.1.0", |
| 3893 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", | 3915 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", |
| @@ -85,8 +85,9 @@ | |||
| 85 | }, | 85 | }, |
| 86 | "main": "server.js", | 86 | "main": "server.js", |
| 87 | "devDependencies": { | 87 | "devDependencies": { |
| 88 | "@types/dompurify": "^3.0.5", | ||
| 88 | "@types/jquery": "^3.5.29", | 89 | "@types/jquery": "^3.5.29", |
| 89 | "eslint": "^8.57.0", | 90 | "@types/toastr": "^2.1.43", |
| 90 | "jquery": "^3.6.4" | 91 | "eslint": "^8.57.0" |
| 91 | } | 92 | } |
| 92 | } | 93 | } |
| @@ -1,5 +1,4 @@ | |||
| 1 | // Global namespace modules | 1 | // Global namespace modules |
| 2 | declare var DOMPurify; | ||
| 3 | declare var droll; | 2 | declare var droll; |
| 4 | declare var Handlebars; | 3 | declare var Handlebars; |
| 5 | declare var hljs; | 4 | declare var hljs; |
| @@ -16,12 +16,8 @@ | |||
| 16 | ], | 16 | ], |
| 17 | "typeAcquisition": { | 17 | "typeAcquisition": { |
| 18 | "include": [ | 18 | "include": [ |
| 19 | "jquery", | ||
| 20 | "@popperjs/core", | 19 | "@popperjs/core", |
| 21 | "toastr", | ||
| 22 | "showdown", | 20 | "showdown", |
| 23 | "dompurify", | ||
| 24 | "moment", | ||
| 25 | "seedrandom", | 21 | "seedrandom", |
| 26 | "showdown-katex", | 22 | "showdown-katex", |
| 27 | "droll", | 23 | "droll", |