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

api-gensdk

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-gensdk - npm Package Compare versions

Comparing version 0.1.9 to 0.1.10

20

lib/gen.d.ts

@@ -15,11 +15,15 @@ export interface RouteMetadataType {

/** 参数定义 */
params: {
/** 函数参数名 */
name: string;
/** 请求参数名 */
paramName: string;
/** 类型 */
type: string;
}[];
params: ParamType[];
/** path中参数定义 */
paramsInPath: ParamType[];
}
export interface ParamType {
/** 函数参数名 */
name: string;
/** 请求参数名 */
paramName: string;
/** 类型 */
type: string;
in: 'path' | 'query' | 'body';
}
export declare class GenConfig {

@@ -26,0 +30,0 @@ /** 生成目录 */

2

lib/gen.js

@@ -67,2 +67,4 @@ "use strict";

});
// param in path
route.paramsInPath = route.params.filter(p => p.in === 'path');
});

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

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

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

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