@fxri/swagger2api 1.0.10 → 1.0.11

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -78,12 +78,12 @@ npx swagger2api [--remove-prefix-index,-rpi <number>]
78
78
 
79
79
  在 `package.json` 中添加:
80
80
 
81
- 生成 axios http 客户端,生成有关请求响应的附加信息
81
+ 生成 axios http 客户端,生成有关请求响应的附加信息,移除第一个前缀索引
82
82
 
83
83
  ```json
84
84
  {
85
85
  "scripts": {
86
- "api": "swagger2api --axios --responses",
86
+ "api": "swagger2api --axios --responses --remove-prefix-index 0",
87
87
  }
88
88
  }
89
89
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fxri/swagger2api",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "基于 swagger-typescript-api,将 Swagger 文档自动转为 TypeScript 格式的 API 文件。",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -47,6 +47,6 @@
47
47
  "prebuild": "rimraf dist",
48
48
  "build": "tsc",
49
49
  "release": "pnpm build && pnpm publish",
50
- "api": "pnpm dev --axios --responses"
50
+ "api": "pnpm dev --axios --responses --remove-prefix-index 0"
51
51
  }
52
52
  }