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.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
|
}
|
|
@@ -3979,11 +3979,11 @@ var ClientFile;
|
|
|
3979
3979
|
}
|
|
3980
3980
|
ClientFile.GetCacheKey = GetCacheKey;
|
|
3981
3981
|
function GetUrl(api, fileId) {
|
|
3982
|
-
return `${api.GetBaseUrl()}
|
|
3982
|
+
return `${api.GetBaseUrl()}file/${fileId}`;
|
|
3983
3983
|
}
|
|
3984
3984
|
ClientFile.GetUrl = GetUrl;
|
|
3985
3985
|
function GetUrlWithExt(api, file) {
|
|
3986
|
-
return `${api.GetBaseUrl()}
|
|
3986
|
+
return `${api.GetBaseUrl()}file/${file.ID}${file.FileExt ? file.FileExt : ""}`;
|
|
3987
3987
|
}
|
|
3988
3988
|
ClientFile.GetUrlWithExt = GetUrlWithExt;
|
|
3989
3989
|
function Get(api, fileId, reqParams) {
|