@types/dompurify
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -13,4 +13,2 @@ // Type definitions for DOM Purify 3.0 | ||
import { DOMWindow } from 'jsdom'; | ||
export as namespace DOMPurify; | ||
@@ -21,4 +19,16 @@ export = DOMPurify; | ||
type WindowLike = Pick< | ||
typeof globalThis, | ||
| 'NodeFilter' | ||
| 'Node' | ||
| 'Element' | ||
| 'HTMLTemplateElement' | ||
| 'DocumentFragment' | ||
| 'HTMLFormElement' | ||
| 'DOMParser' | ||
| 'NamedNodeMap' | ||
>; | ||
interface createDOMPurifyI extends DOMPurify.DOMPurifyI { | ||
(window?: Window | DOMWindow): DOMPurify.DOMPurifyI; | ||
(window?: Window | WindowLike): DOMPurify.DOMPurifyI; | ||
} | ||
@@ -25,0 +35,0 @@ |
{ | ||
"name": "@types/dompurify", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "TypeScript definitions for DOM Purify", | ||
@@ -43,7 +43,6 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dompurify", | ||
"dependencies": { | ||
"@types/jsdom": "*", | ||
"@types/trusted-types": "*" | ||
}, | ||
"typesPublisherContentHash": "0aaad9248c143bb370ad4d731e73db19d541d88c799c1e9fc0b7b9ac0dc77731", | ||
"typesPublisherContentHash": "77e29e25228aad2d8443f0d89e061e86c954c8f4d9b9846dd0fdcc15479ec671", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Mon, 03 Apr 2023 19:33:11 GMT | ||
* Dependencies: [@types/jsdom](https://npmjs.com/package/@types/jsdom), [@types/trusted-types](https://npmjs.com/package/@types/trusted-types) | ||
* Last updated: Wed, 19 Apr 2023 20:32:42 GMT | ||
* Dependencies: [@types/trusted-types](https://npmjs.com/package/@types/trusted-types) | ||
* Global values: `DOMPurify` | ||
@@ -15,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9139
1
134
- Removed@types/jsdom@*
- Removed@types/jsdom@21.1.7(transitive)
- Removed@types/node@22.9.0(transitive)
- Removed@types/tough-cookie@4.0.5(transitive)
- Removedentities@4.5.0(transitive)
- Removedparse5@7.2.1(transitive)
- Removedundici-types@6.19.8(transitive)