swagger-axios-codegen
Advanced tools
Comparing version 0.15.5 to 0.15.6
## 0.15.5 | ||
- bugfix | ||
- PathClassNameDefaultName -> pathClassNameDefaultName | ||
- fix showError | ||
## 0.15.3 | ||
@@ -10,0 +3,0 @@ |
@@ -8,3 +8,3 @@ import { IRequestMethod } from './swaggerInterfaces'; | ||
/** only effect classNameMode='parentPath' */ | ||
pathClassNameDefaultName?: string; | ||
PathClassNameDefaultName?: string; | ||
outputDir?: string; | ||
@@ -11,0 +11,0 @@ fileName?: string; |
@@ -56,3 +56,3 @@ "use strict"; | ||
classNameMode: 'normal', | ||
pathClassNameDefaultName: 'Global', | ||
PathClassNameDefaultName: 'Global', | ||
outputDir: './service', | ||
@@ -59,0 +59,0 @@ fileName: 'index.ts', |
@@ -42,3 +42,3 @@ "use strict"; | ||
if (className === '') { | ||
className = options.pathClassNameDefaultName; | ||
className = options.PathClassNameDefaultName; | ||
} | ||
@@ -45,0 +45,0 @@ else { |
@@ -44,3 +44,2 @@ "use strict"; | ||
loading:boolean; | ||
showError:boolean; | ||
} | ||
@@ -147,3 +146,3 @@ | ||
export function getConfigs(method: string, contentType: string, url: string,options: any):IRequestConfig { | ||
const configs: IRequestConfig = { loading:serviceOptions.loading, showError:serviceOptions.showError, ...options, method, url }; | ||
const configs: IRequestConfig = { loading:serviceOptions.loading, showError:serviceOptions.loading, ...options, method, url }; | ||
configs.headers = { | ||
@@ -150,0 +149,0 @@ ...options.headers, |
{ | ||
"name": "swagger-axios-codegen", | ||
"version": "0.15.5", | ||
"version": "0.15.6", | ||
"main": "./dist/index", | ||
@@ -28,3 +28,3 @@ "typings": "./dist/", | ||
"dependencies": { | ||
"axios": "^0.27.2", | ||
"axios": "^1.2.2", | ||
"camelcase": "^5.0.0", | ||
@@ -31,0 +31,0 @@ "multimatch": "^4.0.0", |
Sorry, the diff of this file is not supported yet
204239
2744
+ Addedaxios@1.7.9(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedaxios@0.27.2(transitive)
Updatedaxios@^1.2.2