bruce-models 3.1.8 → 3.2.0

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.
@@ -227,7 +227,7 @@ class CacheControl {
227
227
  function parseResult(data) {
228
228
  var _a, _b;
229
229
  return __awaiter(this, void 0, void 0, function* () {
230
- if (data.status !== 200) {
230
+ if (data.status >= 400 || data.status < 200) {
231
231
  const error = yield data.json();
232
232
  throw (error);
233
233
  }
@@ -410,7 +410,7 @@ class AbstractApi {
410
410
  }
411
411
  xhr.onreadystatechange = (e) => {
412
412
  if (xhr.readyState == 4) {
413
- if (xhr.status >= 400) {
413
+ if (xhr.status >= 400 || xhr.status < 200) {
414
414
  rej(e);
415
415
  }
416
416
  else {
@@ -3431,6 +3431,12 @@ class LRUCache {
3431
3431
  }
3432
3432
  this.cache.set(key, value);
3433
3433
  }
3434
+ Entries() {
3435
+ return this.cache.entries();
3436
+ }
3437
+ Clear() {
3438
+ this.cache.clear();
3439
+ }
3434
3440
  }
3435
3441
 
3436
3442
  /**
@@ -8636,7 +8642,7 @@ var DataSource;
8636
8642
  DataSource.GetList = GetList;
8637
8643
  })(DataSource || (DataSource = {}));
8638
8644
 
8639
- const VERSION = "3.1.8";
8645
+ const VERSION = "3.2.0";
8640
8646
 
8641
8647
  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, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, 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 };
8642
8648
  //# sourceMappingURL=bruce-models.es5.js.map