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

api-gensdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-gensdk - npm Package Compare versions

Comparing version

to
0.1.11

@@ -16,4 +16,2 @@ export interface RouteMetadataType {

params: ParamType[];
/** path中参数定义 */
paramsInPath: ParamType[];
}

@@ -29,2 +27,6 @@ export interface ParamType {

}
export interface TemplateRouteType extends RouteMetadataType {
/** path中参数定义 */
paramsInPath: ParamType[];
}
export declare class GenConfig {

@@ -31,0 +33,0 @@ /** 生成目录 */

@@ -55,3 +55,2 @@ "use strict";

}
metadata[ClassName].push(route);
// 类型兼容

@@ -68,4 +67,3 @@ route.params.forEach(param => {

});
// param in path
route.paramsInPath = route.params.filter(p => p.in === 'path');
metadata[ClassName].push(Object.assign({}, route, { paramsInPath: route.params.filter(p => p.in === 'path') }));
});

@@ -72,0 +70,0 @@ const fileTemplate = fs.readFileSync(templatePath, 'utf8');

{
"name": "api-gensdk",
"version": "0.1.10",
"version": "0.1.11",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",