@futurelastic/colab-handbook 1.15.0-rc.6 → 1.15.1-rc.1

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.
Files changed (2) hide show
  1. package/audit/audit.mjs +11 -2
  2. package/package.json +1 -1
package/audit/audit.mjs CHANGED
@@ -264,7 +264,9 @@ function parseScalarValue(raw) {
264
264
  return val;
265
265
  }
266
266
 
267
- const NESTED_MAP_KEYS = new Set(["release", "owner", "gate", "thresholds"]); // owner: #394 · gate: #410 · thresholds: #560
267
+ const NESTED_MAP_KEYS = new Set(["release", "owner", "gate", "thresholds", "contention"]); // owner: #394 · gate: #410 · thresholds: #560 · contention: #630
268
+ // The one map whose pairs may hold an INLINE list (`coupled: [a, b]`) — still one level, still no block list (#630).
269
+ const LIST_IN_MAP_KEYS = new Set(["contention"]);
268
270
 
269
271
  function parseFlatYaml(text) {
270
272
  const out = {};
@@ -291,7 +293,14 @@ function parseFlatYaml(text) {
291
293
  const [, indent, sub, subRaw] = pair;
292
294
  if (mapIndent === null) mapIndent = indent.length;
293
295
  const subTrimmed = subRaw.replace(/\s+#.*$/, "").trim();
294
- if (indent.length === mapIndent && subTrimmed !== "" && !/^\[.*\]$/.test(subTrimmed)) {
296
+ const inlineList = /^\[.*\]$/.test(subTrimmed);
297
+ if (indent.length === mapIndent && inlineList && LIST_IN_MAP_KEYS.has(mapKey)) {
298
+ if (out[mapKey] === null || typeof out[mapKey] !== "object") out[mapKey] = {};
299
+ const inner = subTrimmed.slice(1, -1).trim();
300
+ out[mapKey][sub] = inner === "" ? [] : inner.split(",").map((s) => parseScalarValue(s));
301
+ return;
302
+ }
303
+ if (indent.length === mapIndent && subTrimmed !== "" && !inlineList) {
295
304
  if (out[mapKey] === null || typeof out[mapKey] !== "object") out[mapKey] = {};
296
305
  // #439: an unquoted whole number under `release:` is a number, as the CLI's YAML reader
297
306
  // reads it (`candidates-per-day: 1`, `final-grant: 7`) — kept a string, the one reading
package/package.json CHANGED
@@ -33,5 +33,5 @@
33
33
  "engines": {
34
34
  "node": ">=18"
35
35
  },
36
- "version": "1.15.0-rc.6"
36
+ "version": "1.15.1-rc.1"
37
37
  }