dompurify 2.5.3 → 2.5.4

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.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 2.5.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.3/LICENSE */
1
+ /*! @license DOMPurify 2.5.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.4/LICENSE */
2
2
 
3
3
  function _typeof(obj) {
4
4
  "@babel/helpers - typeof";
@@ -110,7 +110,10 @@ var stringIndexOf = unapply(String.prototype.indexOf);
110
110
  var stringTrim = unapply(String.prototype.trim);
111
111
  var regExpTest = unapply(RegExp.prototype.test);
112
112
  var typeErrorCreate = unconstruct(TypeError);
113
- var numberIsNaN = unapply(Number.isNaN);
113
+ function numberIsNaN(x) {
114
+ // eslint-disable-next-line unicorn/prefer-number-properties
115
+ return typeof x === 'number' && isNaN(x);
116
+ }
114
117
  function unapply(func) {
115
118
  return function (thisArg) {
116
119
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
@@ -282,7 +285,7 @@ function createDOMPurify() {
282
285
  * Version label, exposed for easier checks
283
286
  * if DOMPurify is up to date or not
284
287
  */
285
- DOMPurify.version = '2.5.3';
288
+ DOMPurify.version = '2.5.4';
286
289
 
287
290
  /**
288
291
  * Array of elements that DOMPurify removed during sanitation.