From 9c418fa1de82a64befcc68c610a16d7c91e39422 Mon Sep 17 00:00:00 2001 From: Maximilian Friedmann Date: Thu, 16 Feb 2017 10:09:15 +0100 Subject: [PATCH 1/2] changing version to 0.4.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7d40c1d..61a7942 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "smallstack-cli", - "version": "0.4.10", + "version": "0.4.11", "description": "Command Line Interface for Smallstack Projects", "author": { "email": "max@smallstack.io", From 7a79502b4a8ab2967ab088577eeeb7f140cc7baf Mon Sep 17 00:00:00 2001 From: Maximilian Friedmann Date: Sat, 18 Feb 2017 07:32:45 +0100 Subject: [PATCH 2/2] using string typeof --- src/functions/generateSourcesFunctions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions/generateSourcesFunctions.js b/src/functions/generateSourcesFunctions.js index c187665..d9b426c 100644 --- a/src/functions/generateSourcesFunctions.js +++ b/src/functions/generateSourcesFunctions.js @@ -254,13 +254,13 @@ functions.getChecksForParameters = function getChecksForParameters(array, others if (schemaTypeFound) type = "smallstack.schemas[\"" + schemaTypeFound + "\"]"; else - type = functions.getSchemaType(split[1]); + type = functions.getTypescriptType(split[1]); } else { name = array[i]; - type = "String"; + type = "string"; } - out += "\t\tUtils.check(params." + name + ", " + type + ", \"" + name + "\""; + out += "\t\tUtils.check(params." + name + ", \"" + type + "\", \"" + name + "\""; if (callback) out += ", callback"; out += ");\n";