dompurify 2.4.4 → 2.4.5
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 +3 -2
- package/dist/purify.cjs.js.map +1 -1
- package/dist/purify.es.js +3 -2
- package/dist/purify.es.js.map +1 -1
- package/dist/purify.js +3 -2
- 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.4.
|
|
1
|
+
/*! @license DOMPurify 2.4.5 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.5/LICENSE */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
*/
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
DOMPurify.version = '2.4.
|
|
331
|
+
DOMPurify.version = '2.4.5';
|
|
332
332
|
/**
|
|
333
333
|
* Array of elements that DOMPurify removed during sanitation.
|
|
334
334
|
* Empty if nothing was removed.
|
|
@@ -638,6 +638,7 @@
|
|
|
638
638
|
|
|
639
639
|
IS_ALLOWED_URI$1 = cfg.ALLOWED_URI_REGEXP || IS_ALLOWED_URI$1;
|
|
640
640
|
NAMESPACE = cfg.NAMESPACE || HTML_NAMESPACE;
|
|
641
|
+
CUSTOM_ELEMENT_HANDLING = cfg.CUSTOM_ELEMENT_HANDLING || {};
|
|
641
642
|
|
|
642
643
|
if (cfg.CUSTOM_ELEMENT_HANDLING && isRegexOrFunction(cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck)) {
|
|
643
644
|
CUSTOM_ELEMENT_HANDLING.tagNameCheck = cfg.CUSTOM_ELEMENT_HANDLING.tagNameCheck;
|