@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.
@@ -88,7 +88,15 @@ export function convertContentToString(content, fileName, options) {
88
88
  doc.commentBefore = headerComment;
89
89
  }
90
90
  }
91
- return stringify(doc, { indent: 2 });
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspruyt/xfg",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI tool to sync JSON or YAML configuration files across multiple GitHub and Azure DevOps repositories",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",