@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
|
@@ -12,36 +12,23 @@
|
|
|
12
12
|
|
|
13
13
|
Code:
|
|
14
14
|
https://www.npmjs.com/package/js-beautify
|
|
15
|
+
https://beautifier.io
|
|
15
16
|
|
|
16
17
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
17
18
|
</file>
|
|
18
19
|
*/
|
|
19
20
|
//var beautify_html = require('js-beautify').html;
|
|
20
|
-
import
|
|
21
|
+
import js_beautify from 'js-beautify';
|
|
21
22
|
export class XmlFormatter {
|
|
22
23
|
static toPrettyXML(s, options) {
|
|
23
24
|
if (!options) {
|
|
24
25
|
options = {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"preserve_newlines": true,
|
|
29
|
-
"keep_array_indentation": false,
|
|
30
|
-
"break_chained_methods": false,
|
|
31
|
-
"indent_scripts": "normal",
|
|
32
|
-
"brace_style": "collapse",
|
|
33
|
-
"space_before_conditional": true,
|
|
34
|
-
"unescape_strings": false,
|
|
35
|
-
"jslint_happy": false,
|
|
36
|
-
"end_with_newline": false,
|
|
37
|
-
"wrap_line_length": "110",
|
|
38
|
-
"indent_inner_html": false,
|
|
39
|
-
"comma_first": false,
|
|
40
|
-
"e4x": false,
|
|
41
|
-
"indent_empty_lines": false
|
|
26
|
+
indent_size: 2,
|
|
27
|
+
indent_char: " ",
|
|
28
|
+
wrap_line_length: 110
|
|
42
29
|
};
|
|
43
30
|
}
|
|
44
|
-
return
|
|
31
|
+
return js_beautify.html(s, options);
|
|
45
32
|
}
|
|
46
33
|
}
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieG1sRm9ybWF0dGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL2NvcmUvY29udmVydHMveG1sRm9ybWF0dGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7Ozs7Ozs7RUFrQkU7QUFFRixrREFBa0Q7QUFDbEQsT0FBTyxXQUFXLE1BQU0sYUFBYSxDQUFBO0FBR3JDLE1BQU0sT0FBTyxZQUFZO0lBQ2hCLE1BQU0sQ0FBQyxXQUFXLENBQUMsQ0FBUyxFQUFFLE9BQTZCO1FBQ2hFLElBQUksQ0FBQyxPQUFPLEVBQUU7WUFDWixPQUFPLEdBQUc7Z0JBQ1IsV0FBVyxFQUFFLENBQUM7Z0JBQ2QsV0FBVyxFQUFFLEdBQUc7Z0JBQ2hCLGdCQUFnQixFQUFFLEdBQUc7YUFDdEIsQ0FBQTtTQUNGO1FBRUQsT0FBTyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUN0QyxDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG48ZmlsZT5cclxuICBQcm9qZWN0OlxyXG4gICAgQG9zb3ZpdG55L2FuYXRvbHlcclxuXHJcbiAgQXV0aG9yczpcclxuICAgIFZhZGltIE9zb3ZpdG55IHZhZGltQG9zb3ZpdG55LmNvbVxyXG4gICAgQW5hdG9seSBPc292aXRueSBhbmF0b2x5QG9zb3ZpdG55LmNvbVxyXG5cclxuICBDcmVhdGVkOlxyXG4gICAgMTAgU2VwIDIwMjJcclxuXHJcbiAgQ29kZTpcclxuICAgIGh0dHBzOi8vd3d3Lm5wbWpzLmNvbS9wYWNrYWdlL2pzLWJlYXV0aWZ5XHJcbiAgICBodHRwczovL2JlYXV0aWZpZXIuaW9cclxuXHJcbiAgQ29weXJpZ2h0IChjKSAyMDE2LTIwMjIgT3Nvdml0bnkgSW5jLiBBbGwgcmlnaHRzIHJlc2VydmVkLlxyXG48L2ZpbGU+XHJcbiovXHJcblxyXG4vL3ZhciBiZWF1dGlmeV9odG1sID0gcmVxdWlyZSgnanMtYmVhdXRpZnknKS5odG1sO1xyXG5pbXBvcnQganNfYmVhdXRpZnkgZnJvbSAnanMtYmVhdXRpZnknXHJcbmltcG9ydCB7IEhUTUxCZWF1dGlmeU9wdGlvbnMgfSBmcm9tICdqcy1iZWF1dGlmeSdcclxuXHJcbmV4cG9ydCBjbGFzcyBYbWxGb3JtYXR0ZXIge1xyXG4gIHB1YmxpYyBzdGF0aWMgdG9QcmV0dHlYTUwoczogc3RyaW5nLCBvcHRpb25zPzogSFRNTEJlYXV0aWZ5T3B0aW9ucyk6IHN0cmluZyB7XHJcbiAgICBpZiAoIW9wdGlvbnMpIHtcclxuICAgICAgb3B0aW9ucyA9IHtcclxuICAgICAgICBpbmRlbnRfc2l6ZTogMixcclxuICAgICAgICBpbmRlbnRfY2hhcjogXCIgXCIsXHJcbiAgICAgICAgd3JhcF9saW5lX2xlbmd0aDogMTEwXHJcbiAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICByZXR1cm4ganNfYmVhdXRpZnkuaHRtbChzLCBvcHRpb25zKTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -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';
|
|
@@ -1689,6 +1689,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
1689
1689
|
|
|
1690
1690
|
Code:
|
|
1691
1691
|
https://www.npmjs.com/package/js-beautify
|
|
1692
|
+
https://beautifier.io
|
|
1692
1693
|
|
|
1693
1694
|
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
1694
1695
|
</file>
|
|
@@ -1697,26 +1698,12 @@ class XmlFormatter {
|
|
|
1697
1698
|
static toPrettyXML(s, options) {
|
|
1698
1699
|
if (!options) {
|
|
1699
1700
|
options = {
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
"preserve_newlines": true,
|
|
1704
|
-
"keep_array_indentation": false,
|
|
1705
|
-
"break_chained_methods": false,
|
|
1706
|
-
"indent_scripts": "normal",
|
|
1707
|
-
"brace_style": "collapse",
|
|
1708
|
-
"space_before_conditional": true,
|
|
1709
|
-
"unescape_strings": false,
|
|
1710
|
-
"jslint_happy": false,
|
|
1711
|
-
"end_with_newline": false,
|
|
1712
|
-
"wrap_line_length": "110",
|
|
1713
|
-
"indent_inner_html": false,
|
|
1714
|
-
"comma_first": false,
|
|
1715
|
-
"e4x": false,
|
|
1716
|
-
"indent_empty_lines": false
|
|
1701
|
+
indent_size: 2,
|
|
1702
|
+
indent_char: " ",
|
|
1703
|
+
wrap_line_length: 110
|
|
1717
1704
|
};
|
|
1718
1705
|
}
|
|
1719
|
-
return
|
|
1706
|
+
return js_beautify.html(s, options);
|
|
1720
1707
|
}
|
|
1721
1708
|
}
|
|
1722
1709
|
|