@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.
- package/bundles/stemy-ngx-utils.umd.js +2 -3
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/common-types.js +1 -1
- package/esm2015/ngx-utils/services/base-http.service.js +4 -5
- package/fesm2015/stemy-ngx-utils.js +3 -4
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/ngx-utils/common-types.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3033,8 +3033,7 @@
|
|
|
3033
3033
|
}
|
|
3034
3034
|
return;
|
|
3035
3035
|
}
|
|
3036
|
-
|
|
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 || {};
|