Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/dompurify

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/dompurify - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

16

dompurify/index.d.ts

@@ -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 @@

5

dompurify/package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc