bruce-models 0.4.4 → 0.4.6
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 +11 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +11 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/calculator/calculator.js +10 -2
- package/dist/lib/calculator/calculator.js.map +1 -1
- package/dist/lib/entity/entity-type.js +1 -1
- package/dist/lib/entity/entity-type.js.map +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -1543,8 +1543,16 @@
|
|
|
1543
1543
|
value = BruceVariable.SwapValues(value, entity);
|
|
1544
1544
|
return eval(value);
|
|
1545
1545
|
}
|
|
1546
|
-
catch (
|
|
1547
|
-
|
|
1546
|
+
catch (exception) {
|
|
1547
|
+
var e = exception;
|
|
1548
|
+
var suppress = false;
|
|
1549
|
+
if (e && typeof e == "object") {
|
|
1550
|
+
var msg = e.message;
|
|
1551
|
+
suppress = !!msg && msg.includes("Unexpected end");
|
|
1552
|
+
}
|
|
1553
|
+
if (!suppress) {
|
|
1554
|
+
console.error(e);
|
|
1555
|
+
}
|
|
1548
1556
|
}
|
|
1549
1557
|
}
|
|
1550
1558
|
return value;
|
|
@@ -3105,7 +3113,7 @@
|
|
|
3105
3113
|
if (!data.Name) {
|
|
3106
3114
|
data.Name = data.ID;
|
|
3107
3115
|
}
|
|
3108
|
-
return [4 /*yield*/, api.POST("entitytype", data, exports.Api.PrepReqParams())];
|
|
3116
|
+
return [4 /*yield*/, api.POST("entitytype/" + data.ID, data, exports.Api.PrepReqParams())];
|
|
3109
3117
|
case 1:
|
|
3110
3118
|
data = _a.sent();
|
|
3111
3119
|
api.Cache.Remove(GetCacheKey(data.ID));
|