We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04f432a commit a7cd307Copy full SHA for a7cd307
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "yog2-kernel",
3
- "version": "1.3.3",
+ "version": "1.4.0",
4
"description": "yog2 kernel",
5
"main": "index.js",
6
"keywords": [
plugins/dispatcher/dispatcher.js
@@ -247,6 +247,10 @@ module.exports = function (options) {
247
router.action = function (actionName) {
248
return getAction(routerName, actionName);
249
};
250
+ // support wrap raw async fn
251
+ router.wrapAsync = function (fn) {
252
+ return wrapAsyncFunction(fn, true);
253
+ };
254
// load user defined router
255
var customRouter = require(routerPath);
256
// typescript compliant
0 commit comments