@types/sanitize-html 2.11.0 → 2.15.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,7 +8,7 @@ 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, 05 Feb 2024 06:35:31 GMT
11
+ * Last updated: Fri, 28 Mar 2025 16:03:23 GMT
12
12
  * Dependencies: [htmlparser2](https://npmjs.com/package/htmlparser2)
13
13
 
14
14
  # Credits
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 {
@@ -61,7 +61,7 @@ declare namespace sanitize {
61
61
  allowedTags?: string[] | false | undefined;
62
62
  allowVulnerableTags?: boolean | undefined;
63
63
  textFilter?: ((text: string, tagName: string) => string) | undefined;
64
- exclusiveFilter?: ((frame: IFrame) => boolean) | undefined;
64
+ exclusiveFilter?: ((frame: IFrame) => boolean | "excludeTag") | undefined;
65
65
  nestingLimit?: number | undefined;
66
66
  nonTextTags?: string[] | undefined;
67
67
  /** @default true */
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sanitize-html",
3
- "version": "2.11.0",
3
+ "version": "2.15.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",
@@ -72,6 +72,7 @@
72
72
  "dependencies": {
73
73
  "htmlparser2": "^8.0.0"
74
74
  },
75
- "typesPublisherContentHash": "68f607f5fc5857068521dccfce8918e990669697a77e377af21f637b42029a01",
76
- "typeScriptVersion": "4.6"
75
+ "peerDependencies": {},
76
+ "typesPublisherContentHash": "1391c9900cb3f7aaa132dbc5dd97b5d3e10b526e524e29a40c193cedd941f2d6",
77
+ "typeScriptVersion": "5.0"
77
78
  }