irrelon-appcore
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -109,2 +109,3 @@ /** | ||
moduleDefString, | ||
moduleNameRegExp, | ||
moduleDeps, | ||
@@ -128,6 +129,7 @@ moduleNamesArr, | ||
moduleName = moduleNamesArr[nameIndex]; | ||
moduleNameRegExp = new RegExp('\b' + moduleName + '\b'); | ||
if (moduleName.toLowerCase() !== i.toLowerCase() && moduleDeps.arr.indexOf(moduleName) === -1) { | ||
// Check for module usage without dependecy injection | ||
if (moduleDefString.indexOf(moduleName)) { | ||
// Check for module usage without dependency injection | ||
if (moduleNameRegExp.test(moduleDefString)) { | ||
console.warn('AppCore: Module "' + i + '" might require un-injected module "' + moduleName + '"'); | ||
@@ -134,0 +136,0 @@ } |
{ | ||
"name": "irrelon-appcore", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "A very lightweight application dependency manager for maintaining clean modularised code without polluting the global namespace.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
15400
314