bruce-models 2.9.6 → 2.9.7

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.
@@ -265,36 +265,32 @@ class AbstractApi {
265
265
  }
266
266
  }
267
267
  GetCacheItem(key, reqParams) {
268
- return __awaiter(this, void 0, void 0, function* () {
269
- let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
270
- if (noCache == null) {
271
- noCache = Api.DEFAULT_NO_CACHE;
272
- }
273
- if (noCache) {
274
- return null;
275
- }
276
- return this.Cache.Get(key);
277
- });
268
+ let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
269
+ if (noCache == null) {
270
+ noCache = Api.DEFAULT_NO_CACHE;
271
+ }
272
+ if (noCache) {
273
+ return null;
274
+ }
275
+ return this.Cache.Get(key);
278
276
  }
279
277
  SetCacheItem(params) {
280
- return __awaiter(this, void 0, void 0, function* () {
281
- let { key, value, duration, req } = params;
282
- let noCache = req === null || req === void 0 ? void 0 : req.noCache;
283
- if (noCache == null) {
284
- noCache = Api.DEFAULT_NO_CACHE;
285
- }
286
- if (noCache) {
287
- return;
288
- }
289
- if (isNaN(duration)) {
290
- duration = Api.DEFAULT_CACHE_DURATION;
291
- }
292
- yield this.Cache.Set({
293
- id: key,
294
- data: value,
295
- duration,
296
- persistence: "memory"
297
- });
278
+ let { key, value, duration, req } = params;
279
+ let noCache = req === null || req === void 0 ? void 0 : req.noCache;
280
+ if (noCache == null) {
281
+ noCache = Api.DEFAULT_NO_CACHE;
282
+ }
283
+ if (noCache) {
284
+ return;
285
+ }
286
+ if (isNaN(duration)) {
287
+ duration = Api.DEFAULT_CACHE_DURATION;
288
+ }
289
+ this.Cache.Set({
290
+ id: key,
291
+ data: value,
292
+ duration,
293
+ persistence: "memory"
298
294
  });
299
295
  }
300
296
  GetSessionId() {
@@ -9108,7 +9104,7 @@ var DataSource;
9108
9104
  DataSource.GetList = GetList;
9109
9105
  })(DataSource || (DataSource = {}));
9110
9106
 
9111
- const VERSION = "2.9.6";
9107
+ const VERSION = "2.9.7";
9112
9108
 
9113
9109
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
9114
9110
  //# sourceMappingURL=bruce-models.es5.js.map