valyrian.js 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,7 +54,8 @@ interface RouterInterface {
54
54
  // eslint-disable-next-line no-unused-vars
55
55
  add(method: string, ...args: Middlewares): Router;
56
56
  // eslint-disable-next-line no-unused-vars
57
- use(...args: Middlewares | Router[]): Router;
57
+ use(...args: string[] | Middlewares | Router[]): Router;
58
+
58
59
  routes(): string[];
59
60
  // eslint-disable-next-line no-unused-vars
60
61
  go(path: string, parentComponent?: Component | POJOComponent | VnodeComponentInterface): Promise<string | void>;
@@ -241,9 +242,9 @@ export class Router implements RouterInterface {
241
242
  this.url = path;
242
243
  this.query = parseQuery(queryParts);
243
244
 
244
- let middlewares = searchMiddlewares(this, urlParts);
245
+ let middlewares = searchMiddlewares(this as RouterInterface, urlParts);
245
246
 
246
- let component = await searchComponent(this, middlewares);
247
+ let component = await searchComponent(this as RouterInterface, middlewares);
247
248
 
248
249
  if (component === false) {
249
250
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valyrian.js",
3
- "version": "7.0.2",
3
+ "version": "7.0.4",
4
4
  "description": "Lightweight steel to forge PWAs. (Minimal Frontend Framework with server side rendering and other capabilities)",
5
5
  "repository": "git@github.com:Masquerade-Circus/valyrian.js.git",
6
6
  "author": "Masquerade <christian@masquerade-circus.net>",