@kestra-io/ui-libs 0.0.7 → 0.0.8
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/package.json +1 -1
- package/src/utils/YamlUtils.js +2 -2
package/package.json
CHANGED
package/src/utils/YamlUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import JsYaml from "js-yaml";
|
|
2
2
|
import yaml, {Document, YAMLMap, isSeq, isMap, Pair, Scalar, YAMLSeq, LineCounter} from "yaml";
|
|
3
|
-
import
|
|
3
|
+
import {cloneDeep} from "lodash/cloneDeep"
|
|
4
4
|
import {SECTIONS} from "./constants.js";
|
|
5
5
|
|
|
6
6
|
const TOSTRING_OPTIONS = {lineWidth: 0};
|
|
@@ -15,7 +15,7 @@ export default class YamlUtils {
|
|
|
15
15
|
delete value.deleted
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
return JsYaml.dump(YamlUtils._transform(
|
|
18
|
+
return JsYaml.dump(YamlUtils._transform(cloneDeep(value)), {
|
|
19
19
|
lineWidth: -1,
|
|
20
20
|
noCompatMode: true,
|
|
21
21
|
quotingType: "\"",
|