2 Commits

Author SHA1 Message Date
9b9675bd96 1.0.7 2020-11-30 10:40:40 +00:00
e7d7865750 fix(core): update 2020-11-30 10:40:39 +00:00
3 changed files with 3 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartrouter", "name": "@pushrocks/smartrouter",
"version": "1.0.6", "version": "1.0.7",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@pushrocks/smartrouter", "name": "@pushrocks/smartrouter",
"version": "1.0.6", "version": "1.0.7",
"private": false, "private": false,
"description": "a router for routing on websites", "description": "a router for routing on websites",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -86,7 +86,7 @@ export class SmartRouter {
for (const wantedRoute of wantedRoutes) { for (const wantedRoute of wantedRoutes) {
const routeResult = wantedRoute.matchFunction(currentLocation); const routeResult = wantedRoute.matchFunction(currentLocation);
await wantedRoute.handler(routeResult.valueOf() as IRouteInfo); wantedRoute.handler(routeResult.valueOf() as IRouteInfo); // not waiting here
} }
} }
} }