You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

@xtdev/swaggerv2-to-ts

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xtdev/swaggerv2-to-ts - npm Package Compare versions

Comparing version

to
0.0.13

@@ -119,1 +119,6 @@ #!/usr/bin/env node

};
start({
url: 'https://gateway-dev1.tanjiu.cn/taozhu/v2/api-docs',
outFile: './temp/service.ts',
paths: ['/trade/instance/banquet/queryBanquetDetail']
});

@@ -33,7 +33,14 @@ import https from 'https';

else if (type === 'array') {
temp = `
/** ${description} */
${key}: {
${paramsKeys2Comments(children)}
}[];`;
if (typeof (children) !== 'object') {
temp = `
/** ${description} */
${key}: ${children}[];`;
}
else {
temp = `
/** ${description} */
${key}: {
${paramsKeys2Comments(children)}
}[];`;
}
}

@@ -40,0 +47,0 @@ else if (type === 'object') {

{
"name": "@xtdev/swaggerv2-to-ts",
"version": "0.0.12",
"version": "0.0.13",
"description": "将swagger V2.0 转换成TS接口服务",

@@ -5,0 +5,0 @@ "type": "module",