bruce-models 6.6.3 → 6.6.4

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.
@@ -6950,18 +6950,25 @@ var EntityLod;
6950
6950
  const cacheKey = GetLodsFilterCacheKey(filter);
6951
6951
  const cache = api.GetCacheItem(cacheKey, reqParams);
6952
6952
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
6953
- return cache.data;
6953
+ return yield cache.data;
6954
6954
  }
6955
- const prom = api.POST("entity/getlods", filter, reqParams);
6955
+ const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
6956
+ try {
6957
+ const data = yield api.POST("entity/getlods", filter, reqParams);
6958
+ res({
6959
+ lods: data.Items || []
6960
+ });
6961
+ }
6962
+ catch (e) {
6963
+ rej(e);
6964
+ }
6965
+ }));
6956
6966
  api.SetCacheItem({
6957
6967
  key: cacheKey,
6958
6968
  value: prom,
6959
6969
  req: reqParams
6960
6970
  });
6961
- const data = yield prom;
6962
- return {
6963
- lods: data.Items
6964
- };
6971
+ return yield prom;
6965
6972
  });
6966
6973
  }
6967
6974
  EntityLod.GetLods = GetLods;
@@ -16432,7 +16439,7 @@ var Tracking;
16432
16439
  })(Tracking || (Tracking = {}));
16433
16440
 
16434
16441
  // This is updated with the package.json version on build.
16435
- const VERSION = "6.6.3";
16442
+ const VERSION = "6.6.4";
16436
16443
 
16437
16444
  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, 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 };
16438
16445
  //# sourceMappingURL=bruce-models.es5.js.map