Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee87a6269e | |||
2d76e799a4 | |||
f24520ea89 | |||
5072728118 |
5676
package-lock.json
generated
5676
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartrouter",
|
||||
"version": "1.0.9",
|
||||
"version": "1.0.11",
|
||||
"private": false,
|
||||
"description": "a router for routing on websites",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -13,7 +13,7 @@
|
||||
"format": "(gitzone format)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@gitzone/tsbuild": "^2.1.26",
|
||||
"@gitzone/tsbuild": "^2.1.27",
|
||||
"@gitzone/tsbundle": "^1.0.87",
|
||||
"@gitzone/tstest": "^1.0.57",
|
||||
"@pushrocks/tapbundle": "^3.2.14",
|
||||
|
@ -92,7 +92,7 @@ export class SmartRouter {
|
||||
const routeResult = wantedRoute.matchFunction(currentLocation);
|
||||
wantedRoute.handler({
|
||||
...(routeResult.valueOf() as Object),
|
||||
queryParams: Object.fromEntries(urlSearchParams.entries()),
|
||||
queryParams: Object.fromEntries((urlSearchParams as any).entries()), // TODO check wether entries is supported in typings
|
||||
} as IRouteInfo); // not waiting here
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user