@types/sanitize-html 2.9.5 → 2.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sanitize-html/README.md +2 -2
- sanitize-html/index.d.ts +3 -1
- sanitize-html/package.json +8 -3
sanitize-html/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This package contains type definitions for sanitize-html (https://github.com/pun
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sanitize-html.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 18 Aug 2024 19:35:50 GMT
|
|
12
12
|
* Dependencies: [htmlparser2](https://npmjs.com/package/htmlparser2)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
|
-
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Afshin Darian](https://github.com/afshin), [Rinze de Laat](https://github.com/biermeester), [Johan Davidsson](https://github.com/johandavidson), [Jianrong Yu](https://github.com/YuJianrong), [GP](https://github.com/paambaati), [Dariusz Syncerek](https://github.com/dsyncerek), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Pirasis Leelatanon](https://github.com/1pete),
|
|
15
|
+
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Afshin Darian](https://github.com/afshin), [Rinze de Laat](https://github.com/biermeester), [Johan Davidsson](https://github.com/johandavidson), [Jianrong Yu](https://github.com/YuJianrong), [GP](https://github.com/paambaati), [Dariusz Syncerek](https://github.com/dsyncerek), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Pirasis Leelatanon](https://github.com/1pete), [Alex Rantos](https://github.com/alex-rantos), and [Dylan Armstrong](https://github.com/dylanarmstrong).
|
sanitize-html/index.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare namespace sanitize {
|
|
|
19
19
|
|
|
20
20
|
type AllowedAttribute = string | { name: string; multiple?: boolean | undefined; values: string[] };
|
|
21
21
|
|
|
22
|
-
type DisallowedTagsModes = "discard" | "escape" | "recursiveEscape";
|
|
22
|
+
type DisallowedTagsModes = "discard" | "escape" | "recursiveEscape" | "completelyDiscard";
|
|
23
23
|
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
25
25
|
interface IDefaults {
|
|
@@ -32,6 +32,7 @@ declare namespace sanitize {
|
|
|
32
32
|
disallowedTagsMode: DisallowedTagsModes;
|
|
33
33
|
enforceHtmlBoundary: boolean;
|
|
34
34
|
selfClosing: string[];
|
|
35
|
+
nonBooleanAttributes: string[];
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
@@ -76,6 +77,7 @@ declare namespace sanitize {
|
|
|
76
77
|
* @default true
|
|
77
78
|
*/
|
|
78
79
|
enforceHtmlBoundary?: boolean | undefined;
|
|
80
|
+
nonBooleanAttributes?: string[];
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
const defaults: IDefaults;
|
sanitize-html/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sanitize-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "TypeScript definitions for sanitize-html",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sanitize-html",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,6 +54,11 @@
|
|
|
54
54
|
"name": "Alex Rantos",
|
|
55
55
|
"githubUsername": "alex-rantos",
|
|
56
56
|
"url": "https://github.com/alex-rantos"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "Dylan Armstrong",
|
|
60
|
+
"githubUsername": "dylanarmstrong",
|
|
61
|
+
"url": "https://github.com/dylanarmstrong"
|
|
57
62
|
}
|
|
58
63
|
],
|
|
59
64
|
"main": "",
|
|
@@ -67,6 +72,6 @@
|
|
|
67
72
|
"dependencies": {
|
|
68
73
|
"htmlparser2": "^8.0.0"
|
|
69
74
|
},
|
|
70
|
-
"typesPublisherContentHash": "
|
|
71
|
-
"typeScriptVersion": "4.
|
|
75
|
+
"typesPublisherContentHash": "25492432784f9ea732113be74ac722ae8e28a718cf27769a5b44b61f98c156b6",
|
|
76
|
+
"typeScriptVersion": "4.8"
|
|
72
77
|
}
|