@osovitny/anatoly 2.14.102 → 2.14.104

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 @@ import { v4 } from 'uuid';
19
19
  import * as i1$2 from 'ngx-toastr';
20
20
  import { ToastrModule } from 'ngx-toastr';
21
21
  import * as i1$4 from '@angular/platform-browser';
22
- import format$1 from 'xml-formatter';
22
+ import js_beautify from 'js-beautify';
23
23
  import * as i1$6 from '@fortawesome/angular-fontawesome';
24
24
  import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
25
25
  import * as i1$7 from '@progress/kendo-angular-pager';
@@ -1702,10 +1702,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
1702
1702
  10 Sep 2022
1703
1703
 
1704
1704
  Code:
1705
- https://github.com/chrisbottin/xml-formatter
1706
- https://npm.io/package/xml-formatter
1707
- https://npmtrends.com/xml-beautifier-vs-xml-formatter
1708
- https://www.npmjs.com/package/xml-formatter
1705
+ https://www.npmjs.com/package/js-beautify
1706
+ https://beautifier.io
1709
1707
 
1710
1708
  Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
1711
1709
  </file>
@@ -1714,11 +1712,12 @@ class XmlFormatter {
1714
1712
  static toPrettyXML(s, options) {
1715
1713
  if (!options) {
1716
1714
  options = {
1717
- indentation: ' ',
1718
- filter: (node) => node.type !== 'Comment'
1715
+ indent_size: 2,
1716
+ indent_char: " ",
1717
+ wrap_line_length: 110
1719
1718
  };
1720
1719
  }
1721
- return format$1(s, options);
1720
+ return js_beautify.html(s, options);
1722
1721
  }
1723
1722
  }
1724
1723