kui-utils 0.0.37 → 0.0.38

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/cjs/index.js CHANGED
@@ -2290,10 +2290,12 @@ var Loader = /** @class */ (function () {
2290
2290
  else {
2291
2291
  _this.errorMessage = "".concat(errorMessage || "request").concat(err ? ": \n".concat(formatError(err)) : "");
2292
2292
  }
2293
+ _this.error = err;
2293
2294
  };
2294
2295
  this.cleanError = function () {
2295
2296
  _this.hasError = false;
2296
2297
  _this.errorMessage = "";
2298
+ _this.error = null;
2297
2299
  };
2298
2300
  this.isLoading = !!isLoading;
2299
2301
  this.hasError = false;
@@ -2301,6 +2303,7 @@ var Loader = /** @class */ (function () {
2301
2303
  this.timeAfterLoading = 0;
2302
2304
  this.delayTime = delayTime || defaultDelayTime;
2303
2305
  this.errorMessage = "";
2306
+ this.error = null;
2304
2307
  mobx.makeAutoObservable(this);
2305
2308
  }
2306
2309
  return Loader;