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.
- package/dist/bruce-models.es5.js +2 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +2 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/calculator/calculator.js +1 -1
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/entity/entity.js +1 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1610,7 +1610,7 @@ var Entity;
|
|
|
1610
1610
|
const pathStr = attrPaths[i];
|
|
1611
1611
|
const path = PathUtils.Parse(pathStr);
|
|
1612
1612
|
const name = Entity.GetValue(entity, path);
|
|
1613
|
-
if (name) {
|
|
1613
|
+
if (name && typeof name != "object") {
|
|
1614
1614
|
return name;
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
@@ -1915,7 +1915,7 @@ var Calculator;
|
|
|
1915
1915
|
let suppress = false;
|
|
1916
1916
|
if (e && typeof e == "object") {
|
|
1917
1917
|
const msg = e.message;
|
|
1918
|
-
suppress = !!msg && msg.includes("Unexpected end");
|
|
1918
|
+
suppress = !!msg && (msg.includes("Unexpected end") || msg.includes("got end of script"));
|
|
1919
1919
|
}
|
|
1920
1920
|
if (!suppress) {
|
|
1921
1921
|
console.error(e);
|