ng-openapi 0.2.17 → 0.2.18
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/cli.cjs +2 -2
- package/index.js +1 -1
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -44,7 +44,7 @@ var fs4 = __toESM(require("fs"));
|
|
|
44
44
|
var path12 = __toESM(require("path"));
|
|
45
45
|
|
|
46
46
|
// package.json
|
|
47
|
-
var version = "0.2.
|
|
47
|
+
var version = "0.2.17";
|
|
48
48
|
|
|
49
49
|
// src/lib/core/generator.ts
|
|
50
50
|
var import_ts_morph7 = require("ts-morph");
|
|
@@ -2106,7 +2106,7 @@ let headers: HttpHeaders;
|
|
|
2106
2106
|
if (options?.headers instanceof HttpHeaders) {
|
|
2107
2107
|
headers = options.headers;
|
|
2108
2108
|
} else {
|
|
2109
|
-
headers = new HttpHeaders(
|
|
2109
|
+
headers = new HttpHeaders(options?.headers);
|
|
2110
2110
|
}`;
|
|
2111
2111
|
if (hasCustomHeaders) {
|
|
2112
2112
|
headerCode += `
|
package/index.js
CHANGED
|
@@ -2232,7 +2232,7 @@ let headers: HttpHeaders;
|
|
|
2232
2232
|
if (options?.headers instanceof HttpHeaders) {
|
|
2233
2233
|
headers = options.headers;
|
|
2234
2234
|
} else {
|
|
2235
|
-
headers = new HttpHeaders(
|
|
2235
|
+
headers = new HttpHeaders(options?.headers);
|
|
2236
2236
|
}`;
|
|
2237
2237
|
if (hasCustomHeaders) {
|
|
2238
2238
|
headerCode += `
|