bruce-models 5.4.4 → 5.4.5
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 +15 -15
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +15 -15
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +14 -14
- 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.umd.js
CHANGED
|
@@ -3216,11 +3216,23 @@
|
|
|
3216
3216
|
if (!api) {
|
|
3217
3217
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
3218
3218
|
}
|
|
3219
|
+
const cacheKeyData = {
|
|
3220
|
+
expandLocation,
|
|
3221
|
+
expandRelations,
|
|
3222
|
+
expandImports,
|
|
3223
|
+
expandSources,
|
|
3224
|
+
entityTypeId: null,
|
|
3225
|
+
historicFrom: historicFrom,
|
|
3226
|
+
historicKey: historicKey,
|
|
3227
|
+
historicTo: historicTo,
|
|
3228
|
+
historicPoint: historicPoint,
|
|
3229
|
+
schemaId: schemaId
|
|
3230
|
+
};
|
|
3219
3231
|
const crashRiskReqs = [];
|
|
3220
3232
|
const reqIds = [];
|
|
3221
3233
|
for (let i = 0; i < entityIds.length; i++) {
|
|
3222
3234
|
const entityId = entityIds[i];
|
|
3223
|
-
const key = GetCacheKey({
|
|
3235
|
+
const key = GetCacheKey(Object.assign(Object.assign({}, cacheKeyData), { entityId }));
|
|
3224
3236
|
const cache = api.GetCacheItem(key, reqParams);
|
|
3225
3237
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
3226
3238
|
crashRiskReqs.push(cache.data);
|
|
@@ -3285,19 +3297,7 @@
|
|
|
3285
3297
|
const req = api.POST(url, reqData, exports.Api.PrepReqParams(reqParams));
|
|
3286
3298
|
for (let i = 0; i < reqIds.length; i++) {
|
|
3287
3299
|
const entityId = reqIds[i];
|
|
3288
|
-
const key = GetCacheKey({
|
|
3289
|
-
entityId,
|
|
3290
|
-
expandLocation,
|
|
3291
|
-
expandRelations,
|
|
3292
|
-
expandImports,
|
|
3293
|
-
expandSources,
|
|
3294
|
-
entityTypeId: null,
|
|
3295
|
-
historicFrom: historicFrom,
|
|
3296
|
-
historicKey: historicKey,
|
|
3297
|
-
historicTo: historicTo,
|
|
3298
|
-
historicPoint: historicPoint,
|
|
3299
|
-
schemaId: schemaId
|
|
3300
|
-
});
|
|
3300
|
+
const key = GetCacheKey(Object.assign(Object.assign({}, cacheKeyData), { entityId }));
|
|
3301
3301
|
const prom = new Promise((res) => __awaiter(this, void 0, void 0, function* () {
|
|
3302
3302
|
try {
|
|
3303
3303
|
const data = yield req;
|
|
@@ -14477,7 +14477,7 @@
|
|
|
14477
14477
|
})(exports.DataSource || (exports.DataSource = {}));
|
|
14478
14478
|
|
|
14479
14479
|
// This is updated with the package.json version on build.
|
|
14480
|
-
const VERSION = "5.4.
|
|
14480
|
+
const VERSION = "5.4.5";
|
|
14481
14481
|
|
|
14482
14482
|
exports.VERSION = VERSION;
|
|
14483
14483
|
exports.AbstractApi = AbstractApi;
|