bruce-models 6.0.0 → 6.0.1
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 +9 -2
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +9 -2
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js +8 -1
- 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
|
@@ -4026,6 +4026,9 @@
|
|
|
4026
4026
|
api = exports.ENVIRONMENT.Api().GetBruceApi();
|
|
4027
4027
|
}
|
|
4028
4028
|
let requestFilter = {};
|
|
4029
|
+
if (!filter) {
|
|
4030
|
+
filter = {};
|
|
4031
|
+
}
|
|
4029
4032
|
if (filter.entityTypeConditions) {
|
|
4030
4033
|
requestFilter = Object.assign({}, filter.entityTypeConditions);
|
|
4031
4034
|
}
|
|
@@ -4196,6 +4199,10 @@
|
|
|
4196
4199
|
if (!analysis) {
|
|
4197
4200
|
entities = data.Items;
|
|
4198
4201
|
// Only caching when non-CDN.
|
|
4202
|
+
let typeIdCacheKey = null;
|
|
4203
|
+
if (filter.entityTypeId) {
|
|
4204
|
+
typeIdCacheKey = typeof filter.entityTypeId == "string" ? filter.entityTypeId : filter.entityTypeId.join(",");
|
|
4205
|
+
}
|
|
4199
4206
|
for (let i = 0; i < entities.length; i++) {
|
|
4200
4207
|
const entity = entities[i];
|
|
4201
4208
|
const id = entity.Bruce.ID;
|
|
@@ -4206,7 +4213,7 @@
|
|
|
4206
4213
|
expandLocation,
|
|
4207
4214
|
expandImports,
|
|
4208
4215
|
expandSources,
|
|
4209
|
-
entityTypeId:
|
|
4216
|
+
entityTypeId: typeIdCacheKey,
|
|
4210
4217
|
historicFrom: historicFrom,
|
|
4211
4218
|
historicKey: historicKey,
|
|
4212
4219
|
historicTo: historicTo,
|
|
@@ -15384,7 +15391,7 @@
|
|
|
15384
15391
|
})(exports.Scenario || (exports.Scenario = {}));
|
|
15385
15392
|
|
|
15386
15393
|
// This is updated with the package.json version on build.
|
|
15387
|
-
const VERSION = "6.0.
|
|
15394
|
+
const VERSION = "6.0.1";
|
|
15388
15395
|
|
|
15389
15396
|
exports.VERSION = VERSION;
|
|
15390
15397
|
exports.AbstractApi = AbstractApi;
|