@stemy/ngx-utils 12.1.0 → 12.1.1

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.
@@ -3033,8 +3033,7 @@
3033
3033
  }
3034
3034
  return;
3035
3035
  }
3036
- var response = event instanceof http.HttpResponse ? event.body : event;
3037
- resolve(_this.parseResponse(response, url, options));
3036
+ resolve(_this.parseResponse(event, url, options));
3038
3037
  var headers = options.headers;
3039
3038
  var authKey = "Authorization";
3040
3039
  // If we use token auth
@@ -3085,7 +3084,7 @@
3085
3084
  // Set base options
3086
3085
  options = options ? Object.assign({}, options) : {};
3087
3086
  options.method = method;
3088
- options.observe = "body";
3087
+ options.observe = options.observe || "body";
3089
3088
  options.originalHeaders = options.originalHeaders || options.headers || {};
3090
3089
  options.withCredentials = ObjectUtils.isBoolean(options.withCredentials) ? options.withCredentials : this.withCredentials;
3091
3090
  options.body = body || {};