dompurify
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -1,2 +0,2 @@ | ||
/*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */ | ||
/*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */ | ||
@@ -209,5 +209,5 @@ /** | ||
/** | ||
* Creates a DOMPurify instance using the given window-like object. | ||
* Creates a DOMPurify instance using the given window-like object. Defaults to `window`. | ||
*/ | ||
(root: WindowLike): DOMPurify; | ||
(root?: WindowLike): DOMPurify; | ||
/** | ||
@@ -400,4 +400,5 @@ * Version label, exposed for easier checks | ||
export { type Config, type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike }; | ||
export { type Config, type DOMPurify, type Hook, type HookName, type RemovedAttribute, type RemovedElement, type UponSanitizeAttributeHook, type UponSanitizeAttributeHookEvent, type UponSanitizeElementHook, type UponSanitizeElementHookEvent, type WindowLike }; | ||
// @ts-ignore | ||
export = _default; |
@@ -1,2 +0,2 @@ | ||
/*! @license DOMPurify 3.2.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.0/LICENSE */ | ||
/*! @license DOMPurify 3.2.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.1/LICENSE */ | ||
@@ -287,3 +287,3 @@ 'use strict'; | ||
const DOMPurify = root => createDOMPurify(root); | ||
DOMPurify.version = '3.2.0'; | ||
DOMPurify.version = '3.2.1'; | ||
DOMPurify.removed = []; | ||
@@ -290,0 +290,0 @@ if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document) { |
@@ -31,9 +31,9 @@ { | ||
".": { | ||
"require": { | ||
"types": "./dist/purify.cjs.d.ts", | ||
"default": "./dist/purify.cjs.js" | ||
}, | ||
"import": { | ||
"types": "./dist/purify.es.d.mts", | ||
"default": "./dist/purify.es.mjs" | ||
}, | ||
"default": { | ||
"types": "./dist/purify.cjs.d.ts", | ||
"default": "./dist/purify.cjs.js" | ||
} | ||
@@ -96,2 +96,5 @@ } | ||
}, | ||
"optionalDependencies": { | ||
"@types/trusted-types": "^2.0.7" | ||
}, | ||
"devDependencies": { | ||
@@ -105,3 +108,2 @@ "@babel/core": "^7.17.8", | ||
"@types/estree": "^1.0.0", | ||
"@types/trusted-types": "^2.0.7", | ||
"cross-env": "^7.0.3", | ||
@@ -139,3 +141,3 @@ "eslint-config-prettier": "^8.5.0", | ||
"description": "DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. It's written in JavaScript and works in all modern browsers (Safari, Opera (15+), Internet Explorer (10+), Firefox and Chrome - as well as almost anything else using Blink or WebKit). DOMPurify is written by security people who have vast background in web attacks and XSS. Fear not.", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"directories": { | ||
@@ -142,0 +144,0 @@ "test": "test" |
@@ -9,3 +9,3 @@ # DOMPurify | ||
It's also very simple to use and get started with. DOMPurify was [started in February 2014](https://github.com/cure53/DOMPurify/commit/a630922616927373485e0e787ab19e73e3691b2b) and, meanwhile, has reached version **v3.2.0**. | ||
It's also very simple to use and get started with. DOMPurify was [started in February 2014](https://github.com/cure53/DOMPurify/commit/a630922616927373485e0e787ab19e73e3691b2b) and, meanwhile, has reached version **v3.2.1**. | ||
@@ -12,0 +12,0 @@ DOMPurify is written in JavaScript and works in all modern browsers (Safari (10+), Opera (15+), Edge, Firefox and Chrome - as well as almost anything else using Blink, Gecko or WebKit). It doesn't break on MSIE or other legacy browsers. It simply does nothing. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
33
301793
1
4542