@aspruyt/xfg 5.1.4 → 5.1.5

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.
@@ -135,6 +135,8 @@ function formatValuePlain(val) {
135
135
  return `"${val}"`;
136
136
  if (typeof val === "boolean")
137
137
  return val ? "true" : "false";
138
+ if (typeof val === "object")
139
+ return JSON.stringify(val);
138
140
  return String(val);
139
141
  }
140
142
  function formatRulesetConfigPlain(config) {
@@ -175,7 +177,9 @@ export function renderRepoSettingsDiffLines(repo, diffLines) {
175
177
  diffLines.push(`! ${path}: ${formatValuePlain(diff.oldValue)} → ${formatValuePlain(diff.newValue)}`);
176
178
  }
177
179
  else if (diff.action === "remove") {
178
- diffLines.push(`- ${path}`);
180
+ diffLines.push(diff.oldValue !== undefined
181
+ ? `- ${path}: ${formatValuePlain(diff.oldValue)}`
182
+ : `- ${path}`);
179
183
  }
180
184
  }
181
185
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspruyt/xfg",
3
- "version": "5.1.4",
3
+ "version": "5.1.5",
4
4
  "description": "Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",