dompurify 3.0.7 → 3.0.8
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.
- package/README.md +1 -1
- package/dist/purify.cjs.js +3 -3
- package/dist/purify.cjs.js.map +1 -1
- package/dist/purify.es.mjs +3 -3
- package/dist/purify.es.mjs.map +1 -1
- package/dist/purify.js +3 -3
- package/dist/purify.js.map +1 -1
- package/dist/purify.min.js +2 -2
- package/dist/purify.min.js.map +1 -1
- package/package.json +1 -8
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
DOMPurify is a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG.
|
|
8
8
|
|
|
9
|
-
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.0.
|
|
9
|
+
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.0.8**.
|
|
10
10
|
|
|
11
11
|
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.
|
|
12
12
|
|
package/dist/purify.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 3.0.
|
|
1
|
+
/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
@@ -141,7 +141,7 @@ function clone(object) {
|
|
|
141
141
|
if (getOwnPropertyDescriptor(object, property) !== undefined) {
|
|
142
142
|
if (Array.isArray(value)) {
|
|
143
143
|
newObject[property] = cleanArray(value);
|
|
144
|
-
} else if (typeof value === 'object' && value.constructor === Object) {
|
|
144
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
145
145
|
newObject[property] = clone(value);
|
|
146
146
|
} else {
|
|
147
147
|
newObject[property] = value;
|
|
@@ -280,7 +280,7 @@ function createDOMPurify() {
|
|
|
280
280
|
* Version label, exposed for easier checks
|
|
281
281
|
* if DOMPurify is up to date or not
|
|
282
282
|
*/
|
|
283
|
-
DOMPurify.version = '3.0.
|
|
283
|
+
DOMPurify.version = '3.0.8';
|
|
284
284
|
|
|
285
285
|
/**
|
|
286
286
|
* Array of elements that DOMPurify removed during sanitation.
|