bruce-models 1.0.7 → 1.0.9

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.
@@ -1581,7 +1581,7 @@
1581
1581
  const pathStr = attrPaths[i];
1582
1582
  const path = exports.PathUtils.Parse(pathStr);
1583
1583
  const name = Entity.GetValue(entity, path);
1584
- if (name) {
1584
+ if (name && typeof name != "object") {
1585
1585
  return name;
1586
1586
  }
1587
1587
  }
@@ -1874,7 +1874,7 @@
1874
1874
  let suppress = false;
1875
1875
  if (e && typeof e == "object") {
1876
1876
  const msg = e.message;
1877
- suppress = !!msg && msg.includes("Unexpected end");
1877
+ suppress = !!msg && (msg.includes("Unexpected end") || msg.includes("got end of script"));
1878
1878
  }
1879
1879
  if (!suppress) {
1880
1880
  console.error(e);