swagger-typescript-api 13.7.0 → 13.7.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.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-Bcgp_AKY.mjs → src-DwI4veBU.mjs} +7 -5
- package/dist/src-DwI4veBU.mjs.map +1 -0
- package/dist/{src-DTdmNLxQ.cjs → src-pyGddI9m.cjs} +7 -5
- package/dist/src-pyGddI9m.cjs.map +1 -0
- package/package.json +1 -1
- package/dist/src-Bcgp_AKY.mjs.map +0 -1
- package/dist/src-DTdmNLxQ.cjs.map +0 -1
|
@@ -208,7 +208,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
208
208
|
//#endregion
|
|
209
209
|
//#region package.json
|
|
210
210
|
var name = "swagger-typescript-api";
|
|
211
|
-
var version = "13.7.
|
|
211
|
+
var version = "13.7.1";
|
|
212
212
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region src/constants.ts
|
|
@@ -2847,16 +2847,18 @@ var ResolvedSwaggerSchema = class ResolvedSwaggerSchema {
|
|
|
2847
2847
|
}
|
|
2848
2848
|
collectExternalRefCandidates(externalPath) {
|
|
2849
2849
|
const candidates = /* @__PURE__ */ new Set();
|
|
2850
|
-
|
|
2850
|
+
const isRemote = /^https?:\/\//i.test(externalPath);
|
|
2851
|
+
const normalizedExternalPath = externalPath.startsWith("/") ? externalPath.replace(/^\/+/, "") : externalPath;
|
|
2852
|
+
if (isRemote) return [];
|
|
2851
2853
|
if (node_path.default.isAbsolute(externalPath)) candidates.add(externalPath);
|
|
2852
2854
|
const inputPath = this.config.input;
|
|
2853
|
-
if (typeof inputPath === "string" && inputPath) candidates.add(node_path.default.resolve(node_path.default.dirname(inputPath),
|
|
2855
|
+
if (typeof inputPath === "string" && inputPath) candidates.add(node_path.default.resolve(node_path.default.dirname(inputPath), normalizedExternalPath));
|
|
2854
2856
|
for (const resolver of this.resolvers) try {
|
|
2855
2857
|
const resolverPaths = typeof resolver.paths === "function" ? resolver.paths() : [];
|
|
2856
2858
|
for (const resolverPath of resolverPaths) {
|
|
2857
2859
|
if (typeof resolverPath !== "string") continue;
|
|
2858
2860
|
if (/^https?:\/\//i.test(resolverPath)) continue;
|
|
2859
|
-
candidates.add(node_path.default.resolve(node_path.default.dirname(resolverPath),
|
|
2861
|
+
candidates.add(node_path.default.resolve(node_path.default.dirname(resolverPath), normalizedExternalPath));
|
|
2860
2862
|
}
|
|
2861
2863
|
} catch (e) {
|
|
2862
2864
|
consola.default.debug(e);
|
|
@@ -3901,4 +3903,4 @@ Object.defineProperty(exports, "version", {
|
|
|
3901
3903
|
}
|
|
3902
3904
|
});
|
|
3903
3905
|
|
|
3904
|
-
//# sourceMappingURL=src-
|
|
3906
|
+
//# sourceMappingURL=src-pyGddI9m.cjs.map
|