Comparing version 0.0.2 to 0.0.3
14
index.js
@@ -1,2 +0,2 @@ | ||
var Q, assert, callActionFromReq, callActionFromReqAndRespond, createExpressRestApi, normalizeAction, normalizeActions, normalizeParam, normalizeParams, normalizeType, path, sendErrorResponse, sendSuccessResponse, serveClient, stringifyApi, toJson, types, wrapActionResult, _, | ||
var Q, assert, callActionFromReq, callActionFromReqAndRespond, createExpressRestApi, docs, normalizeAction, normalizeActions, normalizeParam, normalizeParams, normalizeType, path, sendErrorResponse, sendSuccessResponse, serveClient, stringifyApi, toJson, types, wrapActionResult, _, | ||
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
@@ -17,6 +17,7 @@ | ||
date: "date", | ||
object: "object" | ||
object: "object", | ||
boolean: "boolean" | ||
}; | ||
types.any = [types.number, types.string, types.array, types.date, types.object]; | ||
types.any = [types.number, types.boolean, types.string, types.array, types.date, types.object]; | ||
@@ -208,2 +209,6 @@ normalizeType = function(type) { | ||
docs = function() { | ||
return require('./docs.js'); | ||
}; | ||
module.exports = { | ||
@@ -219,3 +224,4 @@ types: types, | ||
serveClient: serveClient, | ||
stringifyApi: stringifyApi | ||
stringifyApi: stringifyApi, | ||
docs: docs | ||
}; |
{ | ||
"name": "decl-api", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "declarative api definition for REST and real time apis", | ||
"main": "index.js", | ||
"files": [ | ||
"index.js", "clients" | ||
"index.js", | ||
"docs.js", | ||
"clients", | ||
"examples" | ||
], | ||
@@ -20,4 +23,5 @@ "author": "Oliver Schneider <oliverschneider89+sweetpi@gmail.com> (http://sweetpi.de)", | ||
"grunt": "~0.4.5", | ||
"grunt-contrib-coffee": "~0.10.1" | ||
"grunt-contrib-coffee": "~0.10.1", | ||
"mocha": "~1.20.1" | ||
} | ||
} |
16309
8
467
3