@osovitny/anatoly 2.14.102 → 2.14.103
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
|
|
22
|
+
import beautify_html 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,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
1702
1702
|
10 Sep 2022
|
|
1703
1703
|
|
|
1704
1704
|
Code:
|
|
1705
|
-
https://
|
|
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
|
|
1709
1706
|
|
|
1710
1707
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
1711
1708
|
</file>
|
|
@@ -1714,11 +1711,26 @@ class XmlFormatter {
|
|
|
1714
1711
|
static toPrettyXML(s, options) {
|
|
1715
1712
|
if (!options) {
|
|
1716
1713
|
options = {
|
|
1717
|
-
|
|
1718
|
-
|
|
1714
|
+
"indent_size": "2",
|
|
1715
|
+
"indent_char": " ",
|
|
1716
|
+
"max_preserve_newlines": "5",
|
|
1717
|
+
"preserve_newlines": true,
|
|
1718
|
+
"keep_array_indentation": false,
|
|
1719
|
+
"break_chained_methods": false,
|
|
1720
|
+
"indent_scripts": "normal",
|
|
1721
|
+
"brace_style": "collapse",
|
|
1722
|
+
"space_before_conditional": true,
|
|
1723
|
+
"unescape_strings": false,
|
|
1724
|
+
"jslint_happy": false,
|
|
1725
|
+
"end_with_newline": false,
|
|
1726
|
+
"wrap_line_length": "110",
|
|
1727
|
+
"indent_inner_html": false,
|
|
1728
|
+
"comma_first": false,
|
|
1729
|
+
"e4x": false,
|
|
1730
|
+
"indent_empty_lines": false
|
|
1719
1731
|
};
|
|
1720
1732
|
}
|
|
1721
|
-
return
|
|
1733
|
+
return beautify_html(s, options);
|
|
1722
1734
|
}
|
|
1723
1735
|
}
|
|
1724
1736
|
|