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

egg-controller

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-controller - npm Package Compare versions

Comparing version 0.2.0-alpha.2 to 0.2.0

7

lib/meta/util.js

@@ -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

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