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.
- package/dist/bruce-models.es5.js +25 -29
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +25 -29
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +24 -28
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/api/abstract-api.d.ts +3 -3
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -270,36 +270,32 @@
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
GetCacheItem(key, reqParams) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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.
|
|
8873
|
+
const VERSION = "2.9.7";
|
|
8878
8874
|
|
|
8879
8875
|
exports.VERSION = VERSION;
|
|
8880
8876
|
exports.AbstractApi = AbstractApi;
|