ng-openapi 0.2.18 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Tareq Jami
3
+ Copyright (c) 2026 Tareq Jami
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.17";
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
- if (parts.length === 2) {
1278
+ const encoded = parts.length === 2 ? parts[1] : undefined;
1279
+ if (encoded) {
1279
1280
  try {
1280
- return decodeURIComponent(parts[1]);
1281
+ return decodeURIComponent(encoded);
1281
1282
  } catch {
1282
- return parts[1];
1283
+ return encoded;
1283
1284
  }
1284
1285
  }
1285
1286
  }
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
- if (parts.length === 2) {
1402
+ const encoded = parts.length === 2 ? parts[1] : undefined;
1403
+ if (encoded) {
1403
1404
  try {
1404
- return decodeURIComponent(parts[1]);
1405
+ return decodeURIComponent(encoded);
1405
1406
  } catch {
1406
- return parts[1];
1407
+ return encoded;
1407
1408
  }
1408
1409
  }
1409
1410
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-openapi",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "Generate Angular services and TypeScript types from OpenAPI/Swagger specifications",
5
5
  "keywords": [
6
6
  "ng-openapi",