@bitcobblers/wod-wiki-core 0.51.2194 → 0.51.2196

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;
@@ -1724,13 +1739,13 @@ function parseFrontmatterProps(lines) {
1724
1739
  }
1725
1740
 
1726
1741
  // src/version.ts
1727
- var VERSION = "0.51.2194";
1728
- var GIT_SHA = "c5beefc";
1729
- var BUILD_TIME = "2026-11-04T20:04:08.561Z";
1742
+ var VERSION = "0.51.2196";
1743
+ var GIT_SHA = "817bc28";
1744
+ var BUILD_TIME = "2026-11-05T23:36:56.914Z";
1730
1745
  var SEMVER = {
1731
- version: "0.51.2194",
1732
- gitSha: "c5beefc",
1733
- buildTime: "2026-11-04T20:04:08.561Z"
1746
+ version: "0.51.2196",
1747
+ gitSha: "817bc28",
1748
+ buildTime: "2026-11-05T23:36:56.914Z"
1734
1749
  };
1735
1750
 
1736
1751
  exports.BUILD_TIME = BUILD_TIME;