@bitcobblers/wod-wiki-core 0.51.2193 → 0.51.2195

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/index.cjs CHANGED
@@ -1496,11 +1496,26 @@ function patchFrontmatterProperty(raw, path, value) {
1496
1496
  }
1497
1497
  const lines = m[1] === "" ? [] : m[1].split(/\r?\n/);
1498
1498
  let effectivePath = path;
1499
- if (path.length === 1 && path[0].includes(".") && findProperty(lines, path[0], 0, 0, lines.length) === -1) {
1500
- const split = path[0].split(".");
1501
- const rootIdx = findProperty(lines, split[0], 0, 0, lines.length);
1502
- if (rootIdx !== -1 && propertyExtent(lines, rootIdx, 0).length > 1) {
1503
- effectivePath = split;
1499
+ if (path.length === 1 && findProperty(lines, path[0], 0, 0, lines.length) === -1) {
1500
+ if (path[0].includes(".")) {
1501
+ const split = path[0].split(".");
1502
+ const rootIdx = findProperty(lines, split[0], 0, 0, lines.length);
1503
+ if (rootIdx !== -1) {
1504
+ effectivePath = split;
1505
+ if (/:\s*(?:""|''|\{\})?\s*$/.test(lines[rootIdx])) {
1506
+ lines[rootIdx] = lines[rootIdx].replace(/:\s*(?:""|''|\{\})\s*$/, ":");
1507
+ }
1508
+ } else if (split[0] === "metrics" && (split[1] === "met" || split[1] === "disciplineFactor")) {
1509
+ const baseIdx = findProperty(lines, "baseAttributes", 0, 0, lines.length);
1510
+ if (baseIdx !== -1 && propertyExtent(lines, baseIdx, 0).length > 1) {
1511
+ effectivePath = ["baseAttributes", split[1]];
1512
+ }
1513
+ }
1514
+ } else if (path[0] === "discipline" || path[0] === "intensityTier") {
1515
+ const baseIdx = findProperty(lines, "baseAttributes", 0, 0, lines.length);
1516
+ if (baseIdx !== -1 && propertyExtent(lines, baseIdx, 0).length > 1) {
1517
+ effectivePath = ["baseAttributes", path[0]];
1518
+ }
1504
1519
  }
1505
1520
  }
1506
1521
  let searchStart = 0;
@@ -1589,7 +1604,7 @@ function parseMetaLines(lines) {
1589
1604
  }
1590
1605
  if (items.length > 0) {
1591
1606
  meta[key] = items;
1592
- } else if (key === "metrics" || key === "summaries" || key === "widgets") {
1607
+ } else if (key === "metrics" || key === "summaries" || key === "widgets" || key === "baseAttributes") {
1593
1608
  while (i + 1 < lines.length) {
1594
1609
  const childLine = lines[i + 1];
1595
1610
  if (/^\s*(?:#.*)?$/.test(childLine)) {
@@ -1599,7 +1614,8 @@ function parseMetaLines(lines) {
1599
1614
  const childMatch = childLine.match(/^\s{2,}([A-Za-z][\w.-]*)\s*:(.*)$/);
1600
1615
  if (!childMatch) break;
1601
1616
  i++;
1602
- const childKey = `${key}.${childMatch[1]}`;
1617
+ const childName = childMatch[1];
1618
+ const childKey = key === "baseAttributes" ? childName === "met" || childName === "disciplineFactor" ? `metrics.${childName}` : childName : `${key}.${childName}`;
1603
1619
  const childRaw = childMatch[2].trim();
1604
1620
  if (childRaw === "") {
1605
1621
  const childItems = [];
@@ -1724,13 +1740,13 @@ function parseFrontmatterProps(lines) {
1724
1740
  }
1725
1741
 
1726
1742
  // src/version.ts
1727
- var VERSION = "0.51.2193";
1728
- var GIT_SHA = "2b8e999";
1729
- var BUILD_TIME = "2026-11-04T19:02:01.054Z";
1743
+ var VERSION = "0.51.2195";
1744
+ var GIT_SHA = "79e6e99";
1745
+ var BUILD_TIME = "2026-11-05T22:34:59.062Z";
1730
1746
  var SEMVER = {
1731
- version: "0.51.2193",
1732
- gitSha: "2b8e999",
1733
- buildTime: "2026-11-04T19:02:01.054Z"
1747
+ version: "0.51.2195",
1748
+ gitSha: "79e6e99",
1749
+ buildTime: "2026-11-05T22:34:59.062Z"
1734
1750
  };
1735
1751
 
1736
1752
  exports.BUILD_TIME = BUILD_TIME;