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/dist/purify.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
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
if (getOwnPropertyDescriptor(object, property) !== undefined) {
|
|
146
146
|
if (Array.isArray(value)) {
|
|
147
147
|
newObject[property] = cleanArray(value);
|
|
148
|
-
} else if (typeof value === 'object' && value.constructor === Object) {
|
|
148
|
+
} else if (value && typeof value === 'object' && value.constructor === Object) {
|
|
149
149
|
newObject[property] = clone(value);
|
|
150
150
|
} else {
|
|
151
151
|
newObject[property] = value;
|
|
@@ -284,7 +284,7 @@
|
|
|
284
284
|
* Version label, exposed for easier checks
|
|
285
285
|
* if DOMPurify is up to date or not
|
|
286
286
|
*/
|
|
287
|
-
DOMPurify.version = '3.0.
|
|
287
|
+
DOMPurify.version = '3.0.8';
|
|
288
288
|
|
|
289
289
|
/**
|
|
290
290
|
* Array of elements that DOMPurify removed during sanitation.
|