@types/sanitize-html 2.9.4 → 2.11.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 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: Tue, 07 Nov 2023 15:11:36 GMT
11
+ * Last updated: Mon, 05 Feb 2024 06:35:31 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), and [Alex Rantos](https://github.com/alex-rantos).
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
@@ -21,7 +21,7 @@ declare namespace sanitize {
21
21
 
22
22
  type DisallowedTagsModes = "discard" | "escape" | "recursiveEscape";
23
23
 
24
- // tslint:disable-next-line:interface-name
24
+ // eslint-disable-next-line @typescript-eslint/naming-convention
25
25
  interface IDefaults {
26
26
  allowedAttributes: Record<string, AllowedAttribute[]>;
27
27
  allowedSchemes: string[];
@@ -32,9 +32,10 @@ declare namespace sanitize {
32
32
  disallowedTagsMode: DisallowedTagsModes;
33
33
  enforceHtmlBoundary: boolean;
34
34
  selfClosing: string[];
35
+ nonBooleanAttributes: string[];
35
36
  }
36
37
 
37
- // tslint:disable-next-line:interface-name
38
+ // eslint-disable-next-line @typescript-eslint/naming-convention
38
39
  interface IFrame {
39
40
  tag: string;
40
41
  attribs: { [index: string]: string };
@@ -43,7 +44,7 @@ declare namespace sanitize {
43
44
  mediaChildren: string[];
44
45
  }
45
46
 
46
- // tslint:disable-next-line:interface-name
47
+ // eslint-disable-next-line @typescript-eslint/naming-convention
47
48
  interface IOptions {
48
49
  allowedAttributes?: Record<string, AllowedAttribute[]> | false | undefined;
49
50
  allowedStyles?: { [index: string]: { [index: string]: RegExp[] } } | undefined;
@@ -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;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sanitize-html",
3
- "version": "2.9.4",
3
+ "version": "2.11.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": "8d5d4327e97a7a4b118d4c0599fc23f024bcf2e3ec817f683e7a557c7accf642",
71
- "typeScriptVersion": "4.5"
75
+ "typesPublisherContentHash": "68f607f5fc5857068521dccfce8918e990669697a77e377af21f637b42029a01",
76
+ "typeScriptVersion": "4.6"
72
77
  }