swagger-typescript-api 13.2.13 → 13.2.15

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.
@@ -176,7 +176,7 @@ var ComponentTypeNameResolver = class extends NameResolver {
176
176
  //#endregion
177
177
  //#region package.json
178
178
  var name = "swagger-typescript-api";
179
- var version = "13.2.13";
179
+ var version = "13.2.15";
180
180
  var description = "Generate the API client for Fetch or Axios from an OpenAPI Specification";
181
181
  var homepage = "https://github.com/acacode/swagger-typescript-api";
182
182
  var bugs = "https://github.com/acacode/swagger-typescript-api/issues";
@@ -185,19 +185,20 @@ var license = "MIT";
185
185
  var author = "Sergey Volkov <js2me@outlook.com>";
186
186
  var maintainers = ["Sora Morimoto <sora@morimoto.io>"];
187
187
  var type = "module";
188
- var exports = { ".": {
189
- "import": {
190
- "types": "./dist/lib.d.ts",
191
- "default": "./dist/lib.js"
188
+ var exports = {
189
+ ".": {
190
+ "import": "./dist/index.js",
191
+ "require": "./dist/index.cjs"
192
192
  },
193
- "require": {
194
- "types": "./dist/lib.d.cts",
195
- "default": "./dist/lib.cjs"
196
- }
197
- } };
198
- var main = "./dist/lib.cjs";
199
- var module$1 = "./dist/lib.js";
200
- var types = "./dist/lib.d.cts";
193
+ "./cli": {
194
+ "import": "./dist/cli.js",
195
+ "require": "./dist/cli.cjs"
196
+ },
197
+ "./package.json": "./package.json"
198
+ };
199
+ var main = "./dist/index.cjs";
200
+ var module$1 = "./dist/index.js";
201
+ var types = "./dist/index.d.cts";
201
202
  var bin = {
202
203
  "sta": "./dist/cli.js",
203
204
  "swagger-typescript-api": "./dist/cli.js"
@@ -217,7 +218,7 @@ var scripts = {
217
218
  };
218
219
  var dependencies = {
219
220
  "@biomejs/js-api": "3.0.0",
220
- "@biomejs/wasm-nodejs": "2.2.4",
221
+ "@biomejs/wasm-nodejs": "2.2.5",
221
222
  "@types/lodash": "^4.17.20",
222
223
  "@types/swagger-schema-official": "^2.0.25",
223
224
  "c12": "^3.3.0",
@@ -225,27 +226,27 @@ var dependencies = {
225
226
  "consola": "^3.4.2",
226
227
  "eta": "^4.0.1",
227
228
  "lodash": "^4.17.21",
228
- "nanoid": "^5.1.5",
229
+ "nanoid": "^5.1.6",
229
230
  "openapi-types": "^12.1.3",
230
231
  "swagger-schema-official": "2.0.0-bab6bed",
231
232
  "swagger2openapi": "^7.0.8",
232
- "typescript": "~5.9.2",
233
+ "typescript": "~5.9.3",
233
234
  "yaml": "^2.8.1"
234
235
  };
235
236
  var devDependencies = {
236
- "@biomejs/biome": "2.2.4",
237
+ "@biomejs/biome": "2.2.5",
237
238
  "@changesets/changelog-github": "0.5.1",
238
239
  "@changesets/cli": "2.29.7",
239
240
  "@tsconfig/node20": "20.1.6",
240
- "@tsconfig/strictest": "2.0.5",
241
- "@types/node": "24.5.2",
241
+ "@tsconfig/strictest": "2.0.6",
242
+ "@types/node": "24.7.0",
242
243
  "@types/swagger2openapi": "7.0.4",
243
244
  "axios": "1.12.2",
244
- "tsdown": "0.15.2",
245
+ "tsdown": "0.15.6",
245
246
  "typedoc": "0.28.13",
246
247
  "vitest": "3.2.4"
247
248
  };
248
- var packageManager = "yarn@4.10.2";
249
+ var packageManager = "yarn@4.10.3";
249
250
  var engines = { "node": ">=20" };
250
251
  var publishConfig = {
251
252
  "access": "public",
@@ -2742,6 +2743,8 @@ var CodeGenProcess = class {
2742
2743
  this.schemaWalker.addSchema("$original", swagger.originalSchema);
2743
2744
  consola.info("start generating your typescript api");
2744
2745
  this.config.update(this.config.hooks.onInit(this.config, this) || this.config);
2746
+ if (this.config.swaggerSchema) swagger.usageSchema = this.config.swaggerSchema;
2747
+ if (this.config.originalSchema) swagger.originalSchema = this.config.originalSchema;
2745
2748
  this.schemaComponentsMap.clear();
2746
2749
  lodash.each(swagger.usageSchema.components, (component, componentName) => lodash.each(component, (rawTypeData, typeName) => {
2747
2750
  this.schemaComponentsMap.createComponent(this.schemaComponentsMap.createRef([
@@ -3151,4 +3154,4 @@ async function generateApi(config) {
3151
3154
 
3152
3155
  //#endregion
3153
3156
  export { CodeGenConfig, HTTP_CLIENT, RequestContentKind, SCHEMA_TYPES, TemplatesGenConfig, constants_exports, generateApi, generateTemplates, package_default };
3154
- //# sourceMappingURL=src-D-sCHrs2.js.map
3157
+ //# sourceMappingURL=src-CsGSW_U0.js.map