fix: read yaml with intAsBigInt

This commit is contained in:
ShareVB committed 2025-07-18 18:45:39 +02:00
1 parent e5d842571b
commit 0d4267e356
2 files changed
+2 -2

No files matched your search

@@ -30,7 +30,7 @@ function fromProperties(value: string) {
}
function toProperties(value: string) {
try {
return properties.stringify(flatten(yaml.parse(value)));
return properties.stringify(flatten(yaml.parse(value, { intAsBigInt: true })));
}
catch (e: any) {
return e.toString();
@@ -9,7 +9,7 @@ const nestify = ref(false);
function transformer(value: string) {
return withDefaultOnError(() => {
let obj = parseYaml(value, { merge: true });
let obj = parseYaml(value, { merge: true, intAsBigInt: true });
if (nestify.value) {
if (obj && Array.isArray(obj)) {
obj = (obj as any[]).map(o => nestifyObject(o));