@diagrammo/dgmo 0.8.6 → 0.8.8

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.js CHANGED
@@ -1655,7 +1655,9 @@ function parseTagDeclaration(line10) {
1655
1655
  restStartIdx = 2;
1656
1656
  }
1657
1657
  } else {
1658
- const aliasKeywordIdx = tokens.findIndex((t, i) => i > 0 && t.toLowerCase() === "alias");
1658
+ const aliasKeywordIdx = tokens.findIndex(
1659
+ (t, i) => i > 0 && t.toLowerCase() === "alias"
1660
+ );
1659
1661
  if (aliasKeywordIdx > 0 && aliasKeywordIdx + 1 < tokens.length) {
1660
1662
  name = tokens.slice(0, aliasKeywordIdx).map((t) => stripQuotes(t)).join(" ");
1661
1663
  alias = tokens[aliasKeywordIdx + 1];
@@ -1717,9 +1719,7 @@ function resolveTagColor(metadata, tagGroups, activeGroupName, isContainer) {
1717
1719
  if (!group) return void 0;
1718
1720
  const metaValue = metadata[group.name.toLowerCase()] ?? (isContainer ? void 0 : group.defaultValue);
1719
1721
  if (!metaValue) return "#999999";
1720
- return group.entries.find(
1721
- (e) => e.value.toLowerCase() === metaValue.toLowerCase()
1722
- )?.color ?? "#999999";
1722
+ return group.entries.find((e) => e.value.toLowerCase() === metaValue.toLowerCase())?.color ?? "#999999";
1723
1723
  }
1724
1724
  function validateTagValues(entities, tagGroups, pushWarning, suggestFn) {
1725
1725
  if (tagGroups.length === 0) return;
@@ -1756,7 +1756,10 @@ function injectDefaultTagMetadata(entities, tagGroups, skip) {
1756
1756
  const defaults = [];
1757
1757
  for (const group of tagGroups) {
1758
1758
  if (group.defaultValue) {
1759
- defaults.push({ key: group.name.toLowerCase(), value: group.defaultValue });
1759
+ defaults.push({
1760
+ key: group.name.toLowerCase(),
1761
+ value: group.defaultValue
1762
+ });
1760
1763
  }
1761
1764
  }
1762
1765
  if (defaults.length === 0) return;