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.
@@ -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
  const {
4
4
  entries,
@@ -139,7 +139,7 @@ function clone(object) {
139
139
  if (getOwnPropertyDescriptor(object, property) !== undefined) {
140
140
  if (Array.isArray(value)) {
141
141
  newObject[property] = cleanArray(value);
142
- } else if (typeof value === 'object' && value.constructor === Object) {
142
+ } else if (value && typeof value === 'object' && value.constructor === Object) {
143
143
  newObject[property] = clone(value);
144
144
  } else {
145
145
  newObject[property] = value;
@@ -278,7 +278,7 @@ function createDOMPurify() {
278
278
  * Version label, exposed for easier checks
279
279
  * if DOMPurify is up to date or not
280
280
  */
281
- DOMPurify.version = '3.0.7';
281
+ DOMPurify.version = '3.0.8';
282
282
 
283
283
  /**
284
284
  * Array of elements that DOMPurify removed during sanitation.