@types/sanitize-html 2.9.5 → 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: Mon, 20 Nov 2023 23:36:24 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
@@ -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;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sanitize-html",
3
- "version": "2.9.5",
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": "cbf9312b4d463795e96b0dba762e8b89ac70cd0f2f82b0970c082b2503555c33",
71
- "typeScriptVersion": "4.5"
75
+ "typesPublisherContentHash": "68f607f5fc5857068521dccfce8918e990669697a77e377af21f637b42029a01",
76
+ "typeScriptVersion": "4.6"
72
77
  }