@ng-openapi/http-resource 0.0.28 → 0.0.29
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/index.cjs +3 -3
- package/index.js +3 -3
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -3108,10 +3108,10 @@ ${paramMappings}`;
|
|
|
3108
3108
|
const hasCustomHeaders = this.config.options.customHeaders;
|
|
3109
3109
|
let headerCode = `
|
|
3110
3110
|
let headers: HttpHeaders;
|
|
3111
|
-
if (
|
|
3112
|
-
headers =
|
|
3111
|
+
if (options?.headers instanceof HttpHeaders) {
|
|
3112
|
+
headers = options.headers;
|
|
3113
3113
|
} else {
|
|
3114
|
-
headers = new HttpHeaders(
|
|
3114
|
+
headers = new HttpHeaders(options?.headers);
|
|
3115
3115
|
}`;
|
|
3116
3116
|
if (hasCustomHeaders) {
|
|
3117
3117
|
headerCode += `
|
package/index.js
CHANGED
|
@@ -3074,10 +3074,10 @@ ${paramMappings}`;
|
|
|
3074
3074
|
const hasCustomHeaders = this.config.options.customHeaders;
|
|
3075
3075
|
let headerCode = `
|
|
3076
3076
|
let headers: HttpHeaders;
|
|
3077
|
-
if (
|
|
3078
|
-
headers =
|
|
3077
|
+
if (options?.headers instanceof HttpHeaders) {
|
|
3078
|
+
headers = options.headers;
|
|
3079
3079
|
} else {
|
|
3080
|
-
headers = new HttpHeaders(
|
|
3080
|
+
headers = new HttpHeaders(options?.headers);
|
|
3081
3081
|
}`;
|
|
3082
3082
|
if (hasCustomHeaders) {
|
|
3083
3083
|
headerCode += `
|