egg-controller
Advanced tools
Comparing version 0.2.0-alpha.2 to 0.2.0
@@ -71,2 +71,3 @@ "use strict"; | ||
mkdir(sdkDir); | ||
templatePath = templatePath || path.join(sdkDir, 'sdk.njk'); | ||
if (!fs.existsSync(templatePath)) { | ||
@@ -120,5 +121,5 @@ console.log(`[genAPISDK] No template! ${templatePath}`); | ||
params: paramTypes.map(pt => { | ||
let type = getType(pt.validateType && pt.validateType.rule) || | ||
getType({ type: utils_1.getGlobalType(pt.type).toLowerCase() }) || | ||
'any'; | ||
let type = pt.validateType ? | ||
getType(pt.validateType.rule) : | ||
getType({ type: utils_1.getGlobalType(pt.type).toLowerCase() }); | ||
return { name: pt.name, paramName: pt.paramName, type }; | ||
@@ -125,0 +126,0 @@ }), |
{ | ||
"name": "egg-controller", | ||
"version": "0.2.0-alpha.2", | ||
"version": "0.2.0", | ||
"description": "controller for egg.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48102
1024