bruce-models 1.0.6 → 1.0.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/bruce-models.es5.js +3 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +3 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/client-file/client-file.js +2 -2
- package/dist/lib/client-file/client-file.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
|
}
|
|
@@ -3856,11 +3856,11 @@
|
|
|
3856
3856
|
}
|
|
3857
3857
|
ClientFile.GetCacheKey = GetCacheKey;
|
|
3858
3858
|
function GetUrl(api, fileId) {
|
|
3859
|
-
return `${api.GetBaseUrl()}
|
|
3859
|
+
return `${api.GetBaseUrl()}file/${fileId}`;
|
|
3860
3860
|
}
|
|
3861
3861
|
ClientFile.GetUrl = GetUrl;
|
|
3862
3862
|
function GetUrlWithExt(api, file) {
|
|
3863
|
-
return `${api.GetBaseUrl()}
|
|
3863
|
+
return `${api.GetBaseUrl()}file/${file.ID}${file.FileExt ? file.FileExt : ""}`;
|
|
3864
3864
|
}
|
|
3865
3865
|
ClientFile.GetUrlWithExt = GetUrlWithExt;
|
|
3866
3866
|
function Get(api, fileId, reqParams) {
|