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.
@@ -232,7 +232,7 @@
232
232
  function parseResult(data) {
233
233
  var _a, _b;
234
234
  return __awaiter(this, void 0, void 0, function* () {
235
- if (data.status !== 200) {
235
+ if (data.status >= 400 || data.status < 200) {
236
236
  const error = yield data.json();
237
237
  throw (error);
238
238
  }
@@ -415,7 +415,7 @@
415
415
  }
416
416
  xhr.onreadystatechange = (e) => {
417
417
  if (xhr.readyState == 4) {
418
- if (xhr.status >= 400) {
418
+ if (xhr.status >= 400 || xhr.status < 200) {
419
419
  rej(e);
420
420
  }
421
421
  else {
@@ -3370,6 +3370,12 @@
3370
3370
  }
3371
3371
  this.cache.set(key, value);
3372
3372
  }
3373
+ Entries() {
3374
+ return this.cache.entries();
3375
+ }
3376
+ Clear() {
3377
+ this.cache.clear();
3378
+ }
3373
3379
  }
3374
3380
 
3375
3381
  (function (EntityAttachmentType) {
@@ -8412,7 +8418,7 @@
8412
8418
  DataSource.GetList = GetList;
8413
8419
  })(exports.DataSource || (exports.DataSource = {}));
8414
8420
 
8415
- const VERSION = "3.1.8";
8421
+ const VERSION = "3.2.0";
8416
8422
 
8417
8423
  exports.VERSION = VERSION;
8418
8424
  exports.AbstractApi = AbstractApi;