mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 14:56:17 -04:00
fix(yaml-viewer): prevent large integers from being converted to exponential notation by enabling inAsBigInt config
This commit is contained in:
parent
08d977b8cd
commit
0bdb04b038
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function formatYaml({
|
|||
sortKeys?: MaybeRef<boolean>
|
||||
indentSize?: MaybeRef<number>
|
||||
}) {
|
||||
const parsedYaml = yaml.parse(get(rawYaml));
|
||||
const parsedYaml = yaml.parse(get(rawYaml), { intAsBigInt: true });
|
||||
|
||||
const formattedYAML = yaml.stringify(parsedYaml, {
|
||||
sortMapEntries: get(sortKeys),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue