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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "13.2.13",
3
+ "version": "13.2.15",
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,19 +13,18 @@
13
13
  "type": "module",
14
14
  "exports": {
15
15
  ".": {
16
- "import": {
17
- "types": "./dist/lib.d.ts",
18
- "default": "./dist/lib.js"
19
- },
20
- "require": {
21
- "types": "./dist/lib.d.cts",
22
- "default": "./dist/lib.cjs"
23
- }
24
- }
16
+ "import": "./dist/index.js",
17
+ "require": "./dist/index.cjs"
18
+ },
19
+ "./cli": {
20
+ "import": "./dist/cli.js",
21
+ "require": "./dist/cli.cjs"
22
+ },
23
+ "./package.json": "./package.json"
25
24
  },
26
- "main": "./dist/lib.cjs",
27
- "module": "./dist/lib.js",
28
- "types": "./dist/lib.d.cts",
25
+ "main": "./dist/index.cjs",
26
+ "module": "./dist/index.js",
27
+ "types": "./dist/index.d.cts",
29
28
  "bin": {
30
29
  "sta": "./dist/cli.js",
31
30
  "swagger-typescript-api": "./dist/cli.js"
@@ -48,7 +47,7 @@
48
47
  },
49
48
  "dependencies": {
50
49
  "@biomejs/js-api": "3.0.0",
51
- "@biomejs/wasm-nodejs": "2.2.4",
50
+ "@biomejs/wasm-nodejs": "2.2.5",
52
51
  "@types/lodash": "^4.17.20",
53
52
  "@types/swagger-schema-official": "^2.0.25",
54
53
  "c12": "^3.3.0",
@@ -56,27 +55,27 @@
56
55
  "consola": "^3.4.2",
57
56
  "eta": "^4.0.1",
58
57
  "lodash": "^4.17.21",
59
- "nanoid": "^5.1.5",
58
+ "nanoid": "^5.1.6",
60
59
  "openapi-types": "^12.1.3",
61
60
  "swagger-schema-official": "2.0.0-bab6bed",
62
61
  "swagger2openapi": "^7.0.8",
63
- "typescript": "~5.9.2",
62
+ "typescript": "~5.9.3",
64
63
  "yaml": "^2.8.1"
65
64
  },
66
65
  "devDependencies": {
67
- "@biomejs/biome": "2.2.4",
66
+ "@biomejs/biome": "2.2.5",
68
67
  "@changesets/changelog-github": "0.5.1",
69
68
  "@changesets/cli": "2.29.7",
70
69
  "@tsconfig/node20": "20.1.6",
71
- "@tsconfig/strictest": "2.0.5",
72
- "@types/node": "24.5.2",
70
+ "@tsconfig/strictest": "2.0.6",
71
+ "@types/node": "24.7.0",
73
72
  "@types/swagger2openapi": "7.0.4",
74
73
  "axios": "1.12.2",
75
- "tsdown": "0.15.2",
74
+ "tsdown": "0.15.6",
76
75
  "typedoc": "0.28.13",
77
76
  "vitest": "3.2.4"
78
77
  },
79
- "packageManager": "yarn@4.10.2",
78
+ "packageManager": "yarn@4.10.3",
80
79
  "engines": {
81
80
  "node": ">=20"
82
81
  },
@@ -90,7 +90,7 @@ const isValidIdentifier = (name) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(name);
90
90
  <%~ routeDocs.lines %>
91
91
 
92
92
  */
93
- <% if (isValidIdentifier(route.routeName.usage)) { %><%~ route.routeName.usage %><%~ route.namespace ? ': ' : ' = ' %><% } else { %>"<%~ route.routeName.usage %>"<%~ route.namespace ? ': ' : ' = ' %><% } %>(<%~ wrapperArgs %>)<%~ config.toJS ? `: ${describeReturnType()}` : "" %> =>
93
+ <% if (isValidIdentifier(route.routeName.usage)) { %><%~ route.routeName.usage %><% } else { %>"<%~ route.routeName.usage %>"<% } %> = (<%~ wrapperArgs %>)<%~ config.toJS ? `: ${describeReturnType()}` : "" %> =>
94
94
  <%~ config.singleHttpClient ? 'this.http.request' : 'this.request' %><<%~ type %>, <%~ errorType %>>({
95
95
  path: `<%~ path %>`,
96
96
  method: '<%~ _.upperCase(method) %>',
@@ -100,4 +100,4 @@ const isValidIdentifier = (name) => /^[A-Za-z_$][A-Za-z0-9_$]*$/.test(name);
100
100
  <%~ bodyContentKindTmpl ? `type: ${bodyContentKindTmpl},` : '' %>
101
101
  <%~ responseFormatTmpl ? `format: ${responseFormatTmpl},` : '' %>
102
102
  ...<%~ _.get(requestConfigParam, "name") %>,
103
- })<%~ route.namespace ? ',' : '' %>
103
+ })