@types/sanitize-html 2.13.0 → 2.16.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: Sun, 18 Aug 2024 19:35:50 GMT
11
+ * Last updated: Mon, 05 May 2025 21:02:40 GMT
12
12
  * Dependencies: [htmlparser2](https://npmjs.com/package/htmlparser2)
13
13
 
14
14
  # Credits
sanitize-html/index.d.ts CHANGED
@@ -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 */
@@ -78,6 +78,8 @@ declare namespace sanitize {
78
78
  */
79
79
  enforceHtmlBoundary?: boolean | undefined;
80
80
  nonBooleanAttributes?: string[];
81
+ onOpenTag?: ((name: string, attribs: Attributes) => void) | undefined;
82
+ onCloseTag?: ((name: string, isImplied: boolean) => void) | undefined;
81
83
  }
82
84
 
83
85
  const defaults: IDefaults;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sanitize-html",
3
- "version": "2.13.0",
3
+ "version": "2.16.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": "25492432784f9ea732113be74ac722ae8e28a718cf27769a5b44b61f98c156b6",
76
- "typeScriptVersion": "4.8"
75
+ "peerDependencies": {},
76
+ "typesPublisherContentHash": "58585d4a5b8bc3730065164c884a86472229ffe4fc67a14c4c15cccb8695897b",
77
+ "typeScriptVersion": "5.1"
77
78
  }