@osovitny/anatoly 2.14.99 → 2.14.100
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 +9 -3
- package/fesm2015/osovitny-anatoly.mjs +8 -2
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +8 -2
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/converts/xmlFormatter.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1712,8 +1712,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
1712
1712
|
</file>
|
|
1713
1713
|
*/
|
|
1714
1714
|
class XmlFormatter {
|
|
1715
|
-
static toPrettyXML(s) {
|
|
1716
|
-
|
|
1715
|
+
static toPrettyXML(s, options) {
|
|
1716
|
+
if (!options) {
|
|
1717
|
+
options = {
|
|
1718
|
+
indentation: ' ',
|
|
1719
|
+
filter: (node) => node.type !== 'Comment'
|
|
1720
|
+
};
|
|
1721
|
+
}
|
|
1722
|
+
return format$1(s, options);
|
|
1717
1723
|
}
|
|
1718
1724
|
}
|
|
1719
1725
|
|