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/dist/purify.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 3.0.7 | (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.7/LICENSE */
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.7';
287
+ DOMPurify.version = '3.0.8';
288
288
 
289
289
  /**
290
290
  * Array of elements that DOMPurify removed during sanitation.