@types/sanitize-html 2.5.0 → 2.6.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 +4 -2
- sanitize-html/package.json +8 -3
sanitize-html/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: Sat, 04 Dec 2021 13:31:03 GMT
|
|
12
12
|
* Dependencies: [@types/htmlparser2](https://npmjs.com/package/@types/htmlparser2)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Afshin Darian](https://github.com/afshin), [Rinze de Laat](https://github.com/biermeester), [A penguin](https://github.com/sirMerr), [Johan Davidsson](https://github.com/johandavidson), [Jianrong Yu](https://github.com/YuJianrong), [GP](https://github.com/paambaati), [tomotetra](https://github.com/tomotetra), [Dariusz Syncerek](https://github.com/dsyncerek), [Piotr Błażejewicz](https://github.com/peterblazejewicz),
|
|
16
|
+
These definitions were written by [Rogier Schouten](https://github.com/rogierschouten), [Afshin Darian](https://github.com/afshin), [Rinze de Laat](https://github.com/biermeester), [A penguin](https://github.com/sirMerr), [Johan Davidsson](https://github.com/johandavidson), [Jianrong Yu](https://github.com/YuJianrong), [GP](https://github.com/paambaati), [tomotetra](https://github.com/tomotetra), [Dariusz Syncerek](https://github.com/dsyncerek), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Pirasis Leelatanon](https://github.com/1pete), and [Alex Rantos](https://github.com/alex-rantos).
|
sanitize-html/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for sanitize-html 2.
|
|
1
|
+
// Type definitions for sanitize-html 2.6
|
|
2
2
|
// Project: https://github.com/punkave/sanitize-html
|
|
3
3
|
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
|
|
4
4
|
// Afshin Darian <https://github.com/afshin>
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
// Dariusz Syncerek <https://github.com/dsyncerek>
|
|
12
12
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
13
13
|
// Pirasis Leelatanon <https://github.com/1pete>
|
|
14
|
+
// Alex Rantos <https://github.com/alex-rantos>
|
|
14
15
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
15
16
|
|
|
16
17
|
import { ParserOptions } from "htmlparser2";
|
|
@@ -55,7 +56,7 @@ declare namespace sanitize {
|
|
|
55
56
|
interface IOptions {
|
|
56
57
|
allowedAttributes?: Record<string, AllowedAttribute[]> | false | undefined;
|
|
57
58
|
allowedStyles?: { [index: string]: { [index: string]: RegExp[] } } | undefined;
|
|
58
|
-
allowedClasses?: { [index: string]: string
|
|
59
|
+
allowedClasses?: { [index: string]: boolean | Array<string | RegExp> } | undefined;
|
|
59
60
|
allowedIframeDomains?: string[] | undefined;
|
|
60
61
|
allowedIframeHostnames?: string[] | undefined;
|
|
61
62
|
allowIframeRelativeUrls?: boolean | undefined;
|
|
@@ -85,6 +86,7 @@ declare namespace sanitize {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
const defaults: IDefaults;
|
|
89
|
+
const options: IOptions;
|
|
88
90
|
|
|
89
91
|
function simpleTransform(tagName: string, attribs: Attributes, merge?: boolean): Transformer;
|
|
90
92
|
}
|
sanitize-html/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/sanitize-html",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.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",
|
|
@@ -59,6 +59,11 @@
|
|
|
59
59
|
"name": "Pirasis Leelatanon",
|
|
60
60
|
"url": "https://github.com/1pete",
|
|
61
61
|
"githubUsername": "1pete"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "Alex Rantos",
|
|
65
|
+
"url": "https://github.com/alex-rantos",
|
|
66
|
+
"githubUsername": "alex-rantos"
|
|
62
67
|
}
|
|
63
68
|
],
|
|
64
69
|
"main": "",
|
|
@@ -72,6 +77,6 @@
|
|
|
72
77
|
"dependencies": {
|
|
73
78
|
"htmlparser2": "^6.0.0"
|
|
74
79
|
},
|
|
75
|
-
"typesPublisherContentHash": "
|
|
76
|
-
"typeScriptVersion": "3.
|
|
80
|
+
"typesPublisherContentHash": "cc449ec545e1c43bde6cf10a258ae09e1e9c2dfefea2a094ae6a28d3b6bd6ae6",
|
|
81
|
+
"typeScriptVersion": "3.8"
|
|
77
82
|
}
|