bruce-models 3.1.8 → 3.1.9

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 {
@@ -8412,7 +8412,7 @@
8412
8412
  DataSource.GetList = GetList;
8413
8413
  })(exports.DataSource || (exports.DataSource = {}));
8414
8414
 
8415
- const VERSION = "3.1.8";
8415
+ const VERSION = "3.1.9";
8416
8416
 
8417
8417
  exports.VERSION = VERSION;
8418
8418
  exports.AbstractApi = AbstractApi;