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/README.md +2 -2
- package/dist/purify.cjs.js +6 -3
- package/dist/purify.cjs.js.map +1 -1
- package/dist/purify.es.js +6 -3
- package/dist/purify.es.js.map +1 -1
- package/dist/purify.js +6 -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 -1
package/dist/purify.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @license DOMPurify 2.5.
|
|
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 (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -116,7 +116,10 @@
|
|
|
116
116
|
var stringTrim = unapply(String.prototype.trim);
|
|
117
117
|
var regExpTest = unapply(RegExp.prototype.test);
|
|
118
118
|
var typeErrorCreate = unconstruct(TypeError);
|
|
119
|
-
|
|
119
|
+
function numberIsNaN(x) {
|
|
120
|
+
// eslint-disable-next-line unicorn/prefer-number-properties
|
|
121
|
+
return typeof x === 'number' && isNaN(x);
|
|
122
|
+
}
|
|
120
123
|
function unapply(func) {
|
|
121
124
|
return function (thisArg) {
|
|
122
125
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
@@ -288,7 +291,7 @@
|
|
|
288
291
|
* Version label, exposed for easier checks
|
|
289
292
|
* if DOMPurify is up to date or not
|
|
290
293
|
*/
|
|
291
|
-
DOMPurify.version = '2.5.
|
|
294
|
+
DOMPurify.version = '2.5.4';
|
|
292
295
|
|
|
293
296
|
/**
|
|
294
297
|
* Array of elements that DOMPurify removed during sanitation.
|