ng-openapi 0.2.17 → 0.2.19
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/LICENSE +1 -1
- package/cli.cjs +6 -5
- package/index.js +5 -4
- package/package.json +1 -1
package/LICENSE
CHANGED
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.19";
|
|
48
48
|
|
|
49
49
|
// src/lib/core/generator.ts
|
|
50
50
|
var import_ts_morph7 = require("ts-morph");
|
|
@@ -1275,11 +1275,12 @@ var FileDownloadGenerator = class {
|
|
|
1275
1275
|
const filename = filenameMatch[1];
|
|
1276
1276
|
if (filename.includes("''")) {
|
|
1277
1277
|
const parts = filename.split("''");
|
|
1278
|
-
|
|
1278
|
+
const encoded = parts.length === 2 ? parts[1] : undefined;
|
|
1279
|
+
if (encoded) {
|
|
1279
1280
|
try {
|
|
1280
|
-
return decodeURIComponent(
|
|
1281
|
+
return decodeURIComponent(encoded);
|
|
1281
1282
|
} catch {
|
|
1282
|
-
return
|
|
1283
|
+
return encoded;
|
|
1283
1284
|
}
|
|
1284
1285
|
}
|
|
1285
1286
|
}
|
|
@@ -2106,7 +2107,7 @@ let headers: HttpHeaders;
|
|
|
2106
2107
|
if (options?.headers instanceof HttpHeaders) {
|
|
2107
2108
|
headers = options.headers;
|
|
2108
2109
|
} else {
|
|
2109
|
-
headers = new HttpHeaders(
|
|
2110
|
+
headers = new HttpHeaders(options?.headers);
|
|
2110
2111
|
}`;
|
|
2111
2112
|
if (hasCustomHeaders) {
|
|
2112
2113
|
headerCode += `
|
package/index.js
CHANGED
|
@@ -1399,11 +1399,12 @@ var _FileDownloadGenerator = class _FileDownloadGenerator {
|
|
|
1399
1399
|
const filename = filenameMatch[1];
|
|
1400
1400
|
if (filename.includes("''")) {
|
|
1401
1401
|
const parts = filename.split("''");
|
|
1402
|
-
|
|
1402
|
+
const encoded = parts.length === 2 ? parts[1] : undefined;
|
|
1403
|
+
if (encoded) {
|
|
1403
1404
|
try {
|
|
1404
|
-
return decodeURIComponent(
|
|
1405
|
+
return decodeURIComponent(encoded);
|
|
1405
1406
|
} catch {
|
|
1406
|
-
return
|
|
1407
|
+
return encoded;
|
|
1407
1408
|
}
|
|
1408
1409
|
}
|
|
1409
1410
|
}
|
|
@@ -2232,7 +2233,7 @@ let headers: HttpHeaders;
|
|
|
2232
2233
|
if (options?.headers instanceof HttpHeaders) {
|
|
2233
2234
|
headers = options.headers;
|
|
2234
2235
|
} else {
|
|
2235
|
-
headers = new HttpHeaders(
|
|
2236
|
+
headers = new HttpHeaders(options?.headers);
|
|
2236
2237
|
}`;
|
|
2237
2238
|
if (hasCustomHeaders) {
|
|
2238
2239
|
headerCode += `
|