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.
@@ -19,7 +19,7 @@ declare function purify(root: any): {
19
19
  * @param {String|Node} dirty string or DOM node
20
20
  * @param {Object} configuration object
21
21
  */
22
- sanitize(dirty: string | Node, cfg: any): any;
22
+ sanitize(dirty: string | Node, ...args: any[]): any;
23
23
  /**
24
24
  * Public method to set the configuration once
25
25
  * setConfig
@@ -86,7 +86,7 @@ declare namespace purify {
86
86
  * @param {String|Node} dirty string or DOM node
87
87
  * @param {Object} configuration object
88
88
  */
89
- function sanitize(dirty: string | Node, cfg: any): any;
89
+ function sanitize(dirty: string | Node, ...args: any[]): any;
90
90
  /**
91
91
  * Public method to set the configuration once
92
92
  * setConfig
package/dist/purify.es.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @license DOMPurify 2.3.11 | (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.11/LICENSE */
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 _typeof(obj) {
4
4
  "@babel/helpers - typeof";
@@ -320,7 +320,7 @@ function createDOMPurify() {
320
320
  */
321
321
 
322
322
 
323
- DOMPurify.version = '2.3.11';
323
+ DOMPurify.version = '2.3.12';
324
324
  /**
325
325
  * Array of elements that DOMPurify removed during sanitation.
326
326
  * Empty if nothing was removed.
@@ -1368,7 +1368,8 @@ function createDOMPurify() {
1368
1368
  // eslint-disable-next-line complexity
1369
1369
 
1370
1370
 
1371
- DOMPurify.sanitize = function (dirty, cfg) {
1371
+ DOMPurify.sanitize = function (dirty) {
1372
+ var cfg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1372
1373
  var body;
1373
1374
  var importedNode;
1374
1375
  var currentNode;