Comparing version 0.3.0 to 0.3.1
@@ -42,4 +42,5 @@ var _ = require('lodash'), | ||
request: function(apiObj, method) { | ||
var self = this; | ||
return Promise.reduce(_.keys(apiObj), function(ret, key) { | ||
var self = this, | ||
ret = {}; | ||
return Promise.map(_.keys(apiObj), function(key) { | ||
var api = apiObj[key]; | ||
@@ -62,3 +63,5 @@ if (_.isString(api)) { | ||
}); | ||
}, {}); | ||
}).then(function() { | ||
return ret; | ||
}); | ||
}, | ||
@@ -65,0 +68,0 @@ |
@@ -80,6 +80,7 @@ var fs = require('fs'), | ||
_.each(arg, function(value, key) { | ||
value = value === undefined ? 'undefined' : JSON.stringify(value); | ||
resultToConsole.push(formatColor(key, 4)); | ||
resultToConsole.push(value); | ||
resultToFile.push(format(key)); | ||
resultToFile.push(value === undefined ? 'undefined' : JSON.stringify(value)); | ||
resultToFile.push(value); | ||
}); | ||
@@ -86,0 +87,0 @@ } else { |
{ | ||
"name": "advanced", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "A simple MVC framework based on Express", | ||
@@ -32,5 +32,5 @@ "main": "./lib/index.js", | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha --compilers coffee:coffee-script/register test/utils.coffee", | ||
"test": "node_modules/.bin/mocha --compilers coffee:coffee-script/register test/*.coffee", | ||
"test-server": "node test/app2/server.js" | ||
} | ||
} |
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
35498
868