swagger-typescript-api 13.12.0 → 13.12.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.cjs.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cli.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +7 -12
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +7 -12
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DNm4rxFm.mjs → src-BI71PJBk.mjs} +16 -3
- package/dist/{src-DNm4rxFm.mjs.map → src-BI71PJBk.mjs.map} +1 -1
- package/dist/{src-t0Ockaa6.cjs → src-Cs9lMkwK.cjs} +15 -2
- package/dist/{src-t0Ockaa6.cjs.map → src-Cs9lMkwK.cjs.map} +1 -1
- package/package.json +12 -12
- /package/dist/{chunk-CfYAbeIz.mjs → chunk-D7D4PA-g.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __exportAll } from "./chunk-
|
|
1
|
+
import { t as __exportAll } from "./chunk-D7D4PA-g.mjs";
|
|
2
2
|
import * as module from "node:module";
|
|
3
3
|
import consola, { consola as consola$1 } from "consola";
|
|
4
4
|
import * as esToolkit from "es-toolkit";
|
|
@@ -169,7 +169,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
|
|
|
169
169
|
//#endregion
|
|
170
170
|
//#region package.json
|
|
171
171
|
var name = "swagger-typescript-api";
|
|
172
|
-
var version = "13.12.
|
|
172
|
+
var version = "13.12.1";
|
|
173
173
|
var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
|
|
174
174
|
//#endregion
|
|
175
175
|
//#region src/constants.ts
|
|
@@ -683,6 +683,7 @@ const OPENAPI_COMPONENT_NAMES = new Set([
|
|
|
683
683
|
"pathItems"
|
|
684
684
|
]);
|
|
685
685
|
var SchemaComponentsMap = class {
|
|
686
|
+
config;
|
|
686
687
|
_data = [];
|
|
687
688
|
constructor(config) {
|
|
688
689
|
this.config = config;
|
|
@@ -1604,6 +1605,9 @@ var SchemaParser = class {
|
|
|
1604
1605
|
//#endregion
|
|
1605
1606
|
//#region src/schema-parser/schema-utils.ts
|
|
1606
1607
|
var SchemaUtils = class {
|
|
1608
|
+
config;
|
|
1609
|
+
schemaComponentsMap;
|
|
1610
|
+
typeNameFormatter;
|
|
1607
1611
|
constructor(config, schemaComponentsMap, typeNameFormatter) {
|
|
1608
1612
|
this.config = config;
|
|
1609
1613
|
this.schemaComponentsMap = schemaComponentsMap;
|
|
@@ -1869,6 +1873,11 @@ const CONTENT_KIND = {
|
|
|
1869
1873
|
*/
|
|
1870
1874
|
const MAX_EXTRACT_SCHEMA_KEY_COLLISION_ATTEMPTS = 32;
|
|
1871
1875
|
var SchemaRoutes = class {
|
|
1876
|
+
config;
|
|
1877
|
+
schemaParserFabric;
|
|
1878
|
+
schemaComponentsMap;
|
|
1879
|
+
templatesWorker;
|
|
1880
|
+
typeNameFormatter;
|
|
1872
1881
|
schemaUtils;
|
|
1873
1882
|
FORM_DATA_TYPES = [];
|
|
1874
1883
|
routes = [];
|
|
@@ -2666,6 +2675,10 @@ function parseSchemaContent(content) {
|
|
|
2666
2675
|
//#endregion
|
|
2667
2676
|
//#region src/resolved-swagger-schema.ts
|
|
2668
2677
|
var ResolvedSwaggerSchema = class ResolvedSwaggerSchema {
|
|
2678
|
+
config;
|
|
2679
|
+
usageSchema;
|
|
2680
|
+
originalSchema;
|
|
2681
|
+
resolvers;
|
|
2669
2682
|
parsedRefsCache = /* @__PURE__ */ new Map();
|
|
2670
2683
|
externalSchemaCache = /* @__PURE__ */ new Map();
|
|
2671
2684
|
httpMethodSegments = new Set([
|
|
@@ -4060,4 +4073,4 @@ async function generateApi(config) {
|
|
|
4060
4073
|
//#endregion
|
|
4061
4074
|
export { SCHEMA_TYPES as a, constants_exports as c, version as d, RequestContentKind as i, description as l, generateTemplates as n, CodeGenConfig as o, TemplatesGenConfig as r, HTTP_CLIENT as s, generateApi as t, name as u };
|
|
4062
4075
|
|
|
4063
|
-
//# sourceMappingURL=src-
|
|
4076
|
+
//# sourceMappingURL=src-BI71PJBk.mjs.map
|