express-load
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,7 @@ | ||
1.1.1 / 2012-09-15 | ||
================== | ||
* Fixed logging | ||
* Fixed recursive hidden directories | ||
1.1.0 / 2012-08-23 | ||
@@ -2,0 +8,0 @@ ================== |
@@ -60,12 +60,10 @@ /*! | ||
if (fs.statSync(script).isDirectory()) { | ||
this.then(path.join(location, dir[file])); | ||
if (dir[file].charAt(0) === '.') { | ||
this.__log('Ignoring hidden entity: ' + dir[file], 'warn'); | ||
allow = false; | ||
} | ||
if (dir[file].charAt(0) === '.') { | ||
if (this.verbose) { | ||
this.log('Ignoring hidden entity: ' + dir[file], 'warn'); | ||
} | ||
if (allow && fs.statSync(script).isDirectory()) { | ||
this.then(path.join(location, dir[file])); | ||
allow = false; | ||
@@ -222,5 +220,6 @@ } | ||
ExpressLoad.prototype.__log = function(message, type) { | ||
var format = '%s: %s'; // title: message | ||
if (this.options.verbose) { | ||
if (this.options.verbose) { | ||
var format = '%s: %s'; // title: message | ||
switch (type) { | ||
@@ -227,0 +226,0 @@ |
{ | ||
"name": "express-load", | ||
"description": "Autoload modules into an Express application instance, config, models, routes, controllers etc...", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Jarrad Seers", |
17635
448