@xtdev/swaggerv2-to-ts
Advanced tools
Comparing version 0.0.13 to 0.0.16
@@ -16,3 +16,3 @@ #!/usr/bin/env node | ||
.action(async (swaggerUrl, options) => { | ||
console.log('🎉 开始构建'); | ||
console.log('🚀 开始构建'); | ||
if(!swaggerUrl.startsWith('https://')){ | ||
@@ -19,0 +19,0 @@ console.error(chalk.red.dim('请填写正确的swagger-url地址')); |
@@ -59,2 +59,7 @@ #!/usr/bin/env node | ||
}); | ||
defaultConfig.paths.forEach((path) => { | ||
if (!filterPaths[path]) { | ||
console.error(`❌ 未找到接口【${path}】`); | ||
} | ||
}); | ||
} | ||
@@ -120,6 +125,6 @@ else { | ||
}; | ||
start({ | ||
url: 'https://gateway-dev1.tanjiu.cn/taozhu/v2/api-docs', | ||
outFile: './temp/service.ts', | ||
paths: ['/trade/instance/banquet/queryBanquetDetail'] | ||
}); | ||
// start({ | ||
// url: 'https://gateway.test.tanjiu.cn/rebate/v2/api-docs', | ||
// outFile: './temp/service.ts', | ||
// paths: ['/income/bill/statistics/queryBanquetStatistics/detail'] | ||
// }); |
{ | ||
"name": "@xtdev/swaggerv2-to-ts", | ||
"version": "0.0.13", | ||
"version": "0.0.16", | ||
"description": "将swagger V2.0 转换成TS接口服务", | ||
@@ -5,0 +5,0 @@ "type": "module", |
14409
385