Comparing version 0.1.22 to 0.1.23
@@ -139,3 +139,3 @@ "use strict"; | ||
if (!(moduleInstance instanceof ModuleInterface)) { | ||
if (!(moduleInstance instanceof ModuleInterface)) { | ||
throw new error.HttpError(500, moduleInstance, 'Module must be instance of ModuleInterface "core/module"'); | ||
@@ -273,2 +273,4 @@ } | ||
path, | ||
pathRegex, | ||
pathReplace, | ||
trace = []; | ||
@@ -279,4 +281,6 @@ | ||
path = di.normalizePath(normalizers.shift()); | ||
if (file.match(path)) { | ||
file = file.replace(path, '').replace(this.suffix, ''); | ||
pathReplace = path.replace(/\\/g, '\\\\'); | ||
pathRegex = new RegExp(pathReplace); | ||
if (file.match(pathRegex)) { | ||
file = file.replace(pathRegex, '').replace(this.suffix, ''); | ||
isNormalized = true; | ||
@@ -293,3 +297,5 @@ break; | ||
path = di.normalizePath(normalizers.shift()); | ||
if (fromPath.match(path)) { | ||
pathReplace = path.replace(/\\/g, '\\\\'); | ||
pathRegex = new RegExp(pathReplace); | ||
if (fromPath.match(pathRegex)) { | ||
isNormalized = true; | ||
@@ -304,4 +310,5 @@ break; | ||
while (themes.length) { | ||
theme = themes.shift(); | ||
re = new RegExp('^' + theme + '/'); | ||
theme = di.normalizePath(themes.shift() + '/'); | ||
pathReplace = theme.replace(/\\/g, '\\\\'); | ||
re = new RegExp('^' + pathReplace); | ||
file = file.replace(re, ''); | ||
@@ -322,3 +329,2 @@ | ||
throw new error.HttpError(500, { | ||
@@ -325,0 +331,0 @@ from: fromPath, |
@@ -5,3 +5,3 @@ { | ||
"description": "Powerful lightweight mvc framework for nodejs", | ||
"version": "0.1.22", | ||
"version": "0.1.23", | ||
"dependencies": { | ||
@@ -8,0 +8,0 @@ "mongoose": "4.1.x", |
Sorry, the diff of this file is not supported yet
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
161112
5150