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.es5.js
CHANGED
|
@@ -265,36 +265,32 @@ class AbstractApi {
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
GetCacheItem(key, reqParams) {
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
return this.Cache.Get(key);
|
|
277
|
-
});
|
|
268
|
+
let noCache = reqParams === null || reqParams === void 0 ? void 0 : reqParams.noCache;
|
|
269
|
+
if (noCache == null) {
|
|
270
|
+
noCache = Api.DEFAULT_NO_CACHE;
|
|
271
|
+
}
|
|
272
|
+
if (noCache) {
|
|
273
|
+
return null;
|
|
274
|
+
}
|
|
275
|
+
return this.Cache.Get(key);
|
|
278
276
|
}
|
|
279
277
|
SetCacheItem(params) {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
persistence: "memory"
|
|
297
|
-
});
|
|
278
|
+
let { key, value, duration, req } = params;
|
|
279
|
+
let noCache = req === null || req === void 0 ? void 0 : req.noCache;
|
|
280
|
+
if (noCache == null) {
|
|
281
|
+
noCache = Api.DEFAULT_NO_CACHE;
|
|
282
|
+
}
|
|
283
|
+
if (noCache) {
|
|
284
|
+
return;
|
|
285
|
+
}
|
|
286
|
+
if (isNaN(duration)) {
|
|
287
|
+
duration = Api.DEFAULT_CACHE_DURATION;
|
|
288
|
+
}
|
|
289
|
+
this.Cache.Set({
|
|
290
|
+
id: key,
|
|
291
|
+
data: value,
|
|
292
|
+
duration,
|
|
293
|
+
persistence: "memory"
|
|
298
294
|
});
|
|
299
295
|
}
|
|
300
296
|
GetSessionId() {
|
|
@@ -9108,7 +9104,7 @@ var DataSource;
|
|
|
9108
9104
|
DataSource.GetList = GetList;
|
|
9109
9105
|
})(DataSource || (DataSource = {}));
|
|
9110
9106
|
|
|
9111
|
-
const VERSION = "2.9.
|
|
9107
|
+
const VERSION = "2.9.7";
|
|
9112
9108
|
|
|
9113
9109
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityGlobe, EntityFilterGetter, BatchedDataGetter, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
9114
9110
|
//# sourceMappingURL=bruce-models.es5.js.map
|