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.umd.js
CHANGED
|
@@ -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);
|