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.
@@ -270,36 +270,32 @@
270
270
  }
271
271
  }
272
272
  GetCacheItem(key, reqParams) {
273
- return __awaiter(this, void 0, void 0, function* () {
274
- let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
275
- if (noCache == null) {
276
- noCache = exports.Api.DEFAULT_NO_CACHE;
277
- }
278
- if (noCache) {
279
- return null;
280
- }
281
- return this.Cache.Get(key);
282
- });
273
+ let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
274
+ if (noCache == null) {
275
+ noCache = exports.Api.DEFAULT_NO_CACHE;
276
+ }
277
+ if (noCache) {
278
+ return null;
279
+ }
280
+ return this.Cache.Get(key);
283
281
  }
284
282
  SetCacheItem(params) {
285
- return __awaiter(this, void 0, void 0, function* () {
286
- let { key, value, duration, req } = params;
287
- let noCache = req === null || req === void 0 ? void 0 : req.noCache;
288
- if (noCache == null) {
289
- noCache = exports.Api.DEFAULT_NO_CACHE;
290
- }
291
- if (noCache) {
292
- return;
293
- }
294
- if (isNaN(duration)) {
295
- duration = exports.Api.DEFAULT_CACHE_DURATION;
296
- }
297
- yield this.Cache.Set({
298
- id: key,
299
- data: value,
300
- duration,
301
- persistence: "memory"
302
- });
283
+ let { key, value, duration, req } = params;
284
+ let noCache = req === null || req === void 0 ? void 0 : req.noCache;
285
+ if (noCache == null) {
286
+ noCache = exports.Api.DEFAULT_NO_CACHE;
287
+ }
288
+ if (noCache) {
289
+ return;
290
+ }
291
+ if (isNaN(duration)) {
292
+ duration = exports.Api.DEFAULT_CACHE_DURATION;
293
+ }
294
+ this.Cache.Set({
295
+ id: key,
296
+ data: value,
297
+ duration,
298
+ persistence: "memory"
303
299
  });
304
300
  }
305
301
  GetSessionId() {
@@ -8874,7 +8870,7 @@
8874
8870
  DataSource.GetList = GetList;
8875
8871
  })(exports.DataSource || (exports.DataSource = {}));
8876
8872
 
8877
- const VERSION = "2.9.6";
8873
+ const VERSION = "2.9.7";
8878
8874
 
8879
8875
  exports.VERSION = VERSION;
8880
8876
  exports.AbstractApi = AbstractApi;