@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.
Files changed (3) hide show
  1. package/index.cjs +3 -3
  2. package/index.js +3 -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 (requestOptions?.headers instanceof HttpHeaders) {
3112
- headers = requestOptions.headers;
3111
+ if (options?.headers instanceof HttpHeaders) {
3112
+ headers = options.headers;
3113
3113
  } else {
3114
- headers = new HttpHeaders(requestOptions?.headers);
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 (requestOptions?.headers instanceof HttpHeaders) {
3078
- headers = requestOptions.headers;
3077
+ if (options?.headers instanceof HttpHeaders) {
3078
+ headers = options.headers;
3079
3079
  } else {
3080
- headers = new HttpHeaders(requestOptions?.headers);
3080
+ headers = new HttpHeaders(options?.headers);
3081
3081
  }`;
3082
3082
  if (hasCustomHeaders) {
3083
3083
  headerCode += `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ng-openapi/http-resource",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "HTTP Resource plugin for ng-openapi - Angular HTTP utilities with caching and state management",
5
5
  "keywords": [
6
6
  "angular",