swagger-axios-codegen
Advanced tools
Comparing version 0.16.10 to 0.16.11
@@ -182,18 +182,16 @@ "use strict"; | ||
if (parsedParameters && bodyParameter && bodyParameter.length > 0 || !!requestBody) { | ||
if (method === 'post' || method === 'put') { | ||
return ` | ||
const tips = `/** 适配移动开发(iOS13 等版本),只有 POST、PUT 等请求允许带body */ \n | ||
console.warn('适配移动开发(iOS13 等版本),只有 POST、PUT 等请求允许带body')`; | ||
return ` | ||
${method === 'post' || method === 'put' ? '' : tips} | ||
let data = ${parsedParameters && bodyParameter && bodyParameter.length > 0 | ||
? | ||
bodyParameter | ||
: !!requestBody | ||
? 'params.body' | ||
: 'null'} | ||
? | ||
bodyParameter | ||
: !!requestBody | ||
? 'params.body' | ||
: 'null'} | ||
${contentType === 'multipart/form-data' ? formData : ''} | ||
configs.data = data;`; | ||
} | ||
else { | ||
return `/** 适配移动开发(iOS13 等版本),只有 POST、PUT 等请求允许带body */ \n | ||
console.warn('适配移动开发(iOS13 等版本),只有 POST、PUT 等请求允许带body') | ||
`; | ||
} | ||
} | ||
@@ -200,0 +198,0 @@ return ''; |
{ | ||
"name": "swagger-axios-codegen", | ||
"version": "0.16.10", | ||
"version": "0.16.11", | ||
"main": "./dist/index", | ||
@@ -5,0 +5,0 @@ "typings": "./dist/", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207343
2816