swagger-typescript-api 13.2.16 → 13.2.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "13.2.16",
3
+ "version": "13.2.17",
4
4
  "description": "Generate the API client for Fetch or Axios from an OpenAPI Specification",
5
5
  "homepage": "https://github.com/acacode/swagger-typescript-api",
6
6
  "bugs": "https://github.com/acacode/swagger-typescript-api/issues",
@@ -13,21 +13,21 @@
13
13
  "type": "module",
14
14
  "exports": {
15
15
  ".": {
16
- "import": "./dist/index.js",
16
+ "import": "./dist/index.mjs",
17
17
  "require": "./dist/index.cjs"
18
18
  },
19
19
  "./cli": {
20
- "import": "./dist/cli.js",
20
+ "import": "./dist/cli.mjs",
21
21
  "require": "./dist/cli.cjs"
22
22
  },
23
23
  "./package.json": "./package.json"
24
24
  },
25
25
  "main": "./dist/index.cjs",
26
- "module": "./dist/index.js",
26
+ "module": "./dist/index.mjs",
27
27
  "types": "./dist/index.d.cts",
28
28
  "bin": {
29
- "sta": "./dist/cli.js",
30
- "swagger-typescript-api": "./dist/cli.js"
29
+ "sta": "./dist/cli.mjs",
30
+ "swagger-typescript-api": "./dist/cli.mjs"
31
31
  },
32
32
  "files": [
33
33
  "dist",
@@ -35,9 +35,6 @@
35
35
  ],
36
36
  "scripts": {
37
37
  "build": "tsdown",
38
- "cli:help": "node index.js -h",
39
- "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
40
- "cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
41
38
  "format": "biome format --write .",
42
39
  "format:check": "biome format .",
43
40
  "lint": "biome check",
@@ -46,36 +43,34 @@
46
43
  "typedoc": "typedoc"
47
44
  },
48
45
  "dependencies": {
49
- "@biomejs/js-api": "3.0.0",
50
- "@biomejs/wasm-nodejs": "2.2.6",
51
- "@types/lodash": "^4.17.20",
46
+ "@biomejs/js-api": "4.0.0",
47
+ "@biomejs/wasm-nodejs": "2.3.14",
52
48
  "@types/swagger-schema-official": "^2.0.25",
53
- "c12": "^3.3.0",
54
- "citty": "^0.1.6",
49
+ "c12": "^3.3.3",
50
+ "citty": "^0.2.0",
55
51
  "consola": "^3.4.2",
52
+ "es-toolkit": "^1.43.0",
56
53
  "eta": "^3.5.0",
57
- "lodash": "^4.17.21",
58
54
  "nanoid": "^5.1.6",
59
55
  "openapi-types": "^12.1.3",
60
56
  "swagger-schema-official": "2.0.0-bab6bed",
61
57
  "swagger2openapi": "^7.0.8",
62
58
  "typescript": "~5.9.3",
63
- "yaml": "^2.8.1"
59
+ "yaml": "^2.8.2"
64
60
  },
65
61
  "devDependencies": {
66
- "@biomejs/biome": "2.2.6",
67
- "@changesets/changelog-github": "0.5.1",
68
- "@changesets/cli": "2.29.7",
69
- "@tsconfig/node20": "20.1.6",
70
- "@tsconfig/strictest": "2.0.6",
71
- "@types/node": "24.9.1",
62
+ "@biomejs/biome": "2.3.14",
63
+ "@changesets/changelog-github": "0.5.2",
64
+ "@changesets/cli": "2.29.8",
65
+ "@tsconfig/node20": "20.1.9",
66
+ "@tsconfig/strictest": "2.0.8",
67
+ "@types/node": "25.2.2",
72
68
  "@types/swagger2openapi": "7.0.4",
73
- "axios": "1.12.2",
74
- "tsdown": "0.15.9",
75
- "typedoc": "0.28.14",
76
- "vitest": "3.2.4"
69
+ "axios": "1.13.4",
70
+ "tsdown": "0.20.3",
71
+ "typedoc": "0.28.16",
72
+ "vitest": "4.0.18"
77
73
  },
78
- "packageManager": "yarn@4.10.3",
79
74
  "engines": {
80
75
  "node": ">=20"
81
76
  },
@@ -90,4 +85,4 @@
90
85
  ],
91
86
  "skipErrorChecking": true
92
87
  }
93
- }
88
+ }
@@ -74,7 +74,7 @@ const describeReturnType = () => {
74
74
  return `Promise<AxiosResponse<${type}>>`
75
75
  }
76
76
  default: {
77
- return `Promise<HttpResponse<${type}, ${errorType}>`
77
+ return `Promise<HttpResponse<${type}, ${errorType}>>`
78
78
  }
79
79
  }
80
80
  }
@@ -74,7 +74,7 @@ const describeReturnType = () => {
74
74
  return `Promise<AxiosResponse<${type}>>`
75
75
  }
76
76
  default: {
77
- return `Promise<HttpResponse<${type}, ${errorType}>`
77
+ return `Promise<HttpResponse<${type}, ${errorType}>>`
78
78
  }
79
79
  }
80
80
  }