nectiasw 0.0.80 → 0.0.81

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/index.es.js CHANGED
@@ -41623,8 +41623,9 @@ class HttpClient {
41623
41623
  this.requestInterceptor = this.https.interceptors.request.use(
41624
41624
  requestInterceptor,
41625
41625
  (error2) => {
41626
- this.logger("error", error2);
41627
- if (error2.status === HttpStatusCode.Unauthorized) {
41626
+ var _a3;
41627
+ this.logger("requestError", error2);
41628
+ if (((_a3 = error2.request) == null ? void 0 : _a3.status) === HttpStatusCode.Unauthorized) {
41628
41629
  const event = new CustomEvent("@unauthorized", {
41629
41630
  detail: error2
41630
41631
  });
@@ -41636,8 +41637,9 @@ class HttpClient {
41636
41637
  this.responseInterceptor = this.https.interceptors.response.use(
41637
41638
  responseInterceptor,
41638
41639
  (error2) => {
41639
- this.logger("error", error2);
41640
- if (error2.status === HttpStatusCode.Unauthorized) {
41640
+ var _a3;
41641
+ this.logger("responseError", error2);
41642
+ if (((_a3 = error2.response) == null ? void 0 : _a3.status) === HttpStatusCode.Unauthorized) {
41641
41643
  const event = new CustomEvent("@unauthorized", {
41642
41644
  detail: error2
41643
41645
  });