fix(core): update

This commit is contained in:
2022-12-31 11:21:29 +01:00
parent 470f47f8bb
commit 41b6f04db6
14 changed files with 4438 additions and 27455 deletions

View File

@@ -1,8 +1,8 @@
import * as plugins from './smartrouter.plugins';
import * as plugins from './smartrouter.plugins.js';
import { QueryParams } from './smartrouter.classes.queryparams';
import { QueryParams } from './smartrouter.classes.queryparams.js';
const routeLog = (message) => {
const routeLog = (message: string) => {
console.log(`%c[Router]%c ${message}`, 'color: rgb(255, 105, 100);', 'color: inherit');
};
@@ -85,7 +85,6 @@ export class SmartRouter {
*/
async _handleRouteState() {
const currentLocation = window.location.pathname;
// lets find all wanted routes.
const wantedRoutes = this.routes.filter((routeArg) => {
@@ -100,6 +99,4 @@ export class SmartRouter {
} as IRouteInfo); // not waiting here
}
}
}