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.es5.js
CHANGED
|
@@ -3259,11 +3259,23 @@ var Entity;
|
|
|
3259
3259
|
if (!api) {
|
|
3260
3260
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
3261
3261
|
}
|
|
3262
|
+
const cacheKeyData = {
|
|
3263
|
+
expandLocation,
|
|
3264
|
+
expandRelations,
|
|
3265
|
+
expandImports,
|
|
3266
|
+
expandSources,
|
|
3267
|
+
entityTypeId: null,
|
|
3268
|
+
historicFrom: historicFrom,
|
|
3269
|
+
historicKey: historicKey,
|
|
3270
|
+
historicTo: historicTo,
|
|
3271
|
+
historicPoint: historicPoint,
|
|
3272
|
+
schemaId: schemaId
|
|
3273
|
+
};
|
|
3262
3274
|
const crashRiskReqs = [];
|
|
3263
3275
|
const reqIds = [];
|
|
3264
3276
|
for (let i = 0; i < entityIds.length; i++) {
|
|
3265
3277
|
const entityId = entityIds[i];
|
|
3266
|
-
const key = GetCacheKey({
|
|
3278
|
+
const key = GetCacheKey(Object.assign(Object.assign({}, cacheKeyData), { entityId }));
|
|
3267
3279
|
const cache = api.GetCacheItem(key, reqParams);
|
|
3268
3280
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
3269
3281
|
crashRiskReqs.push(cache.data);
|
|
@@ -3328,19 +3340,7 @@ var Entity;
|
|
|
3328
3340
|
const req = api.POST(url, reqData, Api.PrepReqParams(reqParams));
|
|
3329
3341
|
for (let i = 0; i < reqIds.length; i++) {
|
|
3330
3342
|
const entityId = reqIds[i];
|
|
3331
|
-
const key = GetCacheKey({
|
|
3332
|
-
entityId,
|
|
3333
|
-
expandLocation,
|
|
3334
|
-
expandRelations,
|
|
3335
|
-
expandImports,
|
|
3336
|
-
expandSources,
|
|
3337
|
-
entityTypeId: null,
|
|
3338
|
-
historicFrom: historicFrom,
|
|
3339
|
-
historicKey: historicKey,
|
|
3340
|
-
historicTo: historicTo,
|
|
3341
|
-
historicPoint: historicPoint,
|
|
3342
|
-
schemaId: schemaId
|
|
3343
|
-
});
|
|
3343
|
+
const key = GetCacheKey(Object.assign(Object.assign({}, cacheKeyData), { entityId }));
|
|
3344
3344
|
const prom = new Promise((res) => __awaiter(this, void 0, void 0, function* () {
|
|
3345
3345
|
try {
|
|
3346
3346
|
const data = yield req;
|
|
@@ -14758,7 +14758,7 @@ var DataSource;
|
|
|
14758
14758
|
})(DataSource || (DataSource = {}));
|
|
14759
14759
|
|
|
14760
14760
|
// This is updated with the package.json version on build.
|
|
14761
|
-
const VERSION = "5.4.
|
|
14761
|
+
const VERSION = "5.4.5";
|
|
14762
14762
|
|
|
14763
14763
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14764
14764
|
//# sourceMappingURL=bruce-models.es5.js.map
|