Comparing version 1.0.55 to 1.0.56
@@ -287,2 +287,3 @@ "use strict"; | ||
var skip = []; | ||
var service = assist.replace(/Controller$/, 'Service'); | ||
assists.forEach(function (_ref3) { | ||
@@ -315,3 +316,3 @@ var name = _ref3.name, | ||
return this[assist][name].apply(this[assist], params); | ||
return this[service][name].apply(this[service], params); | ||
}; | ||
@@ -324,3 +325,3 @@ | ||
}); | ||
logger.info("@Assist for ".concat(name, " ").concat(assist, " assist [").concat(assists.filter(function (e) { | ||
logger.info("@Assist for ".concat(name, " ").concat(service, " assist [").concat(assists.filter(function (e) { | ||
return skip.indexOf(e.name) === -1; | ||
@@ -327,0 +328,0 @@ }).map(function (e) { |
{ | ||
"name": "vweb-mvc", | ||
"version": "1.0.55", | ||
"version": "1.0.56", | ||
"description": "mvc ", | ||
@@ -37,3 +37,3 @@ "main": "./lib/index", | ||
"redis": "^3.1.2", | ||
"vweb-core": "^1.0.98" | ||
"vweb-core": "^1.0.99" | ||
}, | ||
@@ -40,0 +40,0 @@ "dependencies": { |
@@ -201,2 +201,3 @@ import {AppScope, Controller} from "../anno"; | ||
let skip = []; | ||
let service = assist.replace(/Controller$/, 'Service'); | ||
assists.forEach(({name, method, path, args}) => { | ||
@@ -217,3 +218,3 @@ if (!controller[name]) { | ||
} | ||
return this[assist][name].apply(this[assist], params); | ||
return this[service][name].apply(this[service], params); | ||
} | ||
@@ -224,3 +225,3 @@ return; | ||
}); | ||
logger.info(`@Assist for ${name} ${assist} assist [${assists.filter(e => skip.indexOf(e.name) === -1).map(e => e.name)}] skip [${skip.join(',')}]`); | ||
logger.info(`@Assist for ${name} ${service} assist [${assists.filter(e => skip.indexOf(e.name) === -1).map(e => e.name)}] skip [${skip.join(',')}]`); | ||
} | ||
@@ -227,0 +228,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
113973
2941