dompurify 2.3.11 → 2.3.12
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 +1 -1
- package/dist/purify.cjs.d.ts +2 -2
- package/dist/purify.cjs.js +4 -3
- package/dist/purify.cjs.js.map +1 -1
- package/dist/purify.es.d.ts +2 -2
- package/dist/purify.es.js +4 -3
- package/dist/purify.es.js.map +1 -1
- package/dist/purify.js +4 -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.3.
|
|
1
|
+
/*! @license DOMPurify 2.3.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.12/LICENSE */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
*/
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
DOMPurify.version = '2.3.
|
|
329
|
+
DOMPurify.version = '2.3.12';
|
|
330
330
|
/**
|
|
331
331
|
* Array of elements that DOMPurify removed during sanitation.
|
|
332
332
|
* Empty if nothing was removed.
|
|
@@ -1374,7 +1374,8 @@
|
|
|
1374
1374
|
// eslint-disable-next-line complexity
|
|
1375
1375
|
|
|
1376
1376
|
|
|
1377
|
-
DOMPurify.sanitize = function (dirty
|
|
1377
|
+
DOMPurify.sanitize = function (dirty) {
|
|
1378
|
+
var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
1378
1379
|
var body;
|
|
1379
1380
|
var importedNode;
|
|
1380
1381
|
var currentNode;
|