@osovitny/anatoly 2.14.103 → 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.
- package/esm2020/lib/core/converts/xmlFormatter.mjs +7 -20
- package/fesm2015/osovitny-anatoly.mjs +6 -19
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +6 -19
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/converts/xmlFormatter.d.ts +2 -1
- package/package.json +1 -1
|
@@ -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 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';
|
|
@@ -1703,6 +1703,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
1703
1703
|
|
|
1704
1704
|
Code:
|
|
1705
1705
|
https://www.npmjs.com/package/js-beautify
|
|
1706
|
+
https://beautifier.io
|
|
1706
1707
|
|
|
1707
1708
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
1708
1709
|
</file>
|
|
@@ -1711,26 +1712,12 @@ class XmlFormatter {
|
|
|
1711
1712
|
static toPrettyXML(s, options) {
|
|
1712
1713
|
if (!options) {
|
|
1713
1714
|
options = {
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
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
|
|
1715
|
+
indent_size: 2,
|
|
1716
|
+
indent_char: " ",
|
|
1717
|
+
wrap_line_length: 110
|
|
1731
1718
|
};
|
|
1732
1719
|
}
|
|
1733
|
-
return
|
|
1720
|
+
return js_beautify.html(s, options);
|
|
1734
1721
|
}
|
|
1735
1722
|
}
|
|
1736
1723
|
|