swagger-typescript-api 13.6.0 → 13.6.1
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/dist/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-sIP2rLyu.mjs → src-BPSpx7Sf.mjs} +4 -3
- package/dist/{src-sIP2rLyu.mjs.map → src-BPSpx7Sf.mjs.map} +1 -1
- package/dist/{src-BFo1mwTu.cjs → src-DEFrSruL.cjs} +4 -3
- package/dist/{src-BFo1mwTu.cjs.map → src-DEFrSruL.cjs.map} +1 -1
- package/package.json +2 -2
|
@@ -213,7 +213,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region package.json
|
|
215
215
|
var name = "swagger-typescript-api";
|
|
216
|
-
var version = "13.6.
|
|
216
|
+
var version = "13.6.1";
|
|
217
217
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
218
218
|
//#endregion
|
|
219
219
|
//#region src/constants.ts
|
|
@@ -2797,7 +2797,8 @@ var SwaggerSchemaResolver = class {
|
|
|
2797
2797
|
const originalProducesByRoute = Object.create(null);
|
|
2798
2798
|
for (const [route, usagePathObject] of Object.entries(usagePaths)) {
|
|
2799
2799
|
const routeWithoutBase = basePath && route.startsWith(basePath) ? route.slice(basePath.length) || "/" : route;
|
|
2800
|
-
const
|
|
2800
|
+
const routeWithBase = basePath && !route.startsWith(basePath) ? `${basePath}${route.startsWith("/") ? route : `/${route}`}` : route;
|
|
2801
|
+
const originalPathObject = (0, es_toolkit_compat.get)(originalPaths, route) || (0, es_toolkit_compat.get)(originalPaths, routeWithoutBase.startsWith("/") ? routeWithoutBase : `/${routeWithoutBase}`) || (0, es_toolkit_compat.get)(originalPaths, routeWithBase) || {};
|
|
2801
2802
|
for (const [methodName, usageRouteInfo] of Object.entries(usagePathObject)) {
|
|
2802
2803
|
const originalRouteInfo = (0, es_toolkit_compat.get)(originalPathObject, methodName) || {};
|
|
2803
2804
|
const usageRouteParams = (0, es_toolkit_compat.get)(usageRouteInfo, "parameters") || [];
|
|
@@ -3577,4 +3578,4 @@ Object.defineProperty(exports, "version", {
|
|
|
3577
3578
|
}
|
|
3578
3579
|
});
|
|
3579
3580
|
|
|
3580
|
-
//# sourceMappingURL=src-
|
|
3581
|
+
//# sourceMappingURL=src-DEFrSruL.cjs.map
|