@aspruyt/xfg 1.0.1 → 1.0.2
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/dist/config-formatter.js +9 -1
- package/package.json +1 -1
package/dist/config-formatter.js
CHANGED
|
@@ -88,7 +88,15 @@ export function convertContentToString(content, fileName, options) {
|
|
|
88
88
|
doc.commentBefore = headerComment;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
|
|
91
|
+
// Quote all string values for YAML 1.1 compatibility.
|
|
92
|
+
// The yaml library outputs YAML 1.2 where "06:00" is a plain string,
|
|
93
|
+
// but many tools (e.g., Dependabot) use YAML 1.1 parsers that interpret
|
|
94
|
+
// unquoted values like "06:00" as sexagesimal (360) or "yes"/"no" as booleans.
|
|
95
|
+
return stringify(doc, {
|
|
96
|
+
indent: 2,
|
|
97
|
+
defaultStringType: "QUOTE_DOUBLE",
|
|
98
|
+
defaultKeyType: "PLAIN",
|
|
99
|
+
});
|
|
92
100
|
}
|
|
93
101
|
if (format === "json5") {
|
|
94
102
|
// JSON5 format - output standard JSON (which is valid JSON5)
|
package/package.json
CHANGED