bruce-models 7.1.18 → 7.1.19
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 +14 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +14 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +13 -3
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -3925,7 +3925,15 @@ var Entity;
|
|
|
3925
3925
|
});
|
|
3926
3926
|
const cache = api.GetCacheItem(key, reqParams);
|
|
3927
3927
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
3928
|
-
|
|
3928
|
+
const cachedData = cache.data;
|
|
3929
|
+
if (cachedData instanceof Promise || (typeof cachedData === "object" && typeof cachedData.then === "function")) {
|
|
3930
|
+
return cachedData;
|
|
3931
|
+
}
|
|
3932
|
+
else {
|
|
3933
|
+
return Promise.resolve({
|
|
3934
|
+
entity: cachedData
|
|
3935
|
+
});
|
|
3936
|
+
}
|
|
3929
3937
|
}
|
|
3930
3938
|
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
3931
3939
|
try {
|
|
@@ -4204,8 +4212,10 @@ var Entity;
|
|
|
4204
4212
|
const req = crashRiskReqs[i];
|
|
4205
4213
|
try {
|
|
4206
4214
|
const data = yield req;
|
|
4207
|
-
|
|
4208
|
-
|
|
4215
|
+
// Handle both wrapped and direct-Entity blobs.
|
|
4216
|
+
const entity = (data === null || data === void 0 ? void 0 : data.entity) || ((data === null || data === void 0 ? void 0 : data.Bruce) ? data : null);
|
|
4217
|
+
if (entity) {
|
|
4218
|
+
entities.push(entity);
|
|
4209
4219
|
}
|
|
4210
4220
|
}
|
|
4211
4221
|
catch (e) {
|
|
@@ -17451,7 +17461,7 @@ var ChangeSet;
|
|
|
17451
17461
|
})(ChangeSet || (ChangeSet = {}));
|
|
17452
17462
|
|
|
17453
17463
|
// This is updated with the package.json version on build.
|
|
17454
|
-
const VERSION = "7.1.
|
|
17464
|
+
const VERSION = "7.1.19";
|
|
17455
17465
|
|
|
17456
17466
|
export { VERSION, Assembly, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityTypeTrigger, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, UserMfaMethod, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient, ChangeSet };
|
|
17457
17467
|
//# sourceMappingURL=bruce-models.es5.js.map
|