Comparing version 1.0.0 to 1.0.2
@@ -18,6 +18,7 @@ /*! | ||
var self = this; | ||
try { | ||
function loadController(dir) { | ||
var name = dir.split('controllers/')[1].replace('.js', ''); | ||
debug('loading controller %s', name); | ||
var controller = require(filePath); | ||
var controller = require(dir); | ||
@@ -76,4 +77,5 @@ if (!controller.path) { return; } | ||
}); | ||
}catch(e) {console.log(e);} | ||
} | ||
} | ||
}; |
@@ -239,15 +239,16 @@ /*! | ||
this.emit('start'); | ||
var self = this; | ||
var deferred = Q.defer(); | ||
// console.log(this.hooks.start); | ||
async.eachLimit(this.hooks.start, 1, function (hook, next) { | ||
debug('executing', hook.name || hook._name, hook.group); | ||
hook.apply(self, [next]); | ||
}, function (err) { | ||
if (err) { | ||
debug(err); | ||
return deferred.reject(err); | ||
} | ||
deferred.resolve(); | ||
self.emit('started'); | ||
var self = this, | ||
deferred = Q.defer(); | ||
process.nextTick(function () { | ||
async.eachLimit(self.hooks.start, 1, function (hook, next) { | ||
debug('executing', hook.name || hook._name, hook.group); | ||
hook.apply(self, [next]); | ||
}, function (err) { | ||
if (err) { | ||
debug(err); | ||
return deferred.reject(err); | ||
} | ||
deferred.resolve(); | ||
self.emit('started'); | ||
}); | ||
}); | ||
@@ -254,0 +255,0 @@ return deferred.promise; |
@@ -126,6 +126,2 @@ /*! | ||
exec('cd "' + projectDir + '" && npm install', function (error, stdout, stderr) { | ||
if ((error || stderr) !== undefined) { | ||
console.error((error || stderr)) | ||
return next('could not install dependencies'); | ||
} | ||
next(); | ||
@@ -132,0 +128,0 @@ }); |
{ | ||
"name": "clout-js", | ||
"version": "1.0.0", | ||
"version": "1.0.2", | ||
"description": "Clean, simplistic, enterprise grade full-stack NodeJS framework", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
{ | ||
"modules": [] | ||
"modules": ["clout-socket-io"] | ||
} |
@@ -10,3 +10,6 @@ { | ||
"author": "Muhammad Dadu", | ||
"license": "MIT" | ||
"license": "MIT", | ||
"dependencies": { | ||
"request": "^2.72.0" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
125920
57
1927
2