Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swagger-axios-codegen

Package Overview
Dependencies
Maintainers
1
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swagger-axios-codegen - npm Package Compare versions

Comparing version 0.16.10 to 0.16.11

24

dist/templates/template.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc